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.
Files changed (333) hide show
  1. package/dist/common/headers.js +2 -2
  2. package/dist/common/hooks/hooks.js +108 -0
  3. package/dist/common/hooks/useResetOnBaseURL.js +15 -0
  4. package/dist/common/img/icon-delete.svg +3 -0
  5. package/dist/common/img/icon-edit.svg +3 -0
  6. package/dist/common/img/noPhoto.png +0 -0
  7. package/dist/common/img/time_icon.svg +5 -0
  8. package/dist/common/img/view_icon.svg +5 -0
  9. package/dist/common/styles/svg_img.scss +290 -0
  10. package/dist/common/svg_img.js +238 -0
  11. package/dist/common/validationFunc.js +14 -0
  12. package/dist/components/ArticleComponent/Article.js +252 -0
  13. package/dist/components/ArticleComponent/Article.scss +289 -0
  14. package/dist/components/ArticleElements/ShortTileArticleBox/ShortTileArticleBox.stories.js +1 -1
  15. package/dist/components/ArticleMain/ArticleMain.js +451 -0
  16. package/dist/components/ArticleMain/ArticleMain.scss +220 -0
  17. package/dist/components/ArticleMain/img/table_icon.svg +3 -0
  18. package/dist/components/ArticleMain/img/tile-long_icon.svg +3 -0
  19. package/dist/components/ArticleMain/img/tile_icon.svg +3 -0
  20. package/dist/components/ButtonColumn/ButtonColumn.js +113 -0
  21. package/dist/components/ButtonColumn/ButtonColumn.scss +117 -0
  22. package/dist/components/ButtonColumn/img/column.svg +7 -0
  23. package/dist/components/ButtonCopy/ButtonCopy.js +37 -0
  24. package/dist/components/ButtonCopy/ButtonCopy.scss +43 -0
  25. package/dist/components/ButtonCopy/img/copy.svg +3 -0
  26. package/dist/components/ButtonExport/ButtonExport.js +83 -0
  27. package/dist/components/ButtonExport/ButtonExport.scss +111 -0
  28. package/dist/components/ButtonExport/img/export.svg +8 -0
  29. package/dist/components/ButtonExport/img/pdf.svg +12 -0
  30. package/dist/components/ButtonExport/img/xlc.svg +11 -0
  31. package/dist/components/ButtonUpload/ButtonUpload.js +24 -0
  32. package/dist/components/ButtonUpload/ButtonUpload.scss +45 -0
  33. package/dist/components/ButtonUpload/img/upload_icon.svg +8 -0
  34. package/dist/components/ConstructorComponents/Tariff/TariffPlan.js +8 -5
  35. package/dist/components/Page404/Page404.js +36 -0
  36. package/dist/components/Page404/Page404.scss +67 -0
  37. package/dist/components/Page404/img/banner-404.svg +16 -0
  38. package/dist/components/ShareComponent/ShareComponent.js +152 -0
  39. package/dist/components/ShareComponent/ShareComponent.scss +53 -0
  40. package/dist/components/ShareComponent/img/copy_icon.svg +5 -0
  41. package/dist/components/ShareComponent/img/facebook_icon.svg +5 -0
  42. package/dist/components/ShareComponent/img/linkedin_icon.svg +6 -0
  43. package/dist/components/ShareComponent/img/ok_icon.svg +5 -0
  44. package/dist/components/ShareComponent/img/share_icon.svg +5 -0
  45. package/dist/components/ShareComponent/img/tg_icon.svg +5 -0
  46. package/dist/components/ShareComponent/img/vk_icon.svg +5 -0
  47. package/dist/components/ShareComponent/img/whatsapp_icon.svg +5 -0
  48. package/dist/components/ShareComponent/img/x_icon.svg +5 -0
  49. package/dist/components/Table/TableBox/TableBox.stories.js +1 -1
  50. package/dist/components/TableInput/TableInput.js +103 -0
  51. package/dist/components/TableInput/TableInput.scss +35 -0
  52. package/dist/components/TableWithoutData/TableWithoutData.js +25 -0
  53. package/dist/components/TableWithoutData/TableWithoutData.scss +32 -0
  54. package/dist/components/TableWithoutData/img/doc_icon.png +0 -0
  55. package/dist/fonts/GolosText/GolosText-Black.ttf +0 -0
  56. package/dist/fonts/GolosText/GolosText-Bold.ttf +0 -0
  57. package/dist/fonts/GolosText/GolosText-ExtraBold.ttf +0 -0
  58. package/dist/fonts/GolosText/GolosText-Medium.ttf +0 -0
  59. package/dist/fonts/GolosText/GolosText-Regular.ttf +0 -0
  60. package/dist/fonts/GolosText/GolosText-SemiBold.ttf +0 -0
  61. package/dist/fonts/Inter/Inter-Bold.otf +0 -0
  62. package/dist/fonts/Inter/Inter-Light.otf +0 -0
  63. package/dist/fonts/Inter/Inter-Medium.otf +0 -0
  64. package/dist/fonts/Inter/Inter-Regular.ttf +0 -0
  65. package/dist/fonts/Montserrat/Montserrat-Black.ttf +0 -0
  66. package/dist/fonts/Montserrat/Montserrat-BlackItalic.ttf +0 -0
  67. package/dist/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  68. package/dist/fonts/Montserrat/Montserrat-BoldItalic.ttf +0 -0
  69. package/dist/fonts/Montserrat/Montserrat-ExtraBold.ttf +0 -0
  70. package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
  71. package/dist/fonts/Montserrat/Montserrat-ExtraLight.ttf +0 -0
  72. package/dist/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
  73. package/dist/fonts/Montserrat/Montserrat-Italic.ttf +0 -0
  74. package/dist/fonts/Montserrat/Montserrat-Light.ttf +0 -0
  75. package/dist/fonts/Montserrat/Montserrat-LightItalic.ttf +0 -0
  76. package/dist/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
  77. package/dist/fonts/Montserrat/Montserrat-MediumItalic.ttf +0 -0
  78. package/dist/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  79. package/dist/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
  80. package/dist/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
  81. package/dist/fonts/Montserrat/Montserrat-Thin.ttf +0 -0
  82. package/dist/fonts/Montserrat/Montserrat-ThinItalic.ttf +0 -0
  83. package/dist/fonts/Nunito_Sans/NunitoSans-Black.ttf +0 -0
  84. package/dist/fonts/Nunito_Sans/NunitoSans-BlackItalic.ttf +0 -0
  85. package/dist/fonts/Nunito_Sans/NunitoSans-Bold.ttf +0 -0
  86. package/dist/fonts/Nunito_Sans/NunitoSans-BoldItalic.ttf +0 -0
  87. package/dist/fonts/Nunito_Sans/NunitoSans-ExtraBold.ttf +0 -0
  88. package/dist/fonts/Nunito_Sans/NunitoSans-ExtraBoldItalic.ttf +0 -0
  89. package/dist/fonts/Nunito_Sans/NunitoSans-ExtraLight.ttf +0 -0
  90. package/dist/fonts/Nunito_Sans/NunitoSans-ExtraLightItalic.ttf +0 -0
  91. package/dist/fonts/Nunito_Sans/NunitoSans-Italic.ttf +0 -0
  92. package/dist/fonts/Nunito_Sans/NunitoSans-Light.ttf +0 -0
  93. package/dist/fonts/Nunito_Sans/NunitoSans-LightItalic.ttf +0 -0
  94. package/dist/fonts/Nunito_Sans/NunitoSans-Regular.ttf +0 -0
  95. package/dist/fonts/Nunito_Sans/NunitoSans-SemiBold.ttf +0 -0
  96. package/dist/fonts/Nunito_Sans/NunitoSans-SemiBoldItalic.ttf +0 -0
  97. package/dist/fonts/Rubik/Rubik-Black.ttf +0 -0
  98. package/dist/fonts/Rubik/Rubik-BlackItalic.ttf +0 -0
  99. package/dist/fonts/Rubik/Rubik-Bold.ttf +0 -0
  100. package/dist/fonts/Rubik/Rubik-BoldItalic.ttf +0 -0
  101. package/dist/fonts/Rubik/Rubik-ExtraBold.ttf +0 -0
  102. package/dist/fonts/Rubik/Rubik-ExtraBoldItalic.ttf +0 -0
  103. package/dist/fonts/Rubik/Rubik-Italic.ttf +0 -0
  104. package/dist/fonts/Rubik/Rubik-Light.ttf +0 -0
  105. package/dist/fonts/Rubik/Rubik-LightItalic.ttf +0 -0
  106. package/dist/fonts/Rubik/Rubik-Medium.ttf +0 -0
  107. package/dist/fonts/Rubik/Rubik-MediumItalic.ttf +0 -0
  108. package/dist/fonts/Rubik/Rubik-Regular.ttf +0 -0
  109. package/dist/fonts/Rubik/Rubik-SemiBold.ttf +0 -0
  110. package/dist/fonts/Rubik/Rubik-SemiBoldItalic.ttf +0 -0
  111. package/dist/index.js +7 -0
  112. package/dist/main.js +14 -0
  113. package/dist/pages/_app.js +12 -0
  114. package/dist/pages/_document.js +12 -0
  115. package/dist/pages/index.js +92 -0
  116. package/dist/stories/Article/Article.scss +471 -0
  117. package/dist/stories/Article/ArticleElement.js +108 -0
  118. package/dist/stories/Article/ArticleStorybook.scss +6 -0
  119. package/dist/stories/Article/ArticleView.js +440 -0
  120. package/dist/stories/Article/ArticleView.stories.js +263 -0
  121. package/dist/stories/Article/Feedback/Feedback.js +58 -0
  122. package/dist/stories/Article/Feedback/Feedback.scss +86 -0
  123. package/dist/stories/Article/FormBtn/FormBtn.js +170 -0
  124. package/dist/stories/Article/FormBtn/FormBtn.scss +446 -0
  125. package/dist/stories/Article/FormBtn/img/clos_icon.svg +6 -0
  126. package/dist/stories/Article/FormBtn/img/close-icon.svg +3 -0
  127. package/dist/stories/Article/ImgArticle/ImgArticle.js +204 -0
  128. package/dist/stories/Article/ImgArticle/ImgArticle.scss +140 -0
  129. package/dist/stories/Article/ListOfContent/ListOfContent.js +41 -0
  130. package/dist/stories/Article/ListOfContent/ListOfContent.scss +83 -0
  131. package/dist/stories/Article/ListOfContent/ListOfContent.stories.js +66 -0
  132. package/dist/stories/Article/ListOfContent/img/time_icon.svg +3 -0
  133. package/dist/stories/Article/ListOfContent/img/view_icon.svg +3 -0
  134. package/dist/stories/Article/RecommendationList/RecommendationList.js +31 -0
  135. package/dist/stories/Article/RecommendationList/RecommendationList.scss +41 -0
  136. package/dist/stories/Article/TextArticle/TextArticle.js +129 -0
  137. package/dist/stories/Article/TextArticle/TextArticle.scss +43 -0
  138. package/dist/stories/Article/TitleText/TitleText.js +30 -0
  139. package/dist/stories/Article/TitleText/TitleText.scss +33 -0
  140. package/dist/stories/Article/YellowInformationBox/YellowInformationBox.js +30 -0
  141. package/dist/stories/Article/YellowInformationBox/YellowInformationBox.scss +46 -0
  142. package/dist/stories/Article/YellowInformationBox/img/bell.svg +9 -0
  143. package/dist/stories/Article/img/bell.svg +9 -0
  144. package/dist/stories/Article/img/btn-add-round.svg +4 -0
  145. package/dist/stories/Article/img/calendar_icon.svg +6 -0
  146. package/dist/stories/Article/img/close-round.svg +3 -0
  147. package/dist/stories/Article/img/close.svg +9 -0
  148. package/dist/stories/Article/img/copy_icon.svg +5 -0
  149. package/dist/stories/Article/img/info.svg +9 -0
  150. package/dist/stories/Article/img/ok_icon.svg +5 -0
  151. package/dist/stories/Article/img/share_icon.svg +5 -0
  152. package/dist/stories/Article/img/tg_icon.svg +5 -0
  153. package/dist/stories/Article/img/time_icon.svg +6 -0
  154. package/dist/stories/Article/img/view_icon.svg +6 -0
  155. package/dist/stories/Article/img/vk_icon.svg +5 -0
  156. package/dist/stories/Article/img/whatsapp_icon.svg +5 -0
  157. package/dist/stories/ArticleMainContainer/ArticleMainContainer.js +540 -0
  158. package/dist/stories/ArticleMainContainer/ArticleMainContainer.scss +377 -0
  159. package/dist/stories/ArticleMainContainer/ArticleMainContainer.stories.js +75 -0
  160. package/dist/stories/ArticleMainContainer/main/page.js +1 -0
  161. package/dist/stories/ArticleMinBox/ArticleMinBox.js +172 -0
  162. package/dist/stories/ArticleMinBox/ArticleMinBox.scss +38 -0
  163. package/dist/stories/ArticleMinBox/ArticleMinBox.stories.js +56 -0
  164. package/dist/stories/BasicSelection/BasicSelection.js +143 -0
  165. package/dist/stories/BasicSelection/BasicSelection.scss +97 -0
  166. package/dist/stories/BasicSelection/BasicSelection.stories.js +32 -0
  167. package/dist/stories/Breadcrumb/Breadcrumb.js +113 -0
  168. package/dist/stories/Breadcrumb/Breadcrumb.scss +92 -0
  169. package/dist/stories/Breadcrumb/Breadcrums.stories.js +31 -0
  170. package/dist/stories/Breadcrumb/img/drop-right.svg +3 -0
  171. package/dist/stories/Breadcrumb/img/home_icon.svg +5 -0
  172. package/dist/stories/ButtonBasic/ButtonBasic.js +70 -0
  173. package/dist/stories/ButtonBasic/ButtonBasic.scss +242 -0
  174. package/dist/stories/ButtonBasic/ButtonBasic.stories.js +60 -0
  175. package/dist/stories/Checkbox/Checkbox.js +70 -0
  176. package/dist/stories/Checkbox/Checkbox.scss +128 -0
  177. package/dist/stories/Checkbox/Checkbox.stories.js +49 -0
  178. package/dist/stories/Checkbox/img/check.svg +3 -0
  179. package/dist/stories/CheckboxToggle/CheckboxToggle.js +54 -0
  180. package/dist/stories/CheckboxToggle/CheckboxToggle.scss +117 -0
  181. package/dist/stories/CheckboxToggle/CheckboxToggle.stories.js +26 -0
  182. package/dist/stories/DropDownSelector/DownSelector.js +352 -0
  183. package/dist/stories/DropDownSelector/DownSelector.stories.js +161 -0
  184. package/dist/stories/DropDownSelector/DropdownSelector.scss +272 -0
  185. package/dist/stories/DropDownSelector/img/close_icon.svg +6 -0
  186. package/dist/stories/DropDownSelector/img/close_icon_disabled.svg +6 -0
  187. package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.js +162 -0
  188. package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.scss +475 -0
  189. package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.stories.js +50 -0
  190. package/dist/stories/InputDinamycPlaceholder/img/close_grey.svg +5 -0
  191. package/dist/stories/InputDinamycPlaceholder/img/close_red.svg +5 -0
  192. package/dist/stories/InputDinamycPlaceholder/img/hide.svg +12 -0
  193. package/dist/stories/InputDinamycPlaceholder/img/info_tooltip.svg +12 -0
  194. package/dist/stories/InputDinamycPlaceholder/img/show.svg +3 -0
  195. package/dist/stories/InputDynamicWidth/InputDynamicWidth.js +85 -0
  196. package/dist/stories/InputDynamicWidth/InputDynamicWidth.scss +98 -0
  197. package/dist/stories/InputDynamicWidth/InputDynamicWidth.stories.js +32 -0
  198. package/dist/stories/InputDynamicWidth/img/close_icon.svg +3 -0
  199. package/dist/stories/InputDynamicWidth/img/search_icon.svg +6 -0
  200. package/dist/stories/LongTileArticleBox/LongTileArticleBox.js +168 -0
  201. package/dist/stories/LongTileArticleBox/LongTileArticleBox.scss +360 -0
  202. package/dist/stories/LongTileArticleBox/LongTileArticleBox.stories.js +39 -0
  203. package/dist/stories/LongTileArticleBox/img/arrow_blue.svg +6 -0
  204. package/dist/stories/LongTileArticleBox/img/calendar_icon.svg +6 -0
  205. package/dist/stories/LongTileArticleBox/img/copy_icon.svg +5 -0
  206. package/dist/stories/LongTileArticleBox/img/ok_icon.svg +5 -0
  207. package/dist/stories/LongTileArticleBox/img/share_icon.svg +5 -0
  208. package/dist/stories/LongTileArticleBox/img/tag_icon.svg +5 -0
  209. package/dist/stories/LongTileArticleBox/img/tg_icon.svg +5 -0
  210. package/dist/stories/LongTileArticleBox/img/time_icon.svg +6 -0
  211. package/dist/stories/LongTileArticleBox/img/view_icon.svg +6 -0
  212. package/dist/stories/LongTileArticleBox/img/vk_icon.svg +5 -0
  213. package/dist/stories/LongTileArticleBox/img/whatsapp_icon.svg +5 -0
  214. package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.js +128 -0
  215. package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.scss +124 -0
  216. package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.stories.js +19 -0
  217. package/dist/stories/ModalBitrixForm/ModalBitrixForm.js +236 -0
  218. package/dist/stories/ModalBitrixForm/ModalBitrixForm.scss +167 -0
  219. package/dist/stories/ModalBitrixForm/ModalBitrixForm.stories.js +101 -0
  220. package/dist/stories/ModalBitrixForm/img/close_icon.svg +3 -0
  221. package/dist/stories/ModalBitrixForm/img/done_icon.svg +3 -0
  222. package/dist/stories/ModalBitrixForm/img/ozon.svg +9 -0
  223. package/dist/stories/ModalBitrixForm/img/ozon_bkg.svg +9 -0
  224. package/dist/stories/MultilevelSidebar/MultilevelSidebar.js +472 -0
  225. package/dist/stories/MultilevelSidebar/MultilevelSidebar.scss +237 -0
  226. package/dist/stories/MultilevelSidebar/MultilevelSidebar.stories.js +80 -0
  227. package/dist/stories/MultilevelSidebar/MultilevelSidebarStorybook.scss +7 -0
  228. package/dist/stories/MultilevelSidebar/img/drop.svg +3 -0
  229. package/dist/stories/MultilevelSidebar/img/settings.svg +4 -0
  230. package/dist/stories/NoArticles/NoArticles.js +29 -0
  231. package/dist/stories/NoArticles/NoArticles.scss +26 -0
  232. package/dist/stories/NoArticles/NoArticles.stories.js +20 -0
  233. package/dist/stories/NoArticles/img/banner.svg +266 -0
  234. package/dist/stories/Paginator/Paginator.js +254 -0
  235. package/dist/stories/Paginator/Paginator.scss +168 -0
  236. package/dist/stories/Paginator/Paginator.stories.js +56 -0
  237. package/dist/stories/Paginator/img/arrow_blue.svg +3 -0
  238. package/dist/stories/Paginator/img/arrow_next.svg +3 -0
  239. package/dist/stories/Paginator/img/arrow_prev.svg +3 -0
  240. package/dist/stories/ResultsFound/ResultsFound.js +269 -0
  241. package/dist/stories/ResultsFound/ResultsFound.scss +139 -0
  242. package/dist/stories/ResultsFound/ResultsFound.stories.js +25 -0
  243. package/dist/stories/ResultsFound/img/arrow_icon.svg +5 -0
  244. package/dist/stories/ResultsFound/img/no-data_img.svg +13 -0
  245. package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.js +160 -0
  246. package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.scss +827 -0
  247. package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.stories.js +42 -0
  248. package/dist/stories/ShortTileArticleBox/img/arrow_blue.svg +6 -0
  249. package/dist/stories/ShortTileArticleBox/img/calendar_icon.svg +6 -0
  250. package/dist/stories/ShortTileArticleBox/img/copy_icon.svg +5 -0
  251. package/dist/stories/ShortTileArticleBox/img/ok_icon.svg +5 -0
  252. package/dist/stories/ShortTileArticleBox/img/share_icon.svg +5 -0
  253. package/dist/stories/ShortTileArticleBox/img/tag_icon.svg +5 -0
  254. package/dist/stories/ShortTileArticleBox/img/tg_icon.svg +5 -0
  255. package/dist/stories/ShortTileArticleBox/img/time_icon.svg +6 -0
  256. package/dist/stories/ShortTileArticleBox/img/view_icon.svg +6 -0
  257. package/dist/stories/ShortTileArticleBox/img/vk_icon.svg +5 -0
  258. package/dist/stories/ShortTileArticleBox/img/whatsapp_icon.svg +5 -0
  259. package/dist/stories/SliderCarousel/SliderCarousel.js +77 -0
  260. package/dist/stories/SliderCarousel/SliderCarousel.scss +85 -0
  261. package/dist/stories/SliderCarousel/SliderCarousel.stories.js +29 -0
  262. package/dist/stories/SliderCarousel/img/no_image.svg +3 -0
  263. package/dist/stories/Table/Filters/OptionsDate.js +208 -0
  264. package/dist/stories/Table/Filters/OptionsImage.js +92 -0
  265. package/dist/stories/Table/Filters/OptionsImage.scss +10 -0
  266. package/dist/stories/Table/Filters/OptionsList.js +244 -0
  267. package/dist/stories/Table/Filters/OptionsNumber.js +220 -0
  268. package/dist/stories/Table/Filters/OptionsNumber.scss +100 -0
  269. package/dist/stories/Table/Filters/OptionsText.js +165 -0
  270. package/dist/stories/Table/Filters/OptionsText.scss +71 -0
  271. package/dist/stories/Table/Filters/img/FilterDefault.js +26 -0
  272. package/dist/stories/Table/Filters/img/FilterReset.js +41 -0
  273. package/dist/stories/Table/Filters/img/dropFilters.png +0 -0
  274. package/dist/stories/Table/Filters/img/filterDefault.svg +3 -0
  275. package/dist/stories/Table/Filters/img/filter_blue.svg +3 -0
  276. package/dist/stories/Table/Filters/img/filter_blue_background.svg +5 -0
  277. package/dist/stories/Table/Filters/img/filter_reset.svg +7 -0
  278. package/dist/stories/Table/InputWithState/InputWithState.js +36 -0
  279. package/dist/stories/Table/RenderFiltersTh/RenderFiltersTh.js +140 -0
  280. package/dist/stories/Table/RenderTd/RenderTd.js +19 -0
  281. package/dist/stories/Table/RenderTh/RenderTh.js +112 -0
  282. package/dist/stories/Table/Table.js +1568 -0
  283. package/dist/stories/Table/Table.scss +1524 -0
  284. package/dist/stories/Table/Table.stories.js +83 -0
  285. package/dist/stories/Table/TableChartTd/TableChartTd.js +172 -0
  286. package/dist/stories/Table/TableChartTd/TableChartTd.scss +0 -0
  287. package/dist/stories/Table/TdDate/TdDate.js +36 -0
  288. package/dist/stories/Table/TdDate/TdDate.scss +0 -0
  289. package/dist/stories/Table/TdDate.js +34 -0
  290. package/dist/stories/Table/TypeTdImage.js +85 -0
  291. package/dist/stories/Table/img/Search.png +0 -0
  292. package/dist/stories/Table/img/SortArrow.js +12 -0
  293. package/dist/stories/Table/img/SortArrowUp.js +12 -0
  294. package/dist/stories/Table/img/SortTable.js +14 -0
  295. package/dist/stories/Table/img/close_icon.svg +7 -0
  296. package/dist/stories/Table/img/close_white.svg +3 -0
  297. package/dist/stories/Table/img/context-menu.svg +6 -0
  298. package/dist/stories/Table/img/contextMenuBtn.png +0 -0
  299. package/dist/stories/Table/img/delete_icon.svg +8 -0
  300. package/dist/stories/Table/img/dropFilters.png +0 -0
  301. package/dist/stories/Table/img/filter.png +0 -0
  302. package/dist/stories/Table/img/filterDefault.png +0 -0
  303. package/dist/stories/Table/img/filter_blue.svg +3 -0
  304. package/dist/stories/Table/img/filter_blue_background.svg +5 -0
  305. package/dist/stories/Table/img/imageNotFound.svg +3 -0
  306. package/dist/stories/Table/img/location.svg +3 -0
  307. package/dist/stories/Table/img/sort_arrow_down.svg +6 -0
  308. package/dist/stories/Table/img/sort_arrow_up.svg +4 -0
  309. package/dist/stories/Table/img/sort_table.svg +8 -0
  310. package/dist/stories/Table/svg_img.js +8 -0
  311. package/dist/stories/TableBox/TableBox.js +304 -0
  312. package/dist/stories/TableBox/TableBox.scss +418 -0
  313. package/dist/stories/TableBox/TableBox.stories.js +124 -0
  314. package/dist/stories/TableBox/img/delete_icon.svg +9 -0
  315. package/dist/stories/TableBox/img/forward_icon.svg +9 -0
  316. package/dist/stories/TableBox/img/more_icon.svg +10 -0
  317. package/dist/stories/TableBox/img_stories/tag_icon.svg +5 -0
  318. package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.js +91 -0
  319. package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.scss +124 -0
  320. package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.stories.js +29 -0
  321. package/dist/stories/TitleContentEditable/TitleContentEditable.js +71 -0
  322. package/dist/stories/TitleContentEditable/TitleContentEditable.scss +69 -0
  323. package/dist/stories/TitleContentEditable/TitleContentEditable.stories.js +37 -0
  324. package/dist/stories/ViewSwitch/ViewSwitch.js +48 -0
  325. package/dist/stories/ViewSwitch/ViewSwitch.scss +135 -0
  326. package/dist/stories/ViewSwitch/ViewSwitch.stories.js +48 -0
  327. package/dist/stories/ViewSwitch/img/Chat.js +24 -0
  328. package/dist/stories/ViewSwitch/img/Table.js +21 -0
  329. package/dist/stories/ViewSwitch/img/Tile.js +20 -0
  330. package/dist/stories/ViewSwitch/img/TileLong.js +20 -0
  331. package/dist/styles/font.scss +93 -0
  332. package/dist/styles/globals.scss +66 -0
  333. package/package.json +1 -1
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.OptionsText = void 0;
7
+ var _react = require("react");
8
+ var _FilterReset = require("./img/FilterReset");
9
+ var _FilterDefault = require("./img/FilterDefault");
10
+ var _OptionsNumber = require("./OptionsNumber");
11
+ require("./OptionsText.scss");
12
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
13
+ 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."); }
14
+ 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; } }
15
+ 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; }
16
+ 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; } }
17
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
18
+ var OptionsText = exports.OptionsText = function OptionsText(_ref) {
19
+ var _filters$ind, _filters$ind2;
20
+ var setParams = _ref.setParams,
21
+ params = _ref.params,
22
+ fetchedData = _ref.fetchedData,
23
+ el = _ref.el,
24
+ activeItem = _ref.activeItem,
25
+ setActiveItem = _ref.setActiveItem,
26
+ showOption = _ref.showOption,
27
+ filtersTable = _ref.filtersTable,
28
+ setShowOption = _ref.setShowOption,
29
+ filters = _ref.filters,
30
+ setFilters = _ref.setFilters,
31
+ ind = _ref.ind,
32
+ type = _ref.type,
33
+ sortingFunc = _ref.sortingFunc,
34
+ sortParam = _ref.sortParam,
35
+ sort = _ref.sort,
36
+ setFiltersTable = _ref.setFiltersTable,
37
+ fileFilters = _ref.fileFilters,
38
+ setFileFilters = _ref.setFileFilters,
39
+ _ref$lang = _ref.lang,
40
+ lang = _ref$lang === void 0 ? 'rus' : _ref$lang;
41
+ var textListType = 'textList';
42
+ var _useState = (0, _react.useState)(((_filters$ind = filters[ind]) === null || _filters$ind === void 0 ? void 0 : _filters$ind.length) > 0 ? filters[ind][3] : ''),
43
+ _useState2 = _slicedToArray(_useState, 2),
44
+ query = _useState2[0],
45
+ setQuery = _useState2[1];
46
+ var _useState3 = (0, _react.useState)(((_filters$ind2 = filters[ind]) === null || _filters$ind2 === void 0 ? void 0 : _filters$ind2.length) > 0 ? filters[ind][2] : '='),
47
+ _useState4 = _slicedToArray(_useState3, 2),
48
+ option = _useState4[0],
49
+ setOption = _useState4[1];
50
+ var _useState5 = (0, _react.useState)([]),
51
+ _useState6 = _slicedToArray(_useState5, 2),
52
+ dataCol = _useState6[0],
53
+ setDataCol = _useState6[1];
54
+ var _useState7 = (0, _react.useState)([]),
55
+ _useState8 = _slicedToArray(_useState7, 2),
56
+ dataColValue = _useState8[0],
57
+ setDataColValue = _useState8[1];
58
+ var refCol = (0, _react.useRef)();
59
+ var translateConfirm = function translateConfirm() {
60
+ if (lang == 'rus') return 'Применить';
61
+ if (lang == 'eng') return 'Confirm';
62
+ return 'Применить';
63
+ };
64
+ var translateReset = function translateReset() {
65
+ if (lang == 'rus') return 'Сбросить';
66
+ if (lang == 'eng') return 'Reset';
67
+ return 'Сбросить';
68
+ };
69
+ var addFilter = function addFilter(text) {
70
+ var query = text;
71
+ if (type === textListType) {
72
+ var _Object$entries;
73
+ var listOptions = (_Object$entries = Object.entries(dataColValue)) === null || _Object$entries === void 0 || (_Object$entries = _Object$entries.map(function (el) {
74
+ return el[1] !== false ? el[0] : -1;
75
+ })) === null || _Object$entries === void 0 || (_Object$entries = _Object$entries.filter(function (el) {
76
+ return el !== -1;
77
+ })) === null || _Object$entries === void 0 ? void 0 : _Object$entries.join(', ');
78
+ query = query.length ? query.concat(", ".concat(listOptions)) : listOptions;
79
+ }
80
+ var obj;
81
+ setFilters(function (prev) {
82
+ obj = prev;
83
+ if (prev[ind]) {
84
+ delete obj[ind];
85
+ obj[ind] = [el, type, option, query];
86
+ } else {
87
+ obj[ind] = [el, type, option, query];
88
+ }
89
+ var params = [sortParam, Object.values(obj)];
90
+ setParams(params);
91
+ sortingFunc(params);
92
+ return obj;
93
+ });
94
+ setFiltersTable(obj ? Object.values(obj) : {});
95
+ };
96
+ var dropFilter = function dropFilter() {
97
+ var obj;
98
+ setFilters(function (prev) {
99
+ obj = prev;
100
+ if (prev[ind]) {
101
+ delete obj[ind];
102
+ }
103
+ var params = [sortParam, Object.values(obj)];
104
+ setParams(params);
105
+ sortingFunc(params);
106
+ return obj;
107
+ });
108
+ setQuery('');
109
+ setFiltersTable(Object.values(obj));
110
+ setFileFilters([]);
111
+ };
112
+ var applyFilter = function applyFilter() {
113
+ addFilter(query);
114
+ setActiveItem(null);
115
+ setShowOption(false);
116
+ };
117
+ var onKeyDown = function onKeyDown(e) {
118
+ if (e.key === 'Enter') applyFilter();
119
+ };
120
+ (0, _react.useEffect)(function () {
121
+ if ((params === null || params === void 0 ? void 0 : params.length) === 0 && filters[ind]) {
122
+ dropFilter();
123
+ }
124
+ }, [params]);
125
+ return /*#__PURE__*/React.createElement("div", {
126
+ "data-value": el,
127
+ className: "filter-table-drop-text",
128
+ ref: refCol
129
+ }, /*#__PURE__*/React.createElement("div", {
130
+ className: "filter-btn-box",
131
+ style: {
132
+ position: 'relative'
133
+ }
134
+ }, /*#__PURE__*/React.createElement("div", {
135
+ className: "filter-box"
136
+ }, /*#__PURE__*/React.createElement("input", {
137
+ type: "text",
138
+ onClick: function onClick(e) {
139
+ setActiveItem(el);
140
+ setShowOption(true);
141
+ },
142
+ onKeyDown: onKeyDown,
143
+ className: activeItem == el ? 'search_table2_active' : 'search_table2',
144
+ autoFocus: activeItem == el ? true : false,
145
+ style: {
146
+ display: 'inline-block',
147
+ border: (query === null || query === void 0 ? void 0 : query.length) > 0 ? '1px solid #11195D' : ''
148
+ // border: error > 0 ? '1px solid red' : ''
149
+ },
150
+ value: query,
151
+ onChange: function onChange(e) {
152
+ return setQuery(e.target.value);
153
+ }
154
+ })), filters[ind] ? /*#__PURE__*/React.createElement(_FilterReset.FilterReset, {
155
+ className: "filter-icon-reset",
156
+ onClick: function onClick(e) {
157
+ return dropFilter();
158
+ }
159
+ }) : /*#__PURE__*/React.createElement(_FilterDefault.FilterDefault, {
160
+ className: "filter-icon-default",
161
+ onClick: function onClick(e) {
162
+ return applyFilter();
163
+ }
164
+ })));
165
+ };
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14 3H2L6.8 8.78111V12.7778L9.2 14V8.78111L14 3Z" stroke="#11195D" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13 1H1L5.8 6.78111V10.7778L8.2 12V6.78111L13 1Z" stroke="#BDBCDB" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -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>
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.InputWithState = void 0;
7
+ var _react = require("react");
8
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
9
+ 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."); }
10
+ 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; } }
11
+ 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; }
12
+ 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; } }
13
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
14
+ var InputWithState = exports.InputWithState = function InputWithState(_ref) {
15
+ var id = _ref.id,
16
+ value = _ref.value,
17
+ _ref$type = _ref.type,
18
+ type = _ref$type === void 0 ? 'text' : _ref$type,
19
+ _ref$regEx = _ref.regEx,
20
+ regEx = _ref$regEx === void 0 ? false : _ref$regEx;
21
+ var _useState = (0, _react.useState)(value),
22
+ _useState2 = _slicedToArray(_useState, 2),
23
+ currValue = _useState2[0],
24
+ setCurrValue = _useState2[1];
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ className: "input-container"
27
+ }, /*#__PURE__*/React.createElement("input", {
28
+ className: "input",
29
+ type: type,
30
+ value: currValue,
31
+ onChange: function onChange(e) {
32
+ return setCurrValue(e.target.value);
33
+ },
34
+ id: id
35
+ }));
36
+ };
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.RenderFiltersTh = void 0;
8
+ var _OptionsDate = require("../Filters/OptionsDate");
9
+ var _OptionsText = require("../Filters/OptionsText");
10
+ var _OptionsNumber = require("../Filters/OptionsNumber");
11
+ var _OptionsList = require("../Filters/OptionsList");
12
+ var _react = require("react");
13
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
+ 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; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); }
18
+ function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
19
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
20
+ var getFilterComp = function getFilterComp(_ref) {
21
+ var props = _ref.props;
22
+ var type = props.type;
23
+ if (type === 'text') {
24
+ return /*#__PURE__*/React.createElement(_OptionsText.OptionsText, props);
25
+ }
26
+ if (type === 'num') {
27
+ return /*#__PURE__*/React.createElement(_OptionsNumber.OptionsNumber, props);
28
+ }
29
+ if (type === 'list') {
30
+ return /*#__PURE__*/React.createElement(_OptionsList.OptionsList, props);
31
+ }
32
+ if (type === 'date') {
33
+ return /*#__PURE__*/React.createElement(_OptionsDate.OptionsDate, props);
34
+ }
35
+ };
36
+ var RenderFiltersTh = exports.RenderFiltersTh = function RenderFiltersTh(_ref2) {
37
+ var props = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2));
38
+ var headers = props.headers,
39
+ activeItem = props.activeItem,
40
+ showOption = props.showOption,
41
+ staticTD = props.staticTD,
42
+ showAllImages = props.showAllImages,
43
+ _props$lang = props.lang,
44
+ lang = _props$lang === void 0 ? 'rus' : _props$lang,
45
+ onUncheckAll = props.onUncheckAll,
46
+ setCheckedAll = props.setCheckedAll,
47
+ _props$filterTypes = props.filterTypes,
48
+ filterTypes = _props$filterTypes === void 0 ? false : _props$filterTypes,
49
+ _props$filterList = props.filterList,
50
+ filterList = _props$filterList === void 0 ? false : _props$filterList,
51
+ params = props.params;
52
+ var typedHeaders = (0, _react.useMemo)(function () {
53
+ var _headers$header;
54
+ return headers === null || headers === void 0 || (_headers$header = headers.header) === null || _headers$header === void 0 ? void 0 : _headers$header.map(function (el, ind) {
55
+ var type = headers === null || headers === void 0 ? void 0 : headers.type[ind];
56
+ var importantType = filterTypes !== null && filterTypes !== void 0 && filterTypes[ind] ? filterTypes === null || filterTypes === void 0 ? void 0 : filterTypes[ind] : false;
57
+ if (importantType) {
58
+ return /*#__PURE__*/React.createElement("th", {
59
+ className: "col-filters ".concat(staticTD && ind === 0 ? 'sticky_th' : ''),
60
+ "data-value": el,
61
+ key: el
62
+ }, getFilterComp({
63
+ props: _objectSpread(_objectSpread({}, props), {}, {
64
+ el: el,
65
+ ind: ind,
66
+ type: importantType,
67
+ lang: lang
68
+ })
69
+ }));
70
+ }
71
+ if (type !== 'hidden') {
72
+ if (type === 'text' || type === 'stringLayers' || type === 'imageWithText' || type === 'stringLayersWithLink' || type === 'textWithLink' || type === 'textList' || type === 'actionBtn') {
73
+ return /*#__PURE__*/React.createElement("th", {
74
+ className: "col-filters ".concat(staticTD && ind === 0 ? 'sticky_th' : ''),
75
+ "data-value": el,
76
+ key: el
77
+ }, getFilterComp({
78
+ props: _objectSpread(_objectSpread({}, props), {}, {
79
+ el: el,
80
+ ind: ind,
81
+ type: 'text',
82
+ lang: lang
83
+ })
84
+ }));
85
+ }
86
+ if (type === 'num' || type === 'currency' || type === 'rating') {
87
+ return /*#__PURE__*/React.createElement("th", {
88
+ className: "col-filters ".concat(staticTD && ind === 0 ? 'sticky_th' : ''),
89
+ "data-value": el,
90
+ key: el
91
+ }, getFilterComp({
92
+ props: _objectSpread(_objectSpread({}, props), {}, {
93
+ el: el,
94
+ ind: ind,
95
+ type: 'num',
96
+ lang: lang
97
+ })
98
+ }));
99
+ }
100
+ if (type === 'date' || type === 'fullDate') {
101
+ return /*#__PURE__*/React.createElement("th", {
102
+ className: "col-filters ".concat(staticTD && ind === 0 ? 'sticky_th' : ''),
103
+ "data-value": el,
104
+ key: el
105
+ }, getFilterComp({
106
+ props: _objectSpread(_objectSpread({}, props), {}, {
107
+ el: el,
108
+ ind: ind,
109
+ type: 'date',
110
+ lang: lang
111
+ })
112
+ }));
113
+ }
114
+ if (type === 'checkbox') {
115
+ return /*#__PURE__*/React.createElement("th", {
116
+ className: "col-filters ".concat(staticTD && ind === 0 ? 'sticky_th' : ''),
117
+ "data-value": el,
118
+ key: el
119
+ }, /*#__PURE__*/React.createElement("div", {
120
+ className: "btn-container"
121
+ }, /*#__PURE__*/React.createElement("button", {
122
+ onClick: function onClick(e) {
123
+ onUncheckAll(e);
124
+ setCheckedAll(false);
125
+ },
126
+ className: "reset-checkbox-btn"
127
+ })));
128
+ }
129
+ return /*#__PURE__*/React.createElement("th", {
130
+ className: "col-filters ".concat(staticTD && ind === 0 ? 'sticky_th' : ''),
131
+ "data-value": el,
132
+ key: el
133
+ }, /*#__PURE__*/React.createElement("div", {
134
+ className: "filter-btn-box"
135
+ }));
136
+ }
137
+ });
138
+ }, [headers, params, showOption, activeItem, showAllImages, filterList, filterTypes]);
139
+ return typedHeaders;
140
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RenderTd = void 0;
7
+ var _reactRouterDom = require("react-router-dom");
8
+ var _react = require("react");
9
+ function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
10
+ var RenderTd = exports.RenderTd = function RenderTd(_ref) {
11
+ _objectDestructuringEmpty(_ref);
12
+ return /*#__PURE__*/React.createElement("td", {
13
+ className: "type-td_text",
14
+ key: el + ind + tableId,
15
+ style: {
16
+ textAlign: 'left'
17
+ }
18
+ });
19
+ };
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RenderTh = void 0;
7
+ var _reactRouterDom = require("react-router-dom");
8
+ var _react = require("react");
9
+ var _Checkbox = _interopRequireDefault(require("../../../../common/components/Checkbox"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ var RenderTh = exports.RenderTh = function RenderTh(_ref) {
12
+ var _headers$type, _headers$header;
13
+ var headers = _ref.headers,
14
+ commonWidth = _ref.commonWidth,
15
+ activeSortColumn = _ref.activeSortColumn,
16
+ sortDirection = _ref.sortDirection,
17
+ columnSort = _ref.columnSort,
18
+ isSortable = _ref.isSortable,
19
+ sort_table = _ref.sort_table,
20
+ onCheck = _ref.onCheck,
21
+ onDelete = _ref.onDelete,
22
+ onEdit = _ref.onEdit,
23
+ sort = _ref.sort,
24
+ fetchedData = _ref.fetchedData,
25
+ onCheckCheckboxData = _ref.onCheckCheckboxData,
26
+ tableId = _ref.tableId,
27
+ onCheckboxChange = _ref.onCheckboxChange,
28
+ onCheckAll = _ref.onCheckAll,
29
+ indTr = _ref.indTr,
30
+ sortColumnInd = _ref.sortColumnInd,
31
+ selectedItems = _ref.selectedItems,
32
+ getCheckboxId = _ref.getCheckboxId;
33
+ var typeIndexArr = headers === null || headers === void 0 ? void 0 : headers.type;
34
+ var hiddenHeaders = headers === null || headers === void 0 || (_headers$type = headers.type) === null || _headers$type === void 0 ? void 0 : _headers$type.map(function (el, ind) {
35
+ return el === 'hidden' ? ind : -1;
36
+ }).filter(function (el) {
37
+ return el !== -1;
38
+ });
39
+ var headerRowList = headers === null || headers === void 0 || (_headers$header = headers.header) === null || _headers$header === void 0 ? void 0 : _headers$header.map(function (el, ind) {
40
+ var classPostfix = activeSortColumn.current === el ? " ".concat(sortDirection) : '';
41
+ var renderTh = function renderTh(el) {
42
+ /*#__PURE__*/React.createElement("th", {
43
+ key: el
44
+ }, /*#__PURE__*/React.createElement("div", {
45
+ className: "col-th-border",
46
+ style: {
47
+ t: t
48
+ }
49
+ }, /*#__PURE__*/React.createElement("p", {
50
+ className: "td-text-table"
51
+ }, el, (el === null || el === void 0 ? void 0 : el.length) > 10 ? /*#__PURE__*/React.createElement("p", {
52
+ className: "popup-th"
53
+ }, el) : null)));
54
+ };
55
+ if (hiddenHeaders.includes(ind)) return null;
56
+ if (typeIndexArr[ind] === 'image' || typeIndexArr[ind] === 'link' || typeIndexArr[ind] === 'booleanCheckbox' || typeIndexArr[ind] === 'actionBtn') {
57
+ renderTh(el);
58
+ }
59
+ return /*#__PURE__*/React.createElement("th", {
60
+ key: el,
61
+ className: 'col col' + ind + classPostfix
62
+ }, /*#__PURE__*/React.createElement("div", {
63
+ className: "col-th-border",
64
+ style: {
65
+ resize: 'horizontal',
66
+ overflow: 'hidden',
67
+ width: commonWidth + 'px'
68
+ }
69
+ }, /*#__PURE__*/React.createElement("p", {
70
+ className: "td-text-table",
71
+ onClick: function onClick() {
72
+ return columnSort(el);
73
+ }
74
+ }, el, (el === null || el === void 0 ? void 0 : el.length) > 10 && /*#__PURE__*/React.createElement("p", {
75
+ className: "popup-th"
76
+ }, el)), isSortable && /*#__PURE__*/React.createElement("img", {
77
+ src: sort_table,
78
+ onClick: function onClick() {
79
+ return columnSort(el);
80
+ }
81
+ })));
82
+ });
83
+ if (onCheck && headerRowList) {
84
+ headerRowList === null || headerRowList === void 0 || headerRowList.unshift(/*#__PURE__*/React.createElement("th", {
85
+ key: "check",
86
+ className: 'th-check col' + (headerRowList === null || headerRowList === void 0 ? void 0 : headerRowList.length)
87
+ }, /*#__PURE__*/React.createElement(_Checkbox["default"], {
88
+ id: getCheckboxId(fetchedData),
89
+ value: selectedItems[getCheckboxId(fetchedData)],
90
+ onChange: function onChange(e) {
91
+ return onCheckAll();
92
+ }
93
+ })));
94
+ }
95
+ if (onEdit) {
96
+ headerRowList === null || headerRowList === void 0 || headerRowList.push(/*#__PURE__*/React.createElement("th", {
97
+ key: "edit",
98
+ className: 'th-edit col' + (headerRowList === null || headerRowList === void 0 ? void 0 : headerRowList.length)
99
+ }, /*#__PURE__*/React.createElement("p", {
100
+ className: "td-text-table"
101
+ }, "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C")));
102
+ }
103
+ if (onDelete) {
104
+ headerRowList === null || headerRowList === void 0 || headerRowList.push(/*#__PURE__*/React.createElement("th", {
105
+ key: "delete",
106
+ className: 'th-delete col' + (headerRowList === null || headerRowList === void 0 ? void 0 : headerRowList.length) + 1
107
+ }, /*#__PURE__*/React.createElement("p", {
108
+ className: "td-text-table"
109
+ }, "\u0423\u0434\u0430\u043B\u0438\u0442\u044C")));
110
+ }
111
+ return headerRowList;
112
+ };