pixel-react 1.10.15 → 1.10.16

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 (868) hide show
  1. package/lib/index.cjs +48 -0
  2. package/lib/index.cjs.map +1 -0
  3. package/package.json +7 -2
  4. package/.prettierrc.js +0 -13
  5. package/.storybook/main.ts +0 -26
  6. package/.storybook/preview-head.html +0 -3
  7. package/.storybook/preview.ts +0 -26
  8. package/.yarn/install-state.gz +0 -0
  9. package/.yarnrc.yml +0 -1
  10. package/index.scss +0 -5
  11. package/rollup.config.mjs +0 -73
  12. package/src/ComponentProps/TreeNodeProps.ts +0 -37
  13. package/src/StyleGuide/ColorPalette/ColorPalette.stories.tsx +0 -16
  14. package/src/StyleGuide/ColorPalette/ColorPalette.tsx +0 -67
  15. package/src/StyleGuide/ColorPalette/colorPaletteList.ts +0 -359
  16. package/src/StyleGuide/ColorPalette/index.ts +0 -1
  17. package/src/StyleGuide/ColorPalette/types.ts +0 -19
  18. package/src/StyleGuide/Typography/Typography.stories.tsx +0 -16
  19. package/src/StyleGuide/Typography/Typography.tsx +0 -60
  20. package/src/StyleGuide/Typography/TypographyList.ts +0 -3
  21. package/src/StyleGuide/Typography/types.ts +0 -9
  22. package/src/assets/icons/Arrow.svg +0 -5
  23. package/src/assets/icons/Header_preset.svg +0 -18
  24. package/src/assets/icons/accordion_header_icon.svg +0 -10
  25. package/src/assets/icons/active_license_icon.svg +0 -3
  26. package/src/assets/icons/add_archive.svg +0 -9
  27. package/src/assets/icons/add_file.svg +0 -4
  28. package/src/assets/icons/add_label_icon.svg +0 -3
  29. package/src/assets/icons/add_locator.svg +0 -5
  30. package/src/assets/icons/add_testcase.svg +0 -3
  31. package/src/assets/icons/add_user.svg +0 -9
  32. package/src/assets/icons/add_variable.svg +0 -11
  33. package/src/assets/icons/add_variable_icon.svg +0 -4
  34. package/src/assets/icons/ai_search.svg +0 -9
  35. package/src/assets/icons/alert.svg +0 -17
  36. package/src/assets/icons/all_borders.svg +0 -3
  37. package/src/assets/icons/all_projects.svg +0 -3
  38. package/src/assets/icons/android.svg +0 -9
  39. package/src/assets/icons/android_icon.svg +0 -6
  40. package/src/assets/icons/apk_file_type.svg +0 -4
  41. package/src/assets/icons/app_switch.svg +0 -11
  42. package/src/assets/icons/approval_pending.svg +0 -8
  43. package/src/assets/icons/arrow_down.svg +0 -3
  44. package/src/assets/icons/arrow_right.svg +0 -5
  45. package/src/assets/icons/arrow_up.svg +0 -3
  46. package/src/assets/icons/arrows_down_icon.svg +0 -3
  47. package/src/assets/icons/arrows_right_icon.svg +0 -10
  48. package/src/assets/icons/arrows_top_icon.svg +0 -3
  49. package/src/assets/icons/attachment_icon.svg +0 -3
  50. package/src/assets/icons/authorization.svg +0 -4
  51. package/src/assets/icons/authorization_icon.svg +0 -4
  52. package/src/assets/icons/auto_save_icon.svg +0 -4
  53. package/src/assets/icons/automation_testcase.svg +0 -4
  54. package/src/assets/icons/azure.svg +0 -9
  55. package/src/assets/icons/back_icon.svg +0 -3
  56. package/src/assets/icons/backward.svg +0 -10
  57. package/src/assets/icons/backward_icon.svg +0 -3
  58. package/src/assets/icons/beautify_icon.svg +0 -3
  59. package/src/assets/icons/bitbucket.svg +0 -9
  60. package/src/assets/icons/bold.svg +0 -3
  61. package/src/assets/icons/border_bottom.svg +0 -3
  62. package/src/assets/icons/border_left.svg +0 -3
  63. package/src/assets/icons/border_right.svg +0 -3
  64. package/src/assets/icons/border_top.svg +0 -3
  65. package/src/assets/icons/browser_stack.svg +0 -9
  66. package/src/assets/icons/browserstack_icon.svg +0 -24
  67. package/src/assets/icons/calendar_icon.svg +0 -9
  68. package/src/assets/icons/capture_icon.svg +0 -3
  69. package/src/assets/icons/check_mark.svg +0 -3
  70. package/src/assets/icons/chrome.svg +0 -12
  71. package/src/assets/icons/clear_cache.svg +0 -5
  72. package/src/assets/icons/clear_history.svg +0 -6
  73. package/src/assets/icons/client_profile.svg +0 -4
  74. package/src/assets/icons/clock_icon.svg +0 -11
  75. package/src/assets/icons/clone_icon.svg +0 -3
  76. package/src/assets/icons/close_defects_icon.svg +0 -12
  77. package/src/assets/icons/close_pill.svg +0 -3
  78. package/src/assets/icons/cloud_server_host_icon.svg +0 -3
  79. package/src/assets/icons/code.svg +0 -4
  80. package/src/assets/icons/code_colored.svg +0 -4
  81. package/src/assets/icons/collapse-icon.svg +0 -6
  82. package/src/assets/icons/compressed_file_type.svg +0 -4
  83. package/src/assets/icons/configuration.svg +0 -3
  84. package/src/assets/icons/continue_without_sign.svg +0 -3
  85. package/src/assets/icons/copy-icon.svg +0 -3
  86. package/src/assets/icons/csharp.svg +0 -9
  87. package/src/assets/icons/csv_file_type.svg +0 -4
  88. package/src/assets/icons/cypress.svg +0 -9
  89. package/src/assets/icons/dashboard_icon.svg +0 -31
  90. package/src/assets/icons/dashboard_mobile_icon.svg +0 -47
  91. package/src/assets/icons/dashboard_web_icon.svg +0 -9
  92. package/src/assets/icons/data_provider.svg +0 -8
  93. package/src/assets/icons/dataset_list.svg +0 -3
  94. package/src/assets/icons/defect_density_icon.svg +0 -12
  95. package/src/assets/icons/defects.svg +0 -8
  96. package/src/assets/icons/delete.svg +0 -3
  97. package/src/assets/icons/delete_filled.svg +0 -12
  98. package/src/assets/icons/delete_info.svg +0 -17
  99. package/src/assets/icons/depends_on_script.svg +0 -7
  100. package/src/assets/icons/design_link.svg +0 -7
  101. package/src/assets/icons/details.svg +0 -3
  102. package/src/assets/icons/disable_icon.svg +0 -3
  103. package/src/assets/icons/double_underline.svg +0 -5
  104. package/src/assets/icons/download-icon.svg +0 -3
  105. package/src/assets/icons/download_file_icon.svg +0 -3
  106. package/src/assets/icons/download_icon.svg +0 -4
  107. package/src/assets/icons/drag_icon.svg +0 -5
  108. package/src/assets/icons/drawer_maximize.svg +0 -6
  109. package/src/assets/icons/dropzone_icon.svg +0 -18
  110. package/src/assets/icons/edge.svg +0 -30
  111. package/src/assets/icons/edit_icon.svg +0 -5
  112. package/src/assets/icons/element.svg +0 -4
  113. package/src/assets/icons/email_group.svg +0 -3
  114. package/src/assets/icons/enable_icon.svg +0 -3
  115. package/src/assets/icons/error.svg +0 -17
  116. package/src/assets/icons/excel_corner_menu.svg +0 -3
  117. package/src/assets/icons/executions_icon.svg +0 -3
  118. package/src/assets/icons/expand-icon.svg +0 -6
  119. package/src/assets/icons/export.svg +0 -5
  120. package/src/assets/icons/export_collection_icon.svg +0 -13
  121. package/src/assets/icons/external_user.svg +0 -13
  122. package/src/assets/icons/eye_closed.svg +0 -3
  123. package/src/assets/icons/eye_open_icon.svg +0 -3
  124. package/src/assets/icons/failed_status_icon.svg +0 -12
  125. package/src/assets/icons/file.svg +0 -12
  126. package/src/assets/icons/file_colored.svg +0 -5
  127. package/src/assets/icons/fill_color.svg +0 -7
  128. package/src/assets/icons/filter.svg +0 -5
  129. package/src/assets/icons/fire_fox.svg +0 -106
  130. package/src/assets/icons/fireflink_finder_logo.svg +0 -7
  131. package/src/assets/icons/fireflink_icon.svg +0 -4
  132. package/src/assets/icons/fireflink_logo.svg +0 -13
  133. package/src/assets/icons/fireflink_platform.svg +0 -4
  134. package/src/assets/icons/firefox.svg +0 -84
  135. package/src/assets/icons/flaky_status_icon.svg +0 -12
  136. package/src/assets/icons/formate_painter.svg +0 -5
  137. package/src/assets/icons/formula_icon.svg +0 -3
  138. package/src/assets/icons/forward.svg +0 -3
  139. package/src/assets/icons/forward_icon.svg +0 -3
  140. package/src/assets/icons/full_access_icon.svg +0 -4
  141. package/src/assets/icons/gif_file_type.svg +0 -4
  142. package/src/assets/icons/github.svg +0 -9
  143. package/src/assets/icons/gitlab.svg +0 -9
  144. package/src/assets/icons/global_variable_icon.svg +0 -4
  145. package/src/assets/icons/group_user.svg +0 -12
  146. package/src/assets/icons/hamburger_menu.svg +0 -3
  147. package/src/assets/icons/help_icon.svg +0 -10
  148. package/src/assets/icons/hide_access_icon.svg +0 -3
  149. package/src/assets/icons/hide_icon.svg +0 -9
  150. package/src/assets/icons/history_icon.svg +0 -19
  151. package/src/assets/icons/html_file_type.svg +0 -4
  152. package/src/assets/icons/impact_list.svg +0 -6
  153. package/src/assets/icons/import.svg +0 -5
  154. package/src/assets/icons/import_icon.svg +0 -4
  155. package/src/assets/icons/info.svg +0 -17
  156. package/src/assets/icons/info_icon.svg +0 -5
  157. package/src/assets/icons/info_user.svg +0 -5
  158. package/src/assets/icons/internet_explorer.svg +0 -3
  159. package/src/assets/icons/ios_icon.svg +0 -11
  160. package/src/assets/icons/ipk_file_type.svg +0 -4
  161. package/src/assets/icons/italic.svg +0 -3
  162. package/src/assets/icons/java.svg +0 -4
  163. package/src/assets/icons/javascript.svg +0 -11
  164. package/src/assets/icons/jenkins.svg +0 -9
  165. package/src/assets/icons/jira.svg +0 -3
  166. package/src/assets/icons/jira_colored.svg +0 -15
  167. package/src/assets/icons/jira_logo.svg +0 -9
  168. package/src/assets/icons/jpg_file_type.svg +0 -4
  169. package/src/assets/icons/json_file_type.svg +0 -4
  170. package/src/assets/icons/label_icon.svg +0 -8
  171. package/src/assets/icons/label_plus.svg +0 -3
  172. package/src/assets/icons/labels.svg +0 -8
  173. package/src/assets/icons/lambda_icon.svg +0 -3
  174. package/src/assets/icons/left_arrow_icon.svg +0 -3
  175. package/src/assets/icons/license_expired.svg +0 -20
  176. package/src/assets/icons/license_info.svg +0 -28
  177. package/src/assets/icons/license_warning.svg +0 -10
  178. package/src/assets/icons/link_expired.svg +0 -186
  179. package/src/assets/icons/linked_defects.svg +0 -11
  180. package/src/assets/icons/linux.svg +0 -42
  181. package/src/assets/icons/local.svg +0 -3
  182. package/src/assets/icons/local_variable_icon.svg +0 -4
  183. package/src/assets/icons/logo.svg +0 -18
  184. package/src/assets/icons/mac.svg +0 -9
  185. package/src/assets/icons/machine_disable_icon.svg +0 -18
  186. package/src/assets/icons/machine_enable_icon.svg +0 -10
  187. package/src/assets/icons/manage_apps.svg +0 -3
  188. package/src/assets/icons/manual_locator.svg +0 -8
  189. package/src/assets/icons/manual_testcase.svg +0 -3
  190. package/src/assets/icons/maximize_icon.svg +0 -5
  191. package/src/assets/icons/maximize_script.svg +0 -12
  192. package/src/assets/icons/maximize_tree.svg +0 -3
  193. package/src/assets/icons/mic.svg +0 -4
  194. package/src/assets/icons/mic_filled.svg +0 -28
  195. package/src/assets/icons/minimize_script.svg +0 -5
  196. package/src/assets/icons/mobile_icon.svg +0 -3
  197. package/src/assets/icons/module_icon.svg +0 -3
  198. package/src/assets/icons/moon_stars.svg +0 -10
  199. package/src/assets/icons/more.svg +0 -11
  200. package/src/assets/icons/move_icon.svg +0 -5
  201. package/src/assets/icons/ms_dynamic.svg +0 -4
  202. package/src/assets/icons/ms_dynamic_icon.svg +0 -15
  203. package/src/assets/icons/nlp_help_icon.svg +0 -3
  204. package/src/assets/icons/no_access_icon.svg +0 -4
  205. package/src/assets/icons/no_border.svg +0 -3
  206. package/src/assets/icons/no_data.svg +0 -13
  207. package/src/assets/icons/no_license_found.svg +0 -22
  208. package/src/assets/icons/notification_icon.svg +0 -3
  209. package/src/assets/icons/open_defects_icon.svg +0 -12
  210. package/src/assets/icons/opera.svg +0 -9
  211. package/src/assets/icons/parameters.svg +0 -3
  212. package/src/assets/icons/passed_status_icon.svg +0 -12
  213. package/src/assets/icons/pdf_file_type.svg +0 -4
  214. package/src/assets/icons/playwright.svg +0 -9
  215. package/src/assets/icons/plus_icon.svg +0 -11
  216. package/src/assets/icons/plus_round_icon.svg +0 -38
  217. package/src/assets/icons/plus_user_icon.svg +0 -3
  218. package/src/assets/icons/png_file_type.svg +0 -4
  219. package/src/assets/icons/pre_post_condition.svg +0 -8
  220. package/src/assets/icons/primary_calendar_icon.svg +0 -3
  221. package/src/assets/icons/program_element.svg +0 -8
  222. package/src/assets/icons/project_element.svg +0 -4
  223. package/src/assets/icons/project_env_variable_icon.svg +0 -4
  224. package/src/assets/icons/project_status_icon.svg +0 -10
  225. package/src/assets/icons/python.svg +0 -19
  226. package/src/assets/icons/quality_score_icon.svg +0 -12
  227. package/src/assets/icons/quick_run_setting_icon.svg +0 -5
  228. package/src/assets/icons/refresh-icon.svg +0 -4
  229. package/src/assets/icons/refresh_icon.svg +0 -4
  230. package/src/assets/icons/regenerate.svg +0 -4
  231. package/src/assets/icons/reload.svg +0 -3
  232. package/src/assets/icons/remove.svg +0 -12
  233. package/src/assets/icons/remove_user.svg +0 -3
  234. package/src/assets/icons/replace.svg +0 -12
  235. package/src/assets/icons/replace_file.svg +0 -14
  236. package/src/assets/icons/replace_icon.svg +0 -6
  237. package/src/assets/icons/reset-link.svg +0 -52
  238. package/src/assets/icons/right_arrow_filled_icon.svg +0 -5
  239. package/src/assets/icons/right_arrow_icon.svg +0 -4
  240. package/src/assets/icons/rotate_icon.svg +0 -10
  241. package/src/assets/icons/run_automation_scripts_icon.svg +0 -33
  242. package/src/assets/icons/run_icon.svg +0 -26
  243. package/src/assets/icons/run_manual_testcase_icon.svg +0 -4
  244. package/src/assets/icons/safari.svg +0 -93
  245. package/src/assets/icons/safari_icon.svg +0 -12
  246. package/src/assets/icons/sales_force.svg +0 -7
  247. package/src/assets/icons/salesforce_icon.svg +0 -14
  248. package/src/assets/icons/sample_template_first.svg +0 -29
  249. package/src/assets/icons/sample_template_second.svg +0 -47
  250. package/src/assets/icons/sause_lab.svg +0 -3
  251. package/src/assets/icons/sause_lab_icon.svg +0 -3
  252. package/src/assets/icons/save_as_step.svg +0 -3
  253. package/src/assets/icons/screenshot.svg +0 -7
  254. package/src/assets/icons/search.svg +0 -3
  255. package/src/assets/icons/send_step.svg +0 -4
  256. package/src/assets/icons/settings.svg +0 -3
  257. package/src/assets/icons/single_user.svg +0 -12
  258. package/src/assets/icons/skipped_status_icon.svg +0 -12
  259. package/src/assets/icons/slack.svg +0 -9
  260. package/src/assets/icons/spinner.svg +0 -42
  261. package/src/assets/icons/standard_template.svg +0 -30
  262. package/src/assets/icons/step_group.svg +0 -10
  263. package/src/assets/icons/strike_through.svg +0 -3
  264. package/src/assets/icons/success.svg +0 -17
  265. package/src/assets/icons/suites_icon.svg +0 -3
  266. package/src/assets/icons/sun_icon.svg +0 -10
  267. package/src/assets/icons/swipe_icon.svg +0 -9
  268. package/src/assets/icons/switch_license_icon.svg +0 -123
  269. package/src/assets/icons/system_warning.svg +0 -61
  270. package/src/assets/icons/tap_icon.svg +0 -4
  271. package/src/assets/icons/test_data.svg +0 -5
  272. package/src/assets/icons/test_data_set.svg +0 -7
  273. package/src/assets/icons/test_freshers_logo.svg +0 -8
  274. package/src/assets/icons/text_align_center.svg +0 -3
  275. package/src/assets/icons/text_align_left.svg +0 -3
  276. package/src/assets/icons/text_align_right.svg +0 -3
  277. package/src/assets/icons/text_color.svg +0 -3
  278. package/src/assets/icons/tick_icon.svg +0 -5
  279. package/src/assets/icons/toast_close.svg +0 -3
  280. package/src/assets/icons/total_defects_status_icon.svg +0 -13
  281. package/src/assets/icons/txt_file_type.svg +0 -4
  282. package/src/assets/icons/underline.svg +0 -4
  283. package/src/assets/icons/unfollow_icon.svg +0 -3
  284. package/src/assets/icons/update_icon.svg +0 -3
  285. package/src/assets/icons/user_password_lock.svg +0 -220
  286. package/src/assets/icons/user_profile.svg +0 -3
  287. package/src/assets/icons/user_warning.svg +0 -235
  288. package/src/assets/icons/user_with_system.svg +0 -637
  289. package/src/assets/icons/variable.svg +0 -3
  290. package/src/assets/icons/variable_icon.svg +0 -4
  291. package/src/assets/icons/variable_set.svg +0 -5
  292. package/src/assets/icons/vertical_separator.svg +0 -3
  293. package/src/assets/icons/view_access_icon.svg +0 -4
  294. package/src/assets/icons/view_icon.svg +0 -3
  295. package/src/assets/icons/warning.svg +0 -17
  296. package/src/assets/icons/warning_status_icon.svg +0 -12
  297. package/src/assets/icons/web&mobile_icon.svg +0 -3
  298. package/src/assets/icons/web_icon.svg +0 -3
  299. package/src/assets/icons/web_mobile_icon.svg +0 -29
  300. package/src/assets/icons/web_service_icon.svg +0 -3
  301. package/src/assets/icons/web_services_icon.svg +0 -30
  302. package/src/assets/icons/window_maximize.svg +0 -3
  303. package/src/assets/icons/window_minimize.svg +0 -3
  304. package/src/assets/icons/window_restore.svg +0 -4
  305. package/src/assets/icons/windows.svg +0 -10
  306. package/src/assets/icons/wrong_mark.svg +0 -3
  307. package/src/assets/icons/wswb_delete_icon.svg +0 -4
  308. package/src/assets/icons/wswb_plus_icon.svg +0 -5
  309. package/src/assets/icons/xls_file_type.svg +0 -4
  310. package/src/assets/icons/xlsx_file_type.svg +0 -4
  311. package/src/assets/icons/xml_file_type.svg +0 -4
  312. package/src/assets/utils/functionUtils.ts +0 -96
  313. package/src/components/Accordion/Accordion.stories.tsx +0 -58
  314. package/src/components/Accordion/Accordion.tsx +0 -80
  315. package/src/components/Accordion/index.ts +0 -1
  316. package/src/components/Accordion/types.ts +0 -52
  317. package/src/components/AddResourceButton/AddResourceButton.stories.tsx +0 -142
  318. package/src/components/AddResourceButton/AddResourceButton.tsx +0 -138
  319. package/src/components/AddResourceButton/ArrowsButton/ArrowsButton.tsx +0 -45
  320. package/src/components/AddResourceButton/index.ts +0 -1
  321. package/src/components/AddResourceButton/type.ts +0 -103
  322. package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +0 -122
  323. package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +0 -164
  324. package/src/components/AllProjectsDropdown/index.ts +0 -1
  325. package/src/components/AllProjectsDropdown/types.ts +0 -14
  326. package/src/components/AppHeader/AppHeader.stories.tsx +0 -554
  327. package/src/components/AppHeader/AppHeader.tsx +0 -206
  328. package/src/components/AppHeader/index.ts +0 -1
  329. package/src/components/AppHeader/types.ts +0 -55
  330. package/src/components/AttachImage/AttachImage.stories.tsx +0 -24
  331. package/src/components/AttachImage/AttachImage.tsx +0 -60
  332. package/src/components/AttachImage/index.ts +0 -2
  333. package/src/components/AttachImage/types.ts +0 -26
  334. package/src/components/AttachmentButton/AttachmentButton.stories.tsx +0 -81
  335. package/src/components/AttachmentButton/AttachmentButton.tsx +0 -129
  336. package/src/components/AttachmentButton/index.ts +0 -1
  337. package/src/components/AttachmentButton/types.ts +0 -13
  338. package/src/components/Avatar/Avatar.stories.tsx +0 -76
  339. package/src/components/Avatar/Avatar.tsx +0 -41
  340. package/src/components/Avatar/index.ts +0 -1
  341. package/src/components/Avatar/types.ts +0 -35
  342. package/src/components/BrowserTabs/BrowserTabs.stories.tsx +0 -366
  343. package/src/components/BrowserTabs/BrowserTabs.tsx +0 -128
  344. package/src/components/BrowserTabs/index.ts +0 -1
  345. package/src/components/BrowserTabs/types.ts +0 -73
  346. package/src/components/Button/Button.stories.tsx +0 -81
  347. package/src/components/Button/Button.tsx +0 -92
  348. package/src/components/Button/index.ts +0 -1
  349. package/src/components/Button/types.ts +0 -90
  350. package/src/components/Charts/BarChart/BarChart.stories.tsx +0 -161
  351. package/src/components/Charts/BarChart/BarChart.tsx +0 -358
  352. package/src/components/Charts/BarChart/index.ts +0 -1
  353. package/src/components/Charts/BarChart/types.ts +0 -12
  354. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +0 -90
  355. package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +0 -568
  356. package/src/components/Charts/DashboardDonutChart/index.ts +0 -1
  357. package/src/components/Charts/DashboardDonutChart/types.ts +0 -63
  358. package/src/components/Charts/DonutChart/DonutChart.stories.tsx +0 -30
  359. package/src/components/Charts/DonutChart/DonutChart.tsx +0 -246
  360. package/src/components/Charts/DonutChart/index.ts +0 -1
  361. package/src/components/Charts/DonutChart/type.ts +0 -23
  362. package/src/components/Charts/IconRadialChart/IconRadialChart.stories.tsx +0 -52
  363. package/src/components/Charts/IconRadialChart/IconRadialChart.tsx +0 -174
  364. package/src/components/Charts/IconRadialChart/index.ts +0 -1
  365. package/src/components/Charts/IconRadialChart/types.ts +0 -29
  366. package/src/components/Charts/LineChart/LineChart.stories.tsx +0 -199
  367. package/src/components/Charts/LineChart/LineChart.tsx +0 -395
  368. package/src/components/Charts/LineChart/index.ts +0 -1
  369. package/src/components/Charts/LineChart/types.ts +0 -32
  370. package/src/components/Charts/MultiRadialChart/MultiRadialChart.stories.tsx +0 -170
  371. package/src/components/Charts/MultiRadialChart/MultiRadialChart.tsx +0 -353
  372. package/src/components/Charts/MultiRadialChart/index.ts +0 -1
  373. package/src/components/Charts/MultiRadialChart/types.ts +0 -30
  374. package/src/components/Charts/PieChart/PieChart.stories.tsx +0 -46
  375. package/src/components/Charts/PieChart/PieChart.tsx +0 -192
  376. package/src/components/Charts/PieChart/index.ts +0 -1
  377. package/src/components/Charts/PieChart/types.ts +0 -28
  378. package/src/components/Charts/RadialChart/RadialChart.stories.tsx +0 -36
  379. package/src/components/Charts/RadialChart/RadialChart.tsx +0 -180
  380. package/src/components/Charts/RadialChart/index.ts +0 -1
  381. package/src/components/Charts/RadialChart/types.ts +0 -32
  382. package/src/components/Checkbox/Checkbox.stories.tsx +0 -108
  383. package/src/components/Checkbox/Checkbox.tsx +0 -57
  384. package/src/components/Checkbox/index.ts +0 -1
  385. package/src/components/Checkbox/types.ts +0 -34
  386. package/src/components/Chip/Chip.stories.tsx +0 -126
  387. package/src/components/Chip/Chip.tsx +0 -39
  388. package/src/components/Chip/index.ts +0 -1
  389. package/src/components/Chip/types.ts +0 -19
  390. package/src/components/ChooseFile/ChooseFile.stories.tsx +0 -190
  391. package/src/components/ChooseFile/ChooseFile.tsx +0 -45
  392. package/src/components/ChooseFile/types.ts +0 -78
  393. package/src/components/Comment/Comments.stories.tsx +0 -230
  394. package/src/components/Comment/Comments.tsx +0 -70
  395. package/src/components/Comment/comment/Comment.tsx +0 -206
  396. package/src/components/Comment/comment/useNode.ts +0 -51
  397. package/src/components/Comment/index.ts +0 -1
  398. package/src/components/Comment/type.ts +0 -36
  399. package/src/components/ConditionalDropdown/ConditionalDropdown.stories.tsx +0 -151
  400. package/src/components/ConditionalDropdown/ConditionalDropdown.tsx +0 -276
  401. package/src/components/ConditionalDropdown/OptionsDropdown.tsx +0 -44
  402. package/src/components/ConditionalDropdown/index.ts +0 -1
  403. package/src/components/ConditionalDropdown/types.ts +0 -166
  404. package/src/components/ConnectingBranch/BranchComponents/MachineInstances.tsx +0 -167
  405. package/src/components/ConnectingBranch/ConnectingBranch.stories.tsx +0 -64
  406. package/src/components/ConnectingBranch/ConnectingBranch.tsx +0 -213
  407. package/src/components/ConnectingBranch/data.tsx +0 -220
  408. package/src/components/ConnectingBranch/index.ts +0 -1
  409. package/src/components/ConnectingBranch/types.ts +0 -53
  410. package/src/components/CreateVariable/CreateVariableSlider.stories.tsx +0 -66
  411. package/src/components/CreateVariable/CreateVariableSlider.tsx +0 -95
  412. package/src/components/CreateVariable/index.ts +0 -1
  413. package/src/components/CreateVariable/types.ts +0 -58
  414. package/src/components/DatePicker/DatePicker.stories.tsx +0 -193
  415. package/src/components/DatePicker/DatePicker.tsx +0 -542
  416. package/src/components/DatePicker/Timepicker.tsx +0 -360
  417. package/src/components/DatePicker/index.ts +0 -1
  418. package/src/components/DatePicker/types.ts +0 -109
  419. package/src/components/DownloadClient/DownloadClient.stories.tsx +0 -26
  420. package/src/components/DownloadClient/DownloadClient.tsx +0 -90
  421. package/src/components/DownloadClient/index.ts +0 -1
  422. package/src/components/DownloadClient/type.ts +0 -33
  423. package/src/components/DragAndDrop/DragAndDrop.d.ts +0 -5
  424. package/src/components/DragAndDrop/DragAndDrop.stories.tsx +0 -25
  425. package/src/components/DragAndDrop/DragAndDrop.ts +0 -7
  426. package/src/components/DragAndDrop/DragAndDropList.tsx +0 -151
  427. package/src/components/DragAndDrop/index.ts +0 -1
  428. package/src/components/Drawer/Drawer.stories.tsx +0 -157
  429. package/src/components/Drawer/Drawer.tsx +0 -237
  430. package/src/components/Drawer/Types.ts +0 -165
  431. package/src/components/Drawer/index.ts +0 -1
  432. package/src/components/EditTextField/EditTextField.stories.tsx +0 -127
  433. package/src/components/EditTextField/EditTextField.tsx +0 -175
  434. package/src/components/EditTextField/index.ts +0 -1
  435. package/src/components/EditTextField/types.ts +0 -55
  436. package/src/components/Editor/Editor.stories.tsx +0 -54
  437. package/src/components/Editor/Editor.tsx +0 -250
  438. package/src/components/Editor/VariableDropdown.tsx +0 -64
  439. package/src/components/Editor/constants.ts +0 -180
  440. package/src/components/Editor/index.ts +0 -1
  441. package/src/components/Editor/types.ts +0 -89
  442. package/src/components/Excel/ColorBarSelector/ColorBarSelector.tsx +0 -43
  443. package/src/components/Excel/ExcelContextMenu/ExcelContextMenu.tsx +0 -46
  444. package/src/components/Excel/ExcelFile/ExcelFile.tsx +0 -627
  445. package/src/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.tsx +0 -183
  446. package/src/components/Excel/ExcelFile/ExcelFileComponents/Cell.tsx +0 -170
  447. package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +0 -187
  448. package/src/components/Excel/ExcelFile/ExcelFileComponents/Copied.tsx +0 -25
  449. package/src/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.tsx +0 -56
  450. package/src/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.tsx +0 -41
  451. package/src/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.tsx +0 -46
  452. package/src/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.tsx +0 -61
  453. package/src/components/Excel/ExcelFile/ExcelFileComponents/HeaderRow.tsx +0 -7
  454. package/src/components/Excel/ExcelFile/ExcelFileComponents/Row.tsx +0 -5
  455. package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +0 -168
  456. package/src/components/Excel/ExcelFile/ExcelFileComponents/Selected.tsx +0 -32
  457. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +0 -568
  458. package/src/components/Excel/ExcelFile/ExcelFileComponents/Table.tsx +0 -19
  459. package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +0 -605
  460. package/src/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.ts +0 -18
  461. package/src/components/Excel/ExcelFile/ExcelFileComponents/context.ts +0 -12
  462. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.ts +0 -153
  463. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.ts +0 -32
  464. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/index.ts +0 -2
  465. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.ts +0 -152
  466. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-hash.ts +0 -10
  467. package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-set.ts +0 -69
  468. package/src/components/Excel/ExcelFile/ExcelFileComponents/index.ts +0 -49
  469. package/src/components/Excel/ExcelFile/ExcelFileComponents/matrix.ts +0 -382
  470. package/src/components/Excel/ExcelFile/ExcelFileComponents/point-range.ts +0 -82
  471. package/src/components/Excel/ExcelFile/ExcelFileComponents/point.ts +0 -15
  472. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +0 -763
  473. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +0 -917
  474. package/src/components/Excel/ExcelFile/ExcelFileComponents/selection.ts +0 -257
  475. package/src/components/Excel/ExcelFile/ExcelFileComponents/types.ts +0 -269
  476. package/src/components/Excel/ExcelFile/ExcelFileComponents/typings/fast-formula-parser.d.ts +0 -58
  477. package/src/components/Excel/ExcelFile/ExcelFileComponents/use-dispatch.ts +0 -8
  478. package/src/components/Excel/ExcelFile/ExcelFileComponents/use-selector.ts +0 -9
  479. package/src/components/Excel/ExcelFile/ExcelFileComponents/util.ts +0 -172
  480. package/src/components/Excel/ExcelFile.stories.tsx +0 -171
  481. package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +0 -467
  482. package/src/components/Excel/Types.ts +0 -199
  483. package/src/components/Excel/dataConversion.ts +0 -192
  484. package/src/components/Excel/index.ts +0 -1
  485. package/src/components/ExpandableMenu/ExpandableMenu.stories.tsx +0 -67
  486. package/src/components/ExpandableMenu/ExpandableMenu.tsx +0 -101
  487. package/src/components/ExpandableMenu/index.ts +0 -1
  488. package/src/components/ExpandableMenu/types.ts +0 -34
  489. package/src/components/FF_Captcha/Recaptcha.tsx +0 -51
  490. package/src/components/FF_Captcha/captcha.stories.tsx +0 -40
  491. package/src/components/FF_Captcha/index.ts +0 -0
  492. package/src/components/FF_Captcha/types.ts +0 -30
  493. package/src/components/FieldSet/FieldSet.stories.tsx +0 -104
  494. package/src/components/FieldSet/FieldSet.tsx +0 -29
  495. package/src/components/FieldSet/index.ts +0 -1
  496. package/src/components/FieldSet/types.ts +0 -8
  497. package/src/components/FileDropzone/Dropzone.tsx +0 -109
  498. package/src/components/FileDropzone/FileDropzone.stories.tsx +0 -273
  499. package/src/components/FileDropzone/FileDropzone.tsx +0 -164
  500. package/src/components/FileDropzone/FilePreview.tsx +0 -77
  501. package/src/components/FileDropzone/RadioFilePreview.tsx +0 -80
  502. package/src/components/FileDropzone/index.ts +0 -1
  503. package/src/components/FileDropzone/types.ts +0 -208
  504. package/src/components/Form/Form.d.ts +0 -3
  505. package/src/components/Form/Form.stories.tsx +0 -508
  506. package/src/components/Form/Form.ts +0 -2
  507. package/src/components/Form/Forms.tsx +0 -39
  508. package/src/components/Form/index.ts +0 -1
  509. package/src/components/Form/types.ts +0 -1
  510. package/src/components/Form/validation.json +0 -29
  511. package/src/components/GridLayout/GridLayout.stories.tsx +0 -90
  512. package/src/components/GridLayout/GridLayout.tsx +0 -39
  513. package/src/components/GridLayout/index.ts +0 -1
  514. package/src/components/GridLayout/types.ts +0 -84
  515. package/src/components/HighlightText/HighlightText.stories.tsx +0 -22
  516. package/src/components/HighlightText/HighlightText.tsx +0 -33
  517. package/src/components/HighlightText/index.ts +0 -1
  518. package/src/components/HighlightText/types.ts +0 -4
  519. package/src/components/Icon/Icon.stories.tsx +0 -113
  520. package/src/components/Icon/Icon.tsx +0 -88
  521. package/src/components/Icon/iconList.ts +0 -590
  522. package/src/components/Icon/index.ts +0 -1
  523. package/src/components/Icon/types.ts +0 -14
  524. package/src/components/IconButton/IconButton.stories.tsx +0 -34
  525. package/src/components/IconButton/IconButton.tsx +0 -33
  526. package/src/components/IconButton/index.ts +0 -1
  527. package/src/components/IconButton/types.ts +0 -6
  528. package/src/components/IconRadioGroup/IconRadioGroup.stories.tsx +0 -108
  529. package/src/components/IconRadioGroup/IconRadioGroup.tsx +0 -73
  530. package/src/components/IconRadioGroup/index.ts +0 -1
  531. package/src/components/IconRadioGroup/type.ts +0 -50
  532. package/src/components/Input/Input.stories.tsx +0 -153
  533. package/src/components/Input/Input.tsx +0 -126
  534. package/src/components/Input/index.ts +0 -1
  535. package/src/components/Input/types.ts +0 -94
  536. package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +0 -169
  537. package/src/components/InputWithDropdown/InputWithDropdown.tsx +0 -140
  538. package/src/components/InputWithDropdown/index.ts +0 -1
  539. package/src/components/InputWithDropdown/types.ts +0 -121
  540. package/src/components/LabelEditTextField/LabelEditTextField.stories.tsx +0 -198
  541. package/src/components/LabelEditTextField/LabelEditTextField.tsx +0 -267
  542. package/src/components/LabelEditTextField/index.ts +0 -1
  543. package/src/components/LabelEditTextField/types.ts +0 -51
  544. package/src/components/LazyLoad/LazyLoad.d.ts +0 -3
  545. package/src/components/LazyLoad/LazyLoad.stories.tsx +0 -34
  546. package/src/components/LazyLoad/LazyLoad.ts +0 -2
  547. package/src/components/LazyLoad/LazyLoading.tsx +0 -28
  548. package/src/components/LazyLoad/index.ts +0 -1
  549. package/src/components/MachineInputField/MachineInputField.stories.tsx +0 -33
  550. package/src/components/MachineInputField/MachineInputField.tsx +0 -85
  551. package/src/components/MachineInputField/index.ts +0 -1
  552. package/src/components/MachineInputField/types.ts +0 -15
  553. package/src/components/MenuOption/MenuOption.stories.tsx +0 -212
  554. package/src/components/MenuOption/MenuOption.tsx +0 -238
  555. package/src/components/MenuOption/index.ts +0 -1
  556. package/src/components/MenuOption/types.ts +0 -232
  557. package/src/components/MiniModal/MiniModal.stories.tsx +0 -800
  558. package/src/components/MiniModal/MiniModal.tsx +0 -346
  559. package/src/components/MiniModal/index.ts +0 -1
  560. package/src/components/MiniModal/types.ts +0 -125
  561. package/src/components/MobileSkin/MobileSkin.stories.tsx +0 -94
  562. package/src/components/MobileSkin/MobileSkin.tsx +0 -74
  563. package/src/components/MobileSkin/MobileSkinInterface.ts +0 -13
  564. package/src/components/MobileSkin/index.ts +0 -1
  565. package/src/components/MobileSkin/types.ts +0 -33
  566. package/src/components/Modal/Modal.stories.tsx +0 -77
  567. package/src/components/Modal/Modal.tsx +0 -97
  568. package/src/components/Modal/index.tsx +0 -1
  569. package/src/components/Modal/types.ts +0 -43
  570. package/src/components/ModulesChip/ModuleChip.stories.tsx +0 -41
  571. package/src/components/ModulesChip/ModuleChip.tsx +0 -28
  572. package/src/components/ModulesChip/index.ts +0 -1
  573. package/src/components/ModulesChip/types.ts +0 -14
  574. package/src/components/MultiSelect/Dropdown.scss +0 -77
  575. package/src/components/MultiSelect/Dropdown.tsx +0 -169
  576. package/src/components/MultiSelect/MultiSelect.stories.tsx +0 -290
  577. package/src/components/MultiSelect/MultiSelect.tsx +0 -486
  578. package/src/components/MultiSelect/MultiSelectTypes.ts +0 -49
  579. package/src/components/MultiSelect/dropdownTypes.ts +0 -21
  580. package/src/components/MultiSelect/index.ts +0 -1
  581. package/src/components/NLPInput/NlpInput.stories.tsx +0 -70
  582. package/src/components/NLPInput/NlpInput.tsx +0 -410
  583. package/src/components/NLPInput/components/NlpDropDown/NlpDropDownType.ts +0 -62
  584. package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.tsx +0 -320
  585. package/src/components/NLPInput/index.ts +0 -1
  586. package/src/components/NLPInput/sampleData.ts +0 -162
  587. package/src/components/NLPInput/types.tsx +0 -136
  588. package/src/components/Paper/Paper.stories.tsx +0 -77
  589. package/src/components/Paper/Paper.tsx +0 -14
  590. package/src/components/Paper/index.ts +0 -1
  591. package/src/components/Paper/types.ts +0 -19
  592. package/src/components/PhoneInput/PhoneInput.d.ts +0 -3
  593. package/src/components/PhoneInput/PhoneInput.stories.tsx +0 -70
  594. package/src/components/PhoneInput/PhoneInput.tsx +0 -98
  595. package/src/components/PhoneInput/index.ts +0 -1
  596. package/src/components/PhoneInput/types.ts +0 -16
  597. package/src/components/PopUpModal/PopUpModal.stories.tsx +0 -67
  598. package/src/components/PopUpModal/PopUpModal.tsx +0 -87
  599. package/src/components/PopUpModal/types.ts +0 -17
  600. package/src/components/ProgressBar/ProgressBar.stories.tsx +0 -22
  601. package/src/components/ProgressBar/ProgressBar.tsx +0 -61
  602. package/src/components/ProgressBar/index.ts +0 -1
  603. package/src/components/ProgressBar/types.ts +0 -12
  604. package/src/components/RadioButton/RadioButton.stories.tsx +0 -43
  605. package/src/components/RadioButton/RadioButton.tsx +0 -45
  606. package/src/components/RadioButton/index.ts +0 -1
  607. package/src/components/RadioButton/radioButtonTypes.tsx +0 -62
  608. package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -150
  609. package/src/components/RadioGroup/RadioGroup.tsx +0 -49
  610. package/src/components/RadioGroup/index.ts +0 -1
  611. package/src/components/RadioGroup/radioGroupTypes.tsx +0 -96
  612. package/src/components/ScriptSwitchButton/ScriptSwitchButton.stories.tsx +0 -48
  613. package/src/components/ScriptSwitchButton/ScriptSwitchButton.tsx +0 -65
  614. package/src/components/ScriptSwitchButton/index.ts +0 -1
  615. package/src/components/Search/Search.stories.tsx +0 -44
  616. package/src/components/Search/Search.tsx +0 -149
  617. package/src/components/Search/index.ts +0 -1
  618. package/src/components/Search/types.ts +0 -20
  619. package/src/components/Select/Select.stories.tsx +0 -508
  620. package/src/components/Select/Select.tsx +0 -305
  621. package/src/components/Select/components/Dropdown.tsx +0 -196
  622. package/src/components/Select/components/types.ts +0 -30
  623. package/src/components/Select/index.ts +0 -1
  624. package/src/components/Select/types.ts +0 -171
  625. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.tsx +0 -80
  626. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.tsx +0 -230
  627. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +0 -356
  628. package/src/components/SequentialConnectingBranch/components/Branches/types.ts +0 -33
  629. package/src/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.tsx +0 -78
  630. package/src/components/SequentialConnectingBranch/components/ConnectingBranches/types.ts +0 -25
  631. package/src/components/SequentialConnectingBranch/components/DatasetTooltip/DataSetTooltip.tsx +0 -36
  632. package/src/components/SequentialConnectingBranch/components/DatasetTooltip/types.ts +0 -9
  633. package/src/components/SequentialConnectingBranch/index.ts +0 -1
  634. package/src/components/SequentialConnectingBranch/types.ts +0 -80
  635. package/src/components/StateDropdown/StateDropdown.stories.tsx +0 -104
  636. package/src/components/StateDropdown/StateDropdown.tsx +0 -245
  637. package/src/components/StateDropdown/StateDropdownTypes.tsx +0 -27
  638. package/src/components/StateDropdown/index.ts +0 -1
  639. package/src/components/StatusButton/StatusButton.stories.tsx +0 -91
  640. package/src/components/StatusButton/StatusButton.tsx +0 -46
  641. package/src/components/StatusButton/index.ts +0 -1
  642. package/src/components/StatusButton/types.ts +0 -45
  643. package/src/components/StatusCard/StatusCard.stories.tsx +0 -190
  644. package/src/components/StatusCard/StatusCard.tsx +0 -134
  645. package/src/components/StatusCard/index.ts +0 -1
  646. package/src/components/StatusCard/types.ts +0 -18
  647. package/src/components/Table/Table.stories.tsx +0 -432
  648. package/src/components/Table/Table.tsx +0 -296
  649. package/src/components/Table/Types.ts +0 -135
  650. package/src/components/Table/index.ts +0 -1
  651. package/src/components/TableTree/Components/AddModule/AddModule.tsx +0 -73
  652. package/src/components/TableTree/Components/TableBody.tsx +0 -47
  653. package/src/components/TableTree/Components/TableCell.tsx +0 -182
  654. package/src/components/TableTree/Components/TableHead.tsx +0 -41
  655. package/src/components/TableTree/Components/TableRow.tsx +0 -46
  656. package/src/components/TableTree/TableTree.stories.tsx +0 -275
  657. package/src/components/TableTree/TableTree.tsx +0 -198
  658. package/src/components/TableTree/Utils/addNewRow.ts +0 -53
  659. package/src/components/TableTree/Utils/getAllChildIds.ts +0 -14
  660. package/src/components/TableTree/Utils/renderSpaces.ts +0 -0
  661. package/src/components/TableTree/data.ts +0 -148
  662. package/src/components/TableTree/index.ts +0 -1
  663. package/src/components/TableTree/types.ts +0 -86
  664. package/src/components/TableWithAccordion/TableWithAccordion.stories.tsx +0 -94
  665. package/src/components/TableWithAccordion/TableWithAccordion.tsx +0 -174
  666. package/src/components/TableWithAccordion/data.ts +0 -37
  667. package/src/components/TableWithAccordion/index.ts +0 -1
  668. package/src/components/TableWithAccordion/types.ts +0 -70
  669. package/src/components/Tabs/Tabs.stories.tsx +0 -179
  670. package/src/components/Tabs/Tabs.tsx +0 -82
  671. package/src/components/Tabs/index.ts +0 -1
  672. package/src/components/Tabs/types.ts +0 -50
  673. package/src/components/TextArea/Textarea.stories.tsx +0 -92
  674. package/src/components/TextArea/Textarea.tsx +0 -86
  675. package/src/components/TextArea/Types.ts +0 -85
  676. package/src/components/TextArea/index.tsx +0 -1
  677. package/src/components/ThemeProvider/ThemeProvider.tsx +0 -27
  678. package/src/components/ThemeProvider/index.ts +0 -1
  679. package/src/components/ThemeProvider/types.ts +0 -14
  680. package/src/components/Toast/Toast.stories.tsx +0 -144
  681. package/src/components/Toast/Toast.tsx +0 -117
  682. package/src/components/Toast/index.ts +0 -1
  683. package/src/components/Toast/types.ts +0 -27
  684. package/src/components/Toastify/Toastify.stories.tsx +0 -71
  685. package/src/components/Toastify/Toastify.tsx +0 -95
  686. package/src/components/Toastify/index.ts +0 -1
  687. package/src/components/Toastify/types.ts +0 -10
  688. package/src/components/Toggle/Toggle.stories.tsx +0 -132
  689. package/src/components/Toggle/Toggle.tsx +0 -96
  690. package/src/components/Toggle/index.ts +0 -1
  691. package/src/components/Toggle/types.ts +0 -43
  692. package/src/components/ToggleSwitch/ToggleSwitch.stories.tsx +0 -52
  693. package/src/components/ToggleSwitch/ToggleSwitch.tsx +0 -30
  694. package/src/components/ToggleSwitch/index.ts +0 -1
  695. package/src/components/Tooltip/Tooltip.stories.tsx +0 -98
  696. package/src/components/Tooltip/Tooltip.tsx +0 -194
  697. package/src/components/Tooltip/index.ts +0 -1
  698. package/src/components/Tooltip/types.ts +0 -66
  699. package/src/components/Typography/Typography.scss +0 -25
  700. package/src/components/Typography/Typography.stories.tsx +0 -59
  701. package/src/components/Typography/Typography.tsx +0 -41
  702. package/src/components/Typography/index.ts +0 -1
  703. package/src/components/Typography/types.ts +0 -57
  704. package/src/components/VariableInput/VariableInput.stories.tsx +0 -32
  705. package/src/components/VariableInput/VariableInput.tsx +0 -352
  706. package/src/components/VariableInput/index.ts +0 -1
  707. package/src/components/VariableInput/types.ts +0 -56
  708. package/src/components/variableSuggestionInputDropDown/OptionsDropdown.tsx +0 -51
  709. package/src/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.stories.tsx +0 -155
  710. package/src/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.tsx +0 -244
  711. package/src/components/variableSuggestionInputDropDown/index.ts +0 -1
  712. package/src/components/variableSuggestionInputDropDown/types.ts +0 -166
  713. package/src/hooks/keyboardevents/useEscKeyEvent.tsx +0 -30
  714. package/src/hooks/useClickOutside.tsx +0 -30
  715. package/src/hooks/useFileDropzone.tsx +0 -275
  716. package/src/hooks/useIntersectionObserver.tsx +0 -56
  717. package/src/hooks/usePortalPosition.tsx +0 -53
  718. package/src/hooks/useTheme.tsx +0 -13
  719. package/src/index.ts +0 -357
  720. package/src/utils/FormatString/FormatString.stories.tsx +0 -58
  721. package/src/utils/FormatString/FormatString.tsx +0 -41
  722. package/src/utils/TableCell/TableCell.ts +0 -19
  723. package/src/utils/capitalize/capitalize.stories.tsx +0 -44
  724. package/src/utils/capitalize/capitalize.tsx +0 -4
  725. package/src/utils/checkDuplicates/CheckDuplicates.stories.tsx +0 -40
  726. package/src/utils/checkDuplicates/checkDuplicates.ts +0 -13
  727. package/src/utils/checkEmpty/checkEmpty.stories.tsx +0 -34
  728. package/src/utils/checkEmpty/checkEmpty.ts +0 -24
  729. package/src/utils/compareArrays/compareArrays.stories.tsx +0 -62
  730. package/src/utils/compareArrays/compareArrays.ts +0 -31
  731. package/src/utils/compareObjects/compareObjects.stories.tsx +0 -51
  732. package/src/utils/compareObjects/compareObjects.ts +0 -53
  733. package/src/utils/debounce/debounce.stories.tsx +0 -81
  734. package/src/utils/debounce/debounce.ts +0 -28
  735. package/src/utils/downloadFile/saveFileFromBlob.stories.tsx +0 -62
  736. package/src/utils/downloadFile/saveFileFromBlob.ts +0 -40
  737. package/src/utils/ffID/ffID.stories.tsx +0 -35
  738. package/src/utils/ffID/ffid.ts +0 -7
  739. package/src/utils/findAndInsert/findAndInsert.stories.tsx +0 -120
  740. package/src/utils/findAndInsert/findAndInsert.ts +0 -49
  741. package/src/utils/formData/ConvertFormDataToObject.stories.tsx +0 -27
  742. package/src/utils/formData/ConvertFormDataToObject.ts +0 -14
  743. package/src/utils/functionCheck/functionCheck.ts +0 -8
  744. package/src/utils/getAnchorElement/getAnchorElement.ts +0 -7
  745. package/src/utils/getEncryptedData/getEncryptedData.stories.tsx +0 -55
  746. package/src/utils/getEncryptedData/getEncryptedData.ts +0 -8
  747. package/src/utils/getExtension/getExtension.stories.tsx +0 -24
  748. package/src/utils/getExtension/getExtension.ts +0 -28
  749. package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +0 -31
  750. package/src/utils/getSequentialPayload/getSequentialPayload.stories.tsx +0 -73
  751. package/src/utils/getSequentialPayload/getSequentialPayload.ts +0 -16
  752. package/src/utils/getSequentialPayload/types.ts +0 -39
  753. package/src/utils/getTreeDetails/getTreeDetails.stories.tsx +0 -217
  754. package/src/utils/getTreeDetails/getTreeDetails.ts +0 -118
  755. package/src/utils/handleTreeNodeSelect/HandleTreeNodeSelect.stories.tsx +0 -195
  756. package/src/utils/handleTreeNodeSelect/handleTreeNodeSelect.ts +0 -63
  757. package/src/utils/indexDBStore/indexDB.ts +0 -180
  758. package/src/utils/keyBoardActionUtil/UseKeyboardAction.stories.tsx +0 -53
  759. package/src/utils/keyBoardActionUtil/UseKeyboardActions.tsx +0 -20
  760. package/src/utils/keyBoardActionUtil/types.ts +0 -4
  761. package/src/utils/swapArrayItem/dragAndDropUtils.ts +0 -11
  762. package/src/utils/throttle/throttle.stories.tsx +0 -100
  763. package/src/utils/throttle/throttle.ts +0 -33
  764. package/src/utils/truncateText/truncateText.stories.tsx +0 -37
  765. package/src/utils/truncateText/truncateText.ts +0 -4
  766. package/src/utils/validateFile/validateFile.stories.tsx +0 -49
  767. package/src/utils/validateFile/validateFile.ts +0 -39
  768. package/src/validations/regex.stories.tsx +0 -425
  769. package/src/validations/regex.ts +0 -228
  770. package/tsconfig.json +0 -45
  771. package/vite.config.js +0 -42
  772. /package/{src/components/Accordion → lib/styles}/Accordion.scss +0 -0
  773. /package/{src/components/TableTree/Components/AddModule → lib/styles}/AddModule.scss +0 -0
  774. /package/{src/components/AddResourceButton → lib/styles}/AddResourceButton.scss +0 -0
  775. /package/{src/components/AllProjectsDropdown → lib/styles}/AllProjectsDropdown.scss +0 -0
  776. /package/{src/components/AppHeader → lib/styles}/AppHeader.scss +0 -0
  777. /package/{src/components/AddResourceButton/ArrowsButton → lib/styles}/ArrowsButton.scss +0 -0
  778. /package/{src/components/AttachImage → lib/styles}/AttachImage.scss +0 -0
  779. /package/{src/components/AttachmentButton → lib/styles}/AttachmentButton.scss +0 -0
  780. /package/{src/components/Avatar → lib/styles}/Avatar.scss +0 -0
  781. /package/{src/components/Charts/BarChart → lib/styles}/BarChart.scss +0 -0
  782. /package/{src/assets/Themes → lib/styles}/BaseTheme.scss +0 -0
  783. /package/{src/assets/Themes → lib/styles}/BlueTheme.scss +0 -0
  784. /package/{src/components/SequentialConnectingBranch/components/Branches → lib/styles}/Branches.scss +0 -0
  785. /package/{src/components/BrowserTabs → lib/styles}/BrowserTabs.scss +0 -0
  786. /package/{src/components/Button → lib/styles}/Button.scss +0 -0
  787. /package/{src/components/Checkbox → lib/styles}/Checkbox.scss +0 -0
  788. /package/{src/components/Chip → lib/styles}/Chip.scss +0 -0
  789. /package/{src/components/Excel/ColorBarSelector → lib/styles}/ColorBarSelector.scss +0 -0
  790. /package/{src/StyleGuide/ColorPalette → lib/styles}/ColorPalette.scss +0 -0
  791. /package/{src/components/Comment → lib/styles}/Comments.scss +0 -0
  792. /package/{src/components/ConditionalDropdown → lib/styles}/ConditionalDropdown.scss +0 -0
  793. /package/{src/components/ConnectingBranch → lib/styles}/ConnectingBranch.scss +0 -0
  794. /package/{src/components/SequentialConnectingBranch/components/ConnectingBranches → lib/styles}/ConnectingBranches.scss +0 -0
  795. /package/{src/components/CreateVariable → lib/styles}/CreateVariableSlider.scss +0 -0
  796. /package/{src/assets/Themes → lib/styles}/DarkTheme.scss +0 -0
  797. /package/{src/components/Charts/DashboardDonutChart → lib/styles}/DashboardDonutChart.scss +0 -0
  798. /package/{src/components/SequentialConnectingBranch/components/DatasetTooltip → lib/styles}/DataSetTooltip.scss +0 -0
  799. /package/{src/components/DatePicker → lib/styles}/DatePicker.scss +0 -0
  800. /package/{src/components/Charts/DonutChart → lib/styles}/DonutChart.scss +0 -0
  801. /package/{src/components/DownloadClient → lib/styles}/DownloadClient.scss +0 -0
  802. /package/{src/components/DragAndDrop → lib/styles}/DragAndDropList.scss +0 -0
  803. /package/{src/components/Drawer → lib/styles}/Drawer.scss +0 -0
  804. /package/{src/components/Select/components → lib/styles}/Dropdown.scss +0 -0
  805. /package/{src/components/EditTextField → lib/styles}/EditTextField.scss +0 -0
  806. /package/{src/components/Editor → lib/styles}/Editor.scss +0 -0
  807. /package/{src/components/Excel/ExcelContextMenu → lib/styles}/ExcelContextMenu.scss +0 -0
  808. /package/{src/components/Excel/ExcelFile → lib/styles}/ExcelFile.scss +0 -0
  809. /package/{src/components/Excel/ExcelToolBar → lib/styles}/ExcelToolBar.scss +0 -0
  810. /package/{src/components/ExpandableMenu → lib/styles}/ExpandableMenu.scss +0 -0
  811. /package/{src/components/FieldSet → lib/styles}/FieldSet.scss +0 -0
  812. /package/{src/components/FileDropzone → lib/styles}/FileDropzone.scss +0 -0
  813. /package/{src/components/Form → lib/styles}/Form.scss +0 -0
  814. /package/{src/components/GridLayout → lib/styles}/GridLayout.scss +0 -0
  815. /package/{src/components/GridLayout → lib/styles}/GridLayoutStory.scss +0 -0
  816. /package/{src/components/HighlightText → lib/styles}/HighlightText.scss +0 -0
  817. /package/{src/components/IconButton → lib/styles}/IconButton.scss +0 -0
  818. /package/{src/components/Charts/IconRadialChart → lib/styles}/IconRadialChart.scss +0 -0
  819. /package/{src/components/IconRadioGroup → lib/styles}/IconRadioGroup.scss +0 -0
  820. /package/{src/components/Icon → lib/styles}/Icons.scss +0 -0
  821. /package/{src/components/Input → lib/styles}/Input.scss +0 -0
  822. /package/{src/components/InputWithDropdown → lib/styles}/InputWithDropdown.scss +0 -0
  823. /package/{src/components/LabelEditTextField → lib/styles}/LabelEditTextField.scss +0 -0
  824. /package/{src/components/Charts/LineChart → lib/styles}/LineChart.scss +0 -0
  825. /package/{src/components/MachineInputField → lib/styles}/MachineInputField.scss +0 -0
  826. /package/{src/components/MenuOption → lib/styles}/MenuOption.scss +0 -0
  827. /package/{src/components/MiniModal → lib/styles}/MiniModal.scss +0 -0
  828. /package/{src/components/MobileSkin → lib/styles}/MobileSkin.scss +0 -0
  829. /package/{src/components/ModulesChip → lib/styles}/ModuleChip.scss +0 -0
  830. /package/{src/components/Charts/MultiRadialChart → lib/styles}/MultiRadialChart.scss +0 -0
  831. /package/{src/components/MultiSelect → lib/styles}/MultiSelect.scss +0 -0
  832. /package/{src/components/NLPInput → lib/styles}/NLPInput.scss +0 -0
  833. /package/{src/components/NLPInput/components/NlpDropDown → lib/styles}/NlpDropdown.scss +0 -0
  834. /package/{src/components/Paper → lib/styles}/Paper.scss +0 -0
  835. /package/{src/components/Charts/PieChart → lib/styles}/PieChart.scss +0 -0
  836. /package/{src/components/PopUpModal → lib/styles}/PopUpModal.scss +0 -0
  837. /package/{src/components/ProgressBar → lib/styles}/ProgressBar.scss +0 -0
  838. /package/{src/components/Charts/RadialChart → lib/styles}/RadialChart.scss +0 -0
  839. /package/{src/components/RadioButton → lib/styles}/RadioButton.scss +0 -0
  840. /package/{src/components/RadioGroup → lib/styles}/RadioGroup.scss +0 -0
  841. /package/{src/components/FF_Captcha → lib/styles}/Recaptcha.scss +0 -0
  842. /package/{src/components/ScriptSwitchButton → lib/styles}/ScriptSwitchButton.scss +0 -0
  843. /package/{src/components/Search → lib/styles}/Search.scss +0 -0
  844. /package/{src/components/Select → lib/styles}/Select.scss +0 -0
  845. /package/{src/components/SequentialConnectingBranch → lib/styles}/SequentialConnectingBranch.scss +0 -0
  846. /package/{src/components/Excel/ExcelFile/ExcelFileComponents → lib/styles}/Spreadsheet.scss +0 -0
  847. /package/{src/components/StatusButton → lib/styles}/StatusButton.scss +0 -0
  848. /package/{src/components/StatusCard → lib/styles}/StatusCard.scss +0 -0
  849. /package/{src/components/Table → lib/styles}/Table.scss +0 -0
  850. /package/{src/components/TableTree → lib/styles}/TableTree.scss +0 -0
  851. /package/{src/components/TableTree → lib/styles}/TableTreeStories.scss +0 -0
  852. /package/{src/components/TableWithAccordion → lib/styles}/TableWithAccordion.scss +0 -0
  853. /package/{src/components/Tabs → lib/styles}/Tabs.scss +0 -0
  854. /package/{src/components/TextArea → lib/styles}/Textarea.scss +0 -0
  855. /package/{src/assets/Themes → lib/styles}/Theme.scss +0 -0
  856. /package/{src/components/Toast → lib/styles}/Toast.scss +0 -0
  857. /package/{src/components/Toggle → lib/styles}/Toggle.scss +0 -0
  858. /package/{src/components/ToggleSwitch → lib/styles}/ToggleSwitch.scss +0 -0
  859. /package/{src/components/Tooltip → lib/styles}/Tooltip.scss +0 -0
  860. /package/{src/StyleGuide/Typography → lib/styles}/Typography.scss +0 -0
  861. /package/{src/components/Editor → lib/styles}/VariableDropdown.scss +0 -0
  862. /package/{src/components/VariableInput → lib/styles}/VariableInput.scss +0 -0
  863. /package/{src/components/variableSuggestionInputDropDown → lib/styles}/VariableSuggestionInputDropDown.scss +0 -0
  864. /package/{src/assets → lib}/styles/_colors.scss +0 -0
  865. /package/{src/assets → lib}/styles/_fonts.scss +0 -0
  866. /package/{src/assets → lib}/styles/_mixins.scss +0 -0
  867. /package/{src/components/Modal → lib/styles}/modal.scss +0 -0
  868. /package/{src/components/PhoneInput → lib/styles}/phoneInput.scss +0 -0
@@ -1,917 +0,0 @@
1
- import { PointRange } from './point-range';
2
- import * as Matrix from './matrix';
3
- import * as Types from './types';
4
- import * as Point from './point';
5
- import {
6
- Selection,
7
- EmptySelection,
8
- RangeSelection,
9
- EntireColumnsSelection,
10
- EntireRowsSelection,
11
- } from './selection';
12
- import { createFormulaParser, Model } from './engine';
13
-
14
- export function applyBoldToCells(
15
- currentData: Matrix.Matrix<Types.CellBase<any>>,
16
- selectedRange: PointRange
17
- ): Matrix.Matrix<Types.CellBase<any>> {
18
- if (!selectedRange) {
19
- return currentData;
20
- }
21
-
22
- const { start, end } = selectedRange;
23
-
24
- let updatedData = currentData;
25
- let anyBold = false;
26
-
27
- for (let row = start.row; row <= end.row; row++) {
28
- for (let col = start.column; col <= end.column; col++) {
29
- const currentCell = Matrix.get({ row, column: col }, updatedData);
30
- if (!currentCell) continue;
31
-
32
- if (currentCell.style?.fontWeight === 'bold') {
33
- anyBold = true;
34
- break;
35
- }
36
- }
37
- if (anyBold) break;
38
- }
39
-
40
- for (let row = start.row; row <= end.row; row++) {
41
- for (let col = start.column; col <= end.column; col++) {
42
- const currentCell = Matrix.get({ row, column: col }, updatedData);
43
- if (!currentCell) continue;
44
-
45
- const updatedCell = {
46
- ...currentCell,
47
- style: {
48
- ...currentCell.style,
49
- fontWeight: anyBold ? 'normal' : 'bold',
50
- },
51
- };
52
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
53
- }
54
- }
55
-
56
- return updatedData;
57
- }
58
-
59
- export function applyItalicToCells(
60
- currentData: Matrix.Matrix<Types.CellBase<any>>,
61
- selectedRange: PointRange
62
- ): Matrix.Matrix<Types.CellBase<any>> {
63
- if (!selectedRange) {
64
- return currentData;
65
- }
66
-
67
- const { start, end } = selectedRange;
68
-
69
- let updatedData = currentData;
70
- let anyItalic = false;
71
-
72
- for (let row = start.row; row <= end.row; row++) {
73
- for (let col = start.column; col <= end.column; col++) {
74
- const currentCell = Matrix.get({ row, column: col }, updatedData);
75
- if (!currentCell) continue;
76
-
77
- if (currentCell.style?.fontStyle === 'italic') {
78
- anyItalic = true;
79
- break;
80
- }
81
- }
82
- if (anyItalic) break;
83
- }
84
-
85
- for (let row = start.row; row <= end.row; row++) {
86
- for (let col = start.column; col <= end.column; col++) {
87
- const currentCell = Matrix.get({ row, column: col }, updatedData);
88
- if (!currentCell) continue;
89
-
90
- const updatedCell = {
91
- ...currentCell,
92
- style: {
93
- ...currentCell.style,
94
- fontStyle: anyItalic ? 'normal' : 'italic',
95
- },
96
- };
97
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
98
- }
99
- }
100
-
101
- return updatedData;
102
- }
103
-
104
- export function applyFontFamily(
105
- currentData: Matrix.Matrix<Types.CellBase<any>>,
106
- selectedRange: PointRange,
107
- value: string
108
- ): Matrix.Matrix<Types.CellBase<any>> {
109
- if (!selectedRange) {
110
- return currentData;
111
- }
112
-
113
- const { start, end } = selectedRange;
114
-
115
- let updatedData = currentData;
116
-
117
- for (let row = start.row; row <= end.row; row++) {
118
- for (let col = start.column; col <= end.column; col++) {
119
- const currentCell = Matrix.get({ row, column: col }, updatedData);
120
-
121
- if (!currentCell) {
122
- continue;
123
- }
124
-
125
- let updatedCell = {
126
- ...currentCell,
127
- style: {
128
- ...currentCell.style,
129
- fontFamily: value,
130
- },
131
- };
132
-
133
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
134
- }
135
- }
136
-
137
- return updatedData;
138
- }
139
-
140
- export function applyFontSize(
141
- currentData: Matrix.Matrix<Types.CellBase<any>>,
142
- selectedRange: PointRange,
143
- value: string
144
- ): Matrix.Matrix<Types.CellBase<any>> {
145
- if (!selectedRange) {
146
- return currentData;
147
- }
148
-
149
- const conversion = Number(value);
150
-
151
- if (isNaN(conversion)) {
152
- return currentData;
153
- }
154
-
155
- const fontSizeInPx = convertPtToPx(conversion);
156
-
157
- const { start, end } = selectedRange;
158
-
159
- let updatedData = currentData;
160
-
161
- for (let row = start.row; row <= end.row; row++) {
162
- for (let col = start.column; col <= end.column; col++) {
163
- const currentCell = Matrix.get({ row, column: col }, updatedData);
164
-
165
- if (!currentCell) {
166
- continue;
167
- }
168
-
169
- let updatedCell = {
170
- ...currentCell,
171
- style: {
172
- ...currentCell.style,
173
- fontSize: fontSizeInPx,
174
- },
175
- };
176
-
177
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
178
- }
179
- }
180
-
181
- return updatedData;
182
- }
183
-
184
- export function applyBorderToCells(
185
- currentData: Matrix.Matrix<Types.CellBase<any>>,
186
- selectedRange: PointRange,
187
- value: string,
188
- color: string
189
- ): Matrix.Matrix<Types.CellBase<any>> {
190
- if (!selectedRange) {
191
- return currentData;
192
- }
193
-
194
- let updatedData = currentData;
195
-
196
- const { start, end } = selectedRange;
197
-
198
- for (let row = start.row; row <= end.row; row++) {
199
- for (let col = start.column; col <= end.column; col++) {
200
- const currentCell = Matrix.get({ row, column: col }, updatedData);
201
-
202
- if (!currentCell) {
203
- continue;
204
- }
205
-
206
- let updatedCell = { ...currentCell };
207
-
208
- switch (value) {
209
- case 'border-all-sides':
210
- updatedCell.style = {
211
- ...currentCell.style,
212
- borderRight: `2px solid ${color}`,
213
- borderLeft: `2px solid ${color}`,
214
- borderTop: `2px solid ${color}`,
215
- borderBottom: `2px solid ${color}`,
216
- };
217
- break;
218
- case 'border-none':
219
- updatedCell.style = {
220
- ...currentCell.style,
221
- borderRight: `1px solid var(--excel-header-border)`,
222
- borderLeft: `1px solid var(--excel-header-border)`,
223
- borderTop: `1px solid var(--excel-header-border)`,
224
- borderBottom: `1px solid var(--excel-header-border)`,
225
- };
226
- break;
227
- case 'border-right':
228
- updatedCell.style = {
229
- ...currentCell.style,
230
- borderRight: `2px solid ${color}`,
231
- };
232
- break;
233
-
234
- case 'border-left':
235
- updatedCell.style = {
236
- ...currentCell.style,
237
- borderLeft: `2px solid ${color}`,
238
- };
239
- break;
240
- case 'border-top':
241
- updatedCell.style = {
242
- ...currentCell.style,
243
- borderTop: `2px solid ${color}`,
244
- };
245
- break;
246
- case 'border-bottom':
247
- updatedCell.style = {
248
- ...currentCell.style,
249
- borderBottom: `2px solid ${color}`,
250
- };
251
- break;
252
- default:
253
- break;
254
- }
255
-
256
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
257
- }
258
- }
259
-
260
- return updatedData;
261
- }
262
-
263
- export function applyTextAlign(
264
- currentData: Matrix.Matrix<Types.CellBase<any>>,
265
- selectedRange: PointRange,
266
- value: string
267
- ): Matrix.Matrix<Types.CellBase<any>> {
268
- if (!selectedRange) {
269
- return currentData;
270
- }
271
-
272
- const { start, end } = selectedRange;
273
-
274
- let updatedData = currentData;
275
-
276
- for (let row = start.row; row <= end.row; row++) {
277
- for (let col = start.column; col <= end.column; col++) {
278
- const currentCell = Matrix.get({ row, column: col }, updatedData);
279
-
280
- if (!currentCell) {
281
- continue;
282
- }
283
-
284
- let updatedCell = {
285
- ...currentCell,
286
- style: {
287
- ...currentCell.style,
288
- textAlign: value as TextAlign,
289
- },
290
- };
291
-
292
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
293
- }
294
- }
295
-
296
- return updatedData;
297
- }
298
-
299
- export function applyUnderlineToCells(
300
- currentData: Matrix.Matrix<Types.CellBase<any>>,
301
- selectedRange: PointRange,
302
- value: string,
303
- active: boolean
304
- ): Matrix.Matrix<Types.CellBase<any>> {
305
- if (!selectedRange) {
306
- return currentData;
307
- }
308
-
309
- const { start, end } = selectedRange;
310
-
311
- let updatedData = currentData;
312
- let anyUnderlined = false;
313
-
314
- for (let row = start.row; row <= end.row; row++) {
315
- for (let col = start.column; col <= end.column; col++) {
316
- const currentCell = Matrix.get({ row, column: col }, updatedData);
317
- if (!currentCell) continue;
318
-
319
- if (currentCell.style?.textDecoration === 'underline') {
320
- anyUnderlined = true;
321
- break;
322
- }
323
- }
324
- if (anyUnderlined) break;
325
- }
326
-
327
- for (let row = start.row; row <= end.row; row++) {
328
- for (let col = start.column; col <= end.column; col++) {
329
- const currentCell = Matrix.get({ row, column: col }, updatedData);
330
- if (!currentCell) continue;
331
-
332
- let updatedCell;
333
- if (!active || anyUnderlined) {
334
- updatedCell = {
335
- ...currentCell,
336
- style: {
337
- ...currentCell.style,
338
- textDecoration: 'none solid',
339
- },
340
- };
341
- } else {
342
- updatedCell = {
343
- ...currentCell,
344
- style: {
345
- ...currentCell.style,
346
- textDecoration:
347
- value === 'double_border' ? 'underline double' : value,
348
- },
349
- };
350
- }
351
-
352
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
353
- }
354
- }
355
-
356
- return updatedData;
357
- }
358
-
359
- export function isValidHexColor(color: string): boolean {
360
- if (color.length !== 6) {
361
- return false;
362
- }
363
-
364
- const hexChars = '0123456789ABCDEFabcdef';
365
- for (let i = 1; i < color.length; i++) {
366
- if (!hexChars.includes(color[i] as string)) {
367
- return false;
368
- }
369
- }
370
-
371
- return true;
372
- }
373
-
374
- export function applyColorToCells(
375
- currentData: Matrix.Matrix<Types.CellBase<any>>,
376
- selectedRange: PointRange | null,
377
- color: string
378
- ): Matrix.Matrix<Types.CellBase<any>> {
379
- if (!selectedRange) {
380
- return currentData;
381
- }
382
-
383
- const { start, end } = selectedRange;
384
-
385
- let updatedData = currentData;
386
-
387
- const isHex = isValidHexColor(color);
388
-
389
- const applyColor = isHex ? `#${color}` : color;
390
-
391
- for (let row = start.row; row <= end.row; row++) {
392
- for (let col = start.column; col <= end.column; col++) {
393
- const currentCell = Matrix.get({ row, column: col }, updatedData);
394
-
395
- if (!currentCell) {
396
- continue;
397
- }
398
-
399
- const updatedCell = {
400
- ...currentCell,
401
- style: {
402
- ...currentCell.style,
403
- color: applyColor,
404
- },
405
- };
406
-
407
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
408
- }
409
- }
410
-
411
- return updatedData;
412
- }
413
-
414
- export function applyBackgroundColorToCells(
415
- currentData: Matrix.Matrix<Types.CellBase<any>>,
416
- selectedRange: PointRange | null,
417
- backgroundColor: string
418
- ): Matrix.Matrix<Types.CellBase<any>> {
419
- if (!selectedRange) {
420
- return currentData;
421
- }
422
-
423
- if (selectedRange) {
424
- const { start, end } = selectedRange;
425
-
426
- let updatedData = currentData;
427
-
428
- const isHex = isValidHexColor(backgroundColor);
429
-
430
- const applyColor = isHex ? `#${backgroundColor}` : backgroundColor;
431
-
432
- for (let row = start.row; row <= end.row; row++) {
433
- for (let col = start.column; col <= end.column; col++) {
434
- const currentCell = Matrix.get({ row, column: col }, updatedData);
435
-
436
- if (!currentCell) {
437
- continue;
438
- }
439
-
440
- const updatedCell = {
441
- ...currentCell,
442
- style: {
443
- ...currentCell.style,
444
- backgroundColor: applyColor,
445
- },
446
- };
447
-
448
- updatedData = Matrix.set(
449
- { row, column: col },
450
- updatedCell,
451
- updatedData
452
- );
453
- }
454
- }
455
-
456
- return updatedData;
457
- }
458
- return currentData;
459
- }
460
-
461
- export function applyFormatePainter(
462
- currentData: Matrix.Matrix<Types.CellBase<any>>,
463
- activePoint: Point.Point | null
464
- ): React.CSSProperties | undefined {
465
- if (!activePoint) {
466
- return undefined;
467
- }
468
-
469
- const { row, column } = activePoint;
470
- let updatedData = { ...currentData };
471
-
472
- const currentCell = Matrix.get({ row, column }, updatedData);
473
-
474
- if (currentCell && currentCell.style) {
475
- return currentCell.style;
476
- }
477
-
478
- return undefined;
479
- }
480
-
481
- export function dragEndFormatePainter(
482
- currentData: Matrix.Matrix<Types.CellBase<any>>,
483
- selectedRange: PointRange | null,
484
- formattedStyle: Types.formattedStyle
485
- ): Matrix.Matrix<Types.CellBase<any>> {
486
- if (!selectedRange || !formattedStyle.open) {
487
- return currentData;
488
- }
489
-
490
- const { start, end } = selectedRange;
491
- let updatedData = currentData;
492
-
493
- for (let row = start.row; row <= end.row; row++) {
494
- for (let col = start.column; col <= end.column; col++) {
495
- const currentCell = Matrix.get({ row, column: col }, updatedData);
496
- if (!currentCell) {
497
- continue;
498
- }
499
- const updatedCell = {
500
- ...currentCell,
501
- style: formattedStyle.style,
502
- };
503
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
504
- }
505
- }
506
- return updatedData;
507
- }
508
-
509
- export function dragEndAutoFill(
510
- currentData: Matrix.Matrix<Types.CellBase<any>>,
511
- selectedRange: PointRange | null,
512
- cellValue: Types.CellBase,
513
- activeCell: Point.Point | null
514
- ): Matrix.Matrix<Types.CellBase<any>> {
515
- if (!selectedRange) {
516
- return currentData;
517
- }
518
- const { start, end } = selectedRange;
519
- const rowCount = start.row - end.row;
520
- const columnCount = start.column - end.column;
521
- let startPoint = { row: 0, column: 0 };
522
- let endPoint = { row: 0, column: 0 };
523
-
524
- if (rowCount > columnCount) {
525
- startPoint = { row: activeCell?.row ?? 0, column: start.column };
526
- endPoint = { row: activeCell?.row ?? 0, column: end.column };
527
- } else {
528
- startPoint = { row: start.row, column: activeCell?.column ?? 0 };
529
- endPoint = { row: end.row, column: activeCell?.column ?? 0 };
530
- }
531
-
532
- let updatedData = currentData;
533
-
534
- for (let row = startPoint.row; row <= endPoint.row; row++) {
535
- for (let col = startPoint.column; col <= endPoint.column; col++) {
536
- const currentCell = Matrix.get({ row, column: col }, updatedData);
537
-
538
- if (!currentCell) {
539
- continue;
540
- }
541
-
542
- const updatedCell = {
543
- ...currentCell,
544
- style: cellValue.style,
545
- value: cellValue.value,
546
- };
547
-
548
- updatedData = Matrix.set({ row, column: col }, updatedCell, updatedData);
549
- }
550
- }
551
- return updatedData;
552
- }
553
-
554
- export function edit(state: Types.StoreState): Types.StoreState {
555
- if (isActiveReadOnly(state)) {
556
- return state;
557
- }
558
- return { ...state, mode: 'edit' };
559
- }
560
-
561
- const canClearCell = (cell: Types.CellBase | undefined) =>
562
- cell && !cell.readOnly;
563
- const clearCell = (cell: Types.CellBase | undefined) => {
564
- if (!canClearCell(cell)) {
565
- return cell;
566
- }
567
- return Object.assign({}, cell, { value: '', style: cell?.style });
568
- };
569
-
570
- export function clear(state: Types.StoreState): Types.StoreState {
571
- if (!state.active) {
572
- return state;
573
- }
574
-
575
- const selectedRange = state.selected.toRange(state.model.data);
576
-
577
- const changes: Types.CommitChanges = [];
578
- let newData = state.model.data;
579
-
580
- for (const point of selectedRange || []) {
581
- const cell = Matrix.get(point, state.model.data);
582
- const clearedCell = clearCell(cell);
583
- changes.push({
584
- prevCell: cell || null,
585
- nextCell: clearedCell || null,
586
- });
587
- newData = Matrix.set(point, clearedCell, newData);
588
- }
589
-
590
- return {
591
- ...state,
592
- model: new Model(createFormulaParser, newData),
593
- ...commit(changes),
594
- };
595
- }
596
-
597
- export function clearEditMode(state: Types.StoreState): Types.StoreState {
598
- if (!state.active) {
599
- return state;
600
- }
601
-
602
- const selectedRange = state.selected.toRange(state.model.data);
603
-
604
- const changes: Types.CommitChanges = [];
605
- let newData = state.model.data;
606
-
607
- for (const point of selectedRange || []) {
608
- const cell = Matrix.get(point, state.model.data);
609
- const clearedCell = clearCell(cell);
610
- changes.push({
611
- prevCell: cell || null,
612
- nextCell: clearedCell || null,
613
- });
614
- newData = Matrix.set(point, clearedCell, newData);
615
- }
616
-
617
- return {
618
- ...state,
619
- mode: 'edit',
620
- model: new Model(createFormulaParser, newData),
621
- ...commit(changes),
622
- };
623
- }
624
-
625
- export function blur(state: Types.StoreState): Types.StoreState {
626
- return { ...state, active: null, selected: new EmptySelection() };
627
- }
628
-
629
- export function view(state: Types.StoreState): Types.StoreState {
630
- return { ...state, mode: 'view' };
631
- }
632
-
633
- export function commit(
634
- changes: Types.CommitChanges
635
- ): Partial<Types.StoreState> {
636
- return { lastCommit: changes };
637
- }
638
-
639
- export const go =
640
- (rowDelta: number, columnDelta: number): KeyDownHandler =>
641
- (state) => {
642
- if (!state.active) {
643
- return;
644
- }
645
- const size = Matrix.getSize(state.model.data);
646
- const newColumn = state.active.column + columnDelta;
647
- const shouldWrap = newColumn >= size.columns;
648
- const nextActive = {
649
- row: state.active.row + rowDelta + (shouldWrap ? 1 : 0),
650
- column: (state.active.column + columnDelta) % size.columns,
651
- };
652
- if (!Matrix.has(nextActive, state.model.data)) {
653
- return { ...state, mode: 'view' };
654
- }
655
- return {
656
- ...state,
657
- active: nextActive,
658
- selected: new RangeSelection(new PointRange(nextActive, nextActive)),
659
- mode: 'view',
660
- };
661
- };
662
-
663
- function convertPtToPx(pt: number): string {
664
- const px = pt * 1.33;
665
- return `${Math.round(px)}px`;
666
- }
667
-
668
- // Key Bindings
669
-
670
- type TextAlign = 'left' | 'center' | 'right';
671
-
672
- export type KeyDownHandler = (
673
- state: Types.StoreState,
674
- event: React.KeyboardEvent
675
- ) => Types.StoreState | void;
676
-
677
- type KeyDownHandlers = {
678
- [K in string]: KeyDownHandler | undefined;
679
- };
680
-
681
- const keyDownHandlers: KeyDownHandlers = {
682
- ArrowUp: go(-1, 0),
683
- ArrowDown: go(+1, 0),
684
- ArrowLeft: go(0, -1),
685
- ArrowRight: go(0, +1),
686
- Tab: go(0, +1),
687
- Enter: edit,
688
- Backspace: clearEditMode,
689
- Delete: clear,
690
- Escape: blur,
691
- };
692
-
693
- const editKeyDownHandlers: KeyDownHandlers = {
694
- Escape: view,
695
- Tab: keyDownHandlers.Tab,
696
- Enter: keyDownHandlers.ArrowDown,
697
- };
698
-
699
- const editShiftKeyDownHandlers: KeyDownHandlers = {
700
- Tab: go(0, -1),
701
- };
702
-
703
- export enum Direction {
704
- Left = 'Left',
705
- Right = 'Right',
706
- Top = 'Top',
707
- Bottom = 'Bottom',
708
- }
709
-
710
- const shiftKeyDownHandlers: KeyDownHandlers = {
711
- ArrowUp: (state) => ({
712
- ...state,
713
- selected: modifyEdge(
714
- state.selected,
715
- state.active,
716
- state.model.data,
717
- Direction.Top
718
- ),
719
- }),
720
- ArrowDown: (state) => ({
721
- ...state,
722
- selected: modifyEdge(
723
- state.selected,
724
- state.active,
725
- state.model.data,
726
- Direction.Bottom
727
- ),
728
- }),
729
- ArrowLeft: (state) => ({
730
- ...state,
731
- selected: modifyEdge(
732
- state.selected,
733
- state.active,
734
- state.model.data,
735
- Direction.Left
736
- ),
737
- }),
738
- ArrowRight: (state) => ({
739
- ...state,
740
- selected: modifyEdge(
741
- state.selected,
742
- state.active,
743
- state.model.data,
744
- Direction.Right
745
- ),
746
- }),
747
- Tab: go(0, -1),
748
- };
749
-
750
- const shiftMetaKeyDownHandlers: KeyDownHandlers = {};
751
- const metaKeyDownHandlers: KeyDownHandlers = {};
752
-
753
- export function getKeyDownHandler(
754
- state: Types.StoreState,
755
- event: React.KeyboardEvent
756
- ): KeyDownHandler | undefined {
757
- const { key } = event;
758
- let handlers;
759
- if (state.mode === 'edit') {
760
- if (event.shiftKey) {
761
- handlers = editShiftKeyDownHandlers;
762
- } else {
763
- handlers = editKeyDownHandlers;
764
- }
765
- } else if (event.shiftKey && event.metaKey) {
766
- handlers = shiftMetaKeyDownHandlers;
767
- } else if (event.shiftKey) {
768
- handlers = shiftKeyDownHandlers;
769
- } else if (event.metaKey) {
770
- handlers = metaKeyDownHandlers;
771
- } else {
772
- handlers = keyDownHandlers;
773
- }
774
-
775
- return handlers[key];
776
- }
777
-
778
- /** Returns whether the reducer has a handler for the given keydown event */
779
- export function hasKeyDownHandler(
780
- state: Types.StoreState,
781
- event: React.KeyboardEvent
782
- ): boolean {
783
- return getKeyDownHandler(state, event) !== undefined;
784
- }
785
-
786
- /** Returns whether the active cell is read only */
787
- export function isActiveReadOnly(state: Types.StoreState): boolean {
788
- const activeCell = getActive(state);
789
- return Boolean(activeCell?.readOnly);
790
- }
791
-
792
- /** Gets active cell from given state */
793
- export function getActive(state: Types.StoreState): Types.CellBase | null {
794
- const activeCell = state.active && Matrix.get(state.active, state.model.data);
795
- return activeCell || null;
796
- }
797
-
798
- /** Modify given edge according to given active point and data */
799
- export function modifyEdge<T extends Selection>(
800
- selection: T,
801
- active: Point.Point | null,
802
- data: Matrix.Matrix<unknown>,
803
- direction: Direction
804
- ): T {
805
- if (!active) {
806
- return selection;
807
- }
808
- if (selection instanceof RangeSelection) {
809
- const nextSelection = modifyRangeSelectionEdge(
810
- selection,
811
- active,
812
- data,
813
- direction
814
- );
815
- // @ts-expect-error
816
- return nextSelection;
817
- }
818
- if (selection instanceof EntireColumnsSelection) {
819
- // @ts-expect-error
820
- return modifyEntireColumnsSelection(selection, active, data, direction);
821
- }
822
- if (selection instanceof EntireRowsSelection) {
823
- // @ts-expect-error
824
- return modifyEntireRowsSelection(selection, active, data, direction);
825
- }
826
- return selection;
827
- }
828
-
829
- export function modifyRangeSelectionEdge(
830
- rangeSelection: RangeSelection,
831
- active: Point.Point,
832
- data: Matrix.Matrix<unknown>,
833
- edge: Direction
834
- ): RangeSelection {
835
- const field =
836
- edge === Direction.Left || edge === Direction.Right ? 'column' : 'row';
837
-
838
- const key =
839
- edge === Direction.Left || edge === Direction.Top ? 'start' : 'end';
840
- const delta = key === 'start' ? -1 : 1;
841
-
842
- const edgeOffsets = rangeSelection.range.has({
843
- ...active,
844
- [field]: active[field] + delta * -1,
845
- });
846
-
847
- const keyToModify = edgeOffsets ? (key === 'start' ? 'end' : 'start') : key;
848
-
849
- const nextRange = new PointRange(
850
- rangeSelection.range.start,
851
- rangeSelection.range.end
852
- );
853
-
854
- nextRange[keyToModify][field] += delta;
855
-
856
- const nextSelection = new RangeSelection(nextRange).normalizeTo(data);
857
-
858
- return nextSelection;
859
- }
860
-
861
- export function modifyEntireRowsSelection(
862
- selection: EntireRowsSelection,
863
- active: Point.Point,
864
- data: Matrix.Matrix<unknown>,
865
- edge: Direction
866
- ): EntireRowsSelection {
867
- if (edge === Direction.Left || edge === Direction.Right) {
868
- return selection;
869
- }
870
- const delta = edge === Direction.Top ? -1 : 1;
871
- const property = edge === Direction.Top ? 'start' : 'end';
872
- const oppositeProperty = property === 'start' ? 'end' : 'start';
873
- const newSelectionData = { ...selection };
874
- if (
875
- edge === Direction.Top
876
- ? selection.end > active.row
877
- : selection.start < active.row
878
- ) {
879
- newSelectionData[oppositeProperty] = selection[oppositeProperty] + delta;
880
- } else {
881
- newSelectionData[property] = selection[property] + delta;
882
- }
883
- const nextSelection = new EntireRowsSelection(
884
- Math.max(newSelectionData.start, 0),
885
- Math.max(newSelectionData.end, 0)
886
- );
887
- return nextSelection.normalizeTo(data);
888
- }
889
-
890
- export function modifyEntireColumnsSelection(
891
- selection: EntireColumnsSelection,
892
- active: Point.Point,
893
- data: Matrix.Matrix<unknown>,
894
- edge: Direction
895
- ): EntireColumnsSelection {
896
- if (edge === Direction.Top || edge === Direction.Bottom) {
897
- return selection;
898
- }
899
- const delta = edge === Direction.Left ? -1 : 1;
900
- const property = edge === Direction.Left ? 'start' : 'end';
901
- const oppositeProperty = property === 'start' ? 'end' : 'start';
902
- const newSelectionData = { ...selection };
903
- if (
904
- edge === Direction.Left
905
- ? selection.end > active.row
906
- : selection.start < active.row
907
- ) {
908
- newSelectionData[oppositeProperty] = selection[oppositeProperty] + delta;
909
- } else {
910
- newSelectionData[property] = selection[property] + delta;
911
- }
912
- const nextSelection = new EntireColumnsSelection(
913
- Math.max(newSelectionData.start, 0),
914
- Math.max(newSelectionData.end, 0)
915
- );
916
- return nextSelection.normalizeTo(data);
917
- }