pixel-react 1.13.57 → 1.13.58

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 (447) hide show
  1. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  2. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  3. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  4. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  5. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  6. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  7. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  8. package/package.json +1 -1
  9. package/lib/_virtual/ResizeObserver.es.js +0 -7
  10. package/lib/_virtual/ResizeObserver.es.js.map +0 -1
  11. package/lib/_virtual/arrows.js +0 -4
  12. package/lib/_virtual/arrows.js.map +0 -1
  13. package/lib/_virtual/default-props.js +0 -4
  14. package/lib/_virtual/default-props.js.map +0 -1
  15. package/lib/_virtual/dots.js +0 -4
  16. package/lib/_virtual/dots.js.map +0 -1
  17. package/lib/_virtual/index14.js +0 -4
  18. package/lib/_virtual/index14.js.map +0 -1
  19. package/lib/_virtual/index15.js +0 -4
  20. package/lib/_virtual/index15.js.map +0 -1
  21. package/lib/_virtual/initial-state.js +0 -4
  22. package/lib/_virtual/initial-state.js.map +0 -1
  23. package/lib/_virtual/inner-slider.js +0 -4
  24. package/lib/_virtual/inner-slider.js.map +0 -1
  25. package/lib/_virtual/innerSliderUtils.js +0 -4
  26. package/lib/_virtual/innerSliderUtils.js.map +0 -1
  27. package/lib/_virtual/slider.js +0 -4
  28. package/lib/_virtual/slider.js.map +0 -1
  29. package/lib/_virtual/track.js +0 -4
  30. package/lib/_virtual/track.js.map +0 -1
  31. package/lib/assets/icons/Card_1.svg.js +0 -6
  32. package/lib/assets/icons/Card_1.svg.js.map +0 -1
  33. package/lib/assets/icons/Card_2.svg.js +0 -6
  34. package/lib/assets/icons/Card_2.svg.js.map +0 -1
  35. package/lib/assets/icons/Card_3.svg.js +0 -6
  36. package/lib/assets/icons/Card_3.svg.js.map +0 -1
  37. package/lib/assets/icons/Card_4.svg.js +0 -6
  38. package/lib/assets/icons/Card_4.svg.js.map +0 -1
  39. package/lib/assets/icons/academy.svg.js +0 -6
  40. package/lib/assets/icons/academy.svg.js.map +0 -1
  41. package/lib/assets/icons/advance_xpath.svg.js +0 -6
  42. package/lib/assets/icons/advance_xpath.svg.js.map +0 -1
  43. package/lib/assets/icons/ai_power_testing.svg.js +0 -6
  44. package/lib/assets/icons/ai_power_testing.svg.js.map +0 -1
  45. package/lib/assets/icons/api_automation_testing.svg.js +0 -6
  46. package/lib/assets/icons/api_automation_testing.svg.js.map +0 -1
  47. package/lib/assets/icons/api_integration_testing.svg.js +0 -6
  48. package/lib/assets/icons/api_integration_testing.svg.js.map +0 -1
  49. package/lib/assets/icons/api_regression_testing.svg.js +0 -6
  50. package/lib/assets/icons/api_regression_testing.svg.js.map +0 -1
  51. package/lib/assets/icons/assets.svg.js +0 -6
  52. package/lib/assets/icons/assets.svg.js.map +0 -1
  53. package/lib/assets/icons/audit_and_assesment.svg.js +0 -6
  54. package/lib/assets/icons/audit_and_assesment.svg.js.map +0 -1
  55. package/lib/assets/icons/auto_priorities_locator.svg.js +0 -6
  56. package/lib/assets/icons/auto_priorities_locator.svg.js.map +0 -1
  57. package/lib/assets/icons/auto_prioritization_of_locators.svg.js +0 -6
  58. package/lib/assets/icons/auto_prioritization_of_locators.svg.js.map +0 -1
  59. package/lib/assets/icons/automation_process.svg.js +0 -6
  60. package/lib/assets/icons/automation_process.svg.js.map +0 -1
  61. package/lib/assets/icons/automation_testing_tool_migration.svg.js +0 -6
  62. package/lib/assets/icons/automation_testing_tool_migration.svg.js.map +0 -1
  63. package/lib/assets/icons/back_to_top.svg.js +0 -6
  64. package/lib/assets/icons/back_to_top.svg.js.map +0 -1
  65. package/lib/assets/icons/blog.svg.js +0 -6
  66. package/lib/assets/icons/blog.svg.js.map +0 -1
  67. package/lib/assets/icons/browser_independent.svg.js +0 -6
  68. package/lib/assets/icons/browser_independent.svg.js.map +0 -1
  69. package/lib/assets/icons/browser_independent_tool.svg.js +0 -6
  70. package/lib/assets/icons/browser_independent_tool.svg.js.map +0 -1
  71. package/lib/assets/icons/call_icon.svg.js +0 -6
  72. package/lib/assets/icons/call_icon.svg.js.map +0 -1
  73. package/lib/assets/icons/case_study.svg.js +0 -6
  74. package/lib/assets/icons/case_study.svg.js.map +0 -1
  75. package/lib/assets/icons/cloud.svg.js +0 -6
  76. package/lib/assets/icons/cloud.svg.js.map +0 -1
  77. package/lib/assets/icons/cloud_browsers.svg.js +0 -6
  78. package/lib/assets/icons/cloud_browsers.svg.js.map +0 -1
  79. package/lib/assets/icons/cloud_core_feature_api.svg.js +0 -6
  80. package/lib/assets/icons/cloud_core_feature_api.svg.js.map +0 -1
  81. package/lib/assets/icons/cloud_core_feature_browser.svg.js +0 -6
  82. package/lib/assets/icons/cloud_core_feature_browser.svg.js.map +0 -1
  83. package/lib/assets/icons/cloud_core_feature_costs.svg.js +0 -6
  84. package/lib/assets/icons/cloud_core_feature_costs.svg.js.map +0 -1
  85. package/lib/assets/icons/cloud_core_feature_device.svg.js +0 -6
  86. package/lib/assets/icons/cloud_core_feature_device.svg.js.map +0 -1
  87. package/lib/assets/icons/cloud_core_feature_execution.svg.js +0 -6
  88. package/lib/assets/icons/cloud_core_feature_execution.svg.js.map +0 -1
  89. package/lib/assets/icons/cloud_core_feature_test.svg.js +0 -6
  90. package/lib/assets/icons/cloud_core_feature_test.svg.js.map +0 -1
  91. package/lib/assets/icons/cloud_core_feature_time.svg.js +0 -6
  92. package/lib/assets/icons/cloud_core_feature_time.svg.js.map +0 -1
  93. package/lib/assets/icons/cloud_core_feature_tools.svg.js +0 -6
  94. package/lib/assets/icons/cloud_core_feature_tools.svg.js.map +0 -1
  95. package/lib/assets/icons/cloud_live_testing.svg.js +0 -6
  96. package/lib/assets/icons/cloud_live_testing.svg.js.map +0 -1
  97. package/lib/assets/icons/cloud_mobile.svg.js +0 -6
  98. package/lib/assets/icons/cloud_mobile.svg.js.map +0 -1
  99. package/lib/assets/icons/cloud_mobile_browsers.svg.js +0 -6
  100. package/lib/assets/icons/cloud_mobile_browsers.svg.js.map +0 -1
  101. package/lib/assets/icons/cloud_mobiles.svg.js +0 -6
  102. package/lib/assets/icons/cloud_mobiles.svg.js.map +0 -1
  103. package/lib/assets/icons/cloud_web.svg.js +0 -6
  104. package/lib/assets/icons/cloud_web.svg.js.map +0 -1
  105. package/lib/assets/icons/collaboration.svg.js +0 -6
  106. package/lib/assets/icons/collaboration.svg.js.map +0 -1
  107. package/lib/assets/icons/comprehensive_device_coverage.svg.js +0 -6
  108. package/lib/assets/icons/comprehensive_device_coverage.svg.js.map +0 -1
  109. package/lib/assets/icons/custom_nlp.svg.js +0 -6
  110. package/lib/assets/icons/custom_nlp.svg.js.map +0 -1
  111. package/lib/assets/icons/customised_template.svg.js +0 -6
  112. package/lib/assets/icons/customised_template.svg.js.map +0 -1
  113. package/lib/assets/icons/data_driven.svg.js +0 -6
  114. package/lib/assets/icons/data_driven.svg.js.map +0 -1
  115. package/lib/assets/icons/defect_management.svg.js +0 -6
  116. package/lib/assets/icons/defect_management.svg.js.map +0 -1
  117. package/lib/assets/icons/documentation.svg.js +0 -6
  118. package/lib/assets/icons/documentation.svg.js.map +0 -1
  119. package/lib/assets/icons/dom_elements.svg.js +0 -6
  120. package/lib/assets/icons/dom_elements.svg.js.map +0 -1
  121. package/lib/assets/icons/domain_asset.svg.js +0 -6
  122. package/lib/assets/icons/domain_asset.svg.js.map +0 -1
  123. package/lib/assets/icons/dynamic_locator_finder.svg.js +0 -6
  124. package/lib/assets/icons/dynamic_locator_finder.svg.js.map +0 -1
  125. package/lib/assets/icons/dynamic_ui.svg.js +0 -6
  126. package/lib/assets/icons/dynamic_ui.svg.js.map +0 -1
  127. package/lib/assets/icons/e2e_automation.svg.js +0 -6
  128. package/lib/assets/icons/e2e_automation.svg.js.map +0 -1
  129. package/lib/assets/icons/effortless_integration.svg.js +0 -6
  130. package/lib/assets/icons/effortless_integration.svg.js.map +0 -1
  131. package/lib/assets/icons/element_locator.svg.js +0 -6
  132. package/lib/assets/icons/element_locator.svg.js.map +0 -1
  133. package/lib/assets/icons/emulators.svg.js +0 -6
  134. package/lib/assets/icons/emulators.svg.js.map +0 -1
  135. package/lib/assets/icons/export_defects.svg.js +0 -6
  136. package/lib/assets/icons/export_defects.svg.js.map +0 -1
  137. package/lib/assets/icons/export_test_case.svg.js +0 -6
  138. package/lib/assets/icons/export_test_case.svg.js.map +0 -1
  139. package/lib/assets/icons/express_methodology.svg.js +0 -6
  140. package/lib/assets/icons/express_methodology.svg.js.map +0 -1
  141. package/lib/assets/icons/facebook_hover_icon.svg.js +0 -6
  142. package/lib/assets/icons/facebook_hover_icon.svg.js.map +0 -1
  143. package/lib/assets/icons/facebook_icon.svg.js +0 -6
  144. package/lib/assets/icons/facebook_icon.svg.js.map +0 -1
  145. package/lib/assets/icons/finder.svg.js +0 -6
  146. package/lib/assets/icons/finder.svg.js.map +0 -1
  147. package/lib/assets/icons/fireflink_client.svg.js +0 -6
  148. package/lib/assets/icons/fireflink_client.svg.js.map +0 -1
  149. package/lib/assets/icons/flexible_api.svg.js +0 -6
  150. package/lib/assets/icons/flexible_api.svg.js.map +0 -1
  151. package/lib/assets/icons/get_optimal_locators.svg.js +0 -6
  152. package/lib/assets/icons/get_optimal_locators.svg.js.map +0 -1
  153. package/lib/assets/icons/infrastructure_costs.svg.js +0 -6
  154. package/lib/assets/icons/infrastructure_costs.svg.js.map +0 -1
  155. package/lib/assets/icons/instagram_hover_icon.svg.js +0 -6
  156. package/lib/assets/icons/instagram_hover_icon.svg.js.map +0 -1
  157. package/lib/assets/icons/instagram_icon.svg.js +0 -6
  158. package/lib/assets/icons/instagram_icon.svg.js.map +0 -1
  159. package/lib/assets/icons/linkedin_hover_icon.svg.js +0 -6
  160. package/lib/assets/icons/linkedin_hover_icon.svg.js.map +0 -1
  161. package/lib/assets/icons/linkedin_icon.svg.js +0 -6
  162. package/lib/assets/icons/linkedin_icon.svg.js.map +0 -1
  163. package/lib/assets/icons/live_testing.svg.js +0 -6
  164. package/lib/assets/icons/live_testing.svg.js.map +0 -1
  165. package/lib/assets/icons/mail_icon.svg.js +0 -6
  166. package/lib/assets/icons/mail_icon.svg.js.map +0 -1
  167. package/lib/assets/icons/maintain_effortlessly.svg.js +0 -6
  168. package/lib/assets/icons/maintain_effortlessly.svg.js.map +0 -1
  169. package/lib/assets/icons/manual_test_case_management.svg.js +0 -6
  170. package/lib/assets/icons/manual_test_case_management.svg.js.map +0 -1
  171. package/lib/assets/icons/mobile_app_integration_testing.svg.js +0 -6
  172. package/lib/assets/icons/mobile_app_integration_testing.svg.js.map +0 -1
  173. package/lib/assets/icons/mobile_app_testing.svg.js +0 -6
  174. package/lib/assets/icons/mobile_app_testing.svg.js.map +0 -1
  175. package/lib/assets/icons/mobile_automation_testing.svg.js +0 -6
  176. package/lib/assets/icons/mobile_automation_testing.svg.js.map +0 -1
  177. package/lib/assets/icons/multiple_element_locator.svg.js +0 -6
  178. package/lib/assets/icons/multiple_element_locator.svg.js.map +0 -1
  179. package/lib/assets/icons/navigation_report.svg.js +0 -6
  180. package/lib/assets/icons/navigation_report.svg.js.map +0 -1
  181. package/lib/assets/icons/notification.svg.js +0 -6
  182. package/lib/assets/icons/notification.svg.js.map +0 -1
  183. package/lib/assets/icons/one_tool_to_find_ui_elements.svg.js +0 -6
  184. package/lib/assets/icons/one_tool_to_find_ui_elements.svg.js.map +0 -1
  185. package/lib/assets/icons/oracle.svg.js +0 -6
  186. package/lib/assets/icons/oracle.svg.js.map +0 -1
  187. package/lib/assets/icons/parallel_execution.svg.js +0 -6
  188. package/lib/assets/icons/parallel_execution.svg.js.map +0 -1
  189. package/lib/assets/icons/pause_icon_website.svg.js +0 -6
  190. package/lib/assets/icons/pause_icon_website.svg.js.map +0 -1
  191. package/lib/assets/icons/people_soft.svg.js +0 -6
  192. package/lib/assets/icons/people_soft.svg.js.map +0 -1
  193. package/lib/assets/icons/platform.svg.js +0 -6
  194. package/lib/assets/icons/platform.svg.js.map +0 -1
  195. package/lib/assets/icons/play_icon_website.svg.js +0 -6
  196. package/lib/assets/icons/play_icon_website.svg.js.map +0 -1
  197. package/lib/assets/icons/prerequisites.svg.js +0 -6
  198. package/lib/assets/icons/prerequisites.svg.js.map +0 -1
  199. package/lib/assets/icons/product_assets.svg.js +0 -6
  200. package/lib/assets/icons/product_assets.svg.js.map +0 -1
  201. package/lib/assets/icons/quick_access_website.svg.js +0 -6
  202. package/lib/assets/icons/quick_access_website.svg.js.map +0 -1
  203. package/lib/assets/icons/quick_access_website_active.svg.js +0 -6
  204. package/lib/assets/icons/quick_access_website_active.svg.js.map +0 -1
  205. package/lib/assets/icons/regression_testing.svg.js +0 -6
  206. package/lib/assets/icons/regression_testing.svg.js.map +0 -1
  207. package/lib/assets/icons/release_note.svg.js +0 -6
  208. package/lib/assets/icons/release_note.svg.js.map +0 -1
  209. package/lib/assets/icons/result_analytics.svg.js +0 -6
  210. package/lib/assets/icons/result_analytics.svg.js.map +0 -1
  211. package/lib/assets/icons/robust_locators.svg.js +0 -6
  212. package/lib/assets/icons/robust_locators.svg.js.map +0 -1
  213. package/lib/assets/icons/salesforce.svg.js +0 -6
  214. package/lib/assets/icons/salesforce.svg.js.map +0 -1
  215. package/lib/assets/icons/sample-user.svg.js +0 -6
  216. package/lib/assets/icons/sample-user.svg.js.map +0 -1
  217. package/lib/assets/icons/sap.svg.js +0 -6
  218. package/lib/assets/icons/sap.svg.js.map +0 -1
  219. package/lib/assets/icons/save_time.svg.js +0 -6
  220. package/lib/assets/icons/save_time.svg.js.map +0 -1
  221. package/lib/assets/icons/scriptless_nlp.svg.js +0 -6
  222. package/lib/assets/icons/scriptless_nlp.svg.js.map +0 -1
  223. package/lib/assets/icons/seamless_testing.svg.js +0 -6
  224. package/lib/assets/icons/seamless_testing.svg.js.map +0 -1
  225. package/lib/assets/icons/service_now.svg.js +0 -6
  226. package/lib/assets/icons/service_now.svg.js.map +0 -1
  227. package/lib/assets/icons/shadow_dom_element.svg.js +0 -6
  228. package/lib/assets/icons/shadow_dom_element.svg.js.map +0 -1
  229. package/lib/assets/icons/shifting_ui.svg.js +0 -6
  230. package/lib/assets/icons/shifting_ui.svg.js.map +0 -1
  231. package/lib/assets/icons/simulator_device.svg.js +0 -6
  232. package/lib/assets/icons/simulator_device.svg.js.map +0 -1
  233. package/lib/assets/icons/simulators.svg.js +0 -6
  234. package/lib/assets/icons/simulators.svg.js.map +0 -1
  235. package/lib/assets/icons/single_thread.svg.js +0 -6
  236. package/lib/assets/icons/single_thread.svg.js.map +0 -1
  237. package/lib/assets/icons/small_icon_arrow_right.svg.js +0 -6
  238. package/lib/assets/icons/small_icon_arrow_right.svg.js.map +0 -1
  239. package/lib/assets/icons/snapshots.svg.js +0 -6
  240. package/lib/assets/icons/snapshots.svg.js.map +0 -1
  241. package/lib/assets/icons/step_reusability.svg.js +0 -6
  242. package/lib/assets/icons/step_reusability.svg.js.map +0 -1
  243. package/lib/assets/icons/straight_forward_tool.svg.js +0 -6
  244. package/lib/assets/icons/straight_forward_tool.svg.js.map +0 -1
  245. package/lib/assets/icons/support.svg.js +0 -6
  246. package/lib/assets/icons/support.svg.js.map +0 -1
  247. package/lib/assets/icons/template_store.svg.js +0 -6
  248. package/lib/assets/icons/template_store.svg.js.map +0 -1
  249. package/lib/assets/icons/templatized_platform.svg.js +0 -6
  250. package/lib/assets/icons/templatized_platform.svg.js.map +0 -1
  251. package/lib/assets/icons/test_execution.svg.js +0 -6
  252. package/lib/assets/icons/test_execution.svg.js.map +0 -1
  253. package/lib/assets/icons/test_management.svg.js +0 -6
  254. package/lib/assets/icons/test_management.svg.js.map +0 -1
  255. package/lib/assets/icons/time_to_market.svg.js +0 -6
  256. package/lib/assets/icons/time_to_market.svg.js.map +0 -1
  257. package/lib/assets/icons/timespans.svg.js +0 -6
  258. package/lib/assets/icons/timespans.svg.js.map +0 -1
  259. package/lib/assets/icons/tiresome_manual_practices.svg.js +0 -6
  260. package/lib/assets/icons/tiresome_manual_practices.svg.js.map +0 -1
  261. package/lib/assets/icons/traceability.svg.js +0 -6
  262. package/lib/assets/icons/traceability.svg.js.map +0 -1
  263. package/lib/assets/icons/track_progress.svg.js +0 -6
  264. package/lib/assets/icons/track_progress.svg.js.map +0 -1
  265. package/lib/assets/icons/training_and_upskilling.svg.js +0 -6
  266. package/lib/assets/icons/training_and_upskilling.svg.js.map +0 -1
  267. package/lib/assets/icons/twitter_hover_icon.svg.js +0 -6
  268. package/lib/assets/icons/twitter_hover_icon.svg.js.map +0 -1
  269. package/lib/assets/icons/twitter_icon.svg.js +0 -6
  270. package/lib/assets/icons/twitter_icon.svg.js.map +0 -1
  271. package/lib/assets/icons/ui_performance_testing.svg.js +0 -6
  272. package/lib/assets/icons/ui_performance_testing.svg.js.map +0 -1
  273. package/lib/assets/icons/unified_tool.svg.js +0 -6
  274. package/lib/assets/icons/unified_tool.svg.js.map +0 -1
  275. package/lib/assets/icons/use_it_independently.svg.js +0 -6
  276. package/lib/assets/icons/use_it_independently.svg.js.map +0 -1
  277. package/lib/assets/icons/user_interface_testing.svg.js +0 -6
  278. package/lib/assets/icons/user_interface_testing.svg.js.map +0 -1
  279. package/lib/assets/icons/using_nlp_for_ux_testing.svg.js +0 -6
  280. package/lib/assets/icons/using_nlp_for_ux_testing.svg.js.map +0 -1
  281. package/lib/assets/icons/video_tutorial.svg.js +0 -6
  282. package/lib/assets/icons/video_tutorial.svg.js.map +0 -1
  283. package/lib/assets/icons/visual_testing.svg.js +0 -6
  284. package/lib/assets/icons/visual_testing.svg.js.map +0 -1
  285. package/lib/assets/icons/web_app_compatibility_testing.svg.js +0 -6
  286. package/lib/assets/icons/web_app_compatibility_testing.svg.js.map +0 -1
  287. package/lib/assets/icons/web_app_functionality_testing.svg.js +0 -6
  288. package/lib/assets/icons/web_app_functionality_testing.svg.js.map +0 -1
  289. package/lib/assets/icons/web_app_integration_testing.svg.js +0 -6
  290. package/lib/assets/icons/web_app_integration_testing.svg.js.map +0 -1
  291. package/lib/assets/icons/web_app_regression_testing.svg.js +0 -6
  292. package/lib/assets/icons/web_app_regression_testing.svg.js.map +0 -1
  293. package/lib/assets/icons/web_automation_testing.svg.js +0 -6
  294. package/lib/assets/icons/web_automation_testing.svg.js.map +0 -1
  295. package/lib/assets/icons/web_locator_finder.svg.js +0 -6
  296. package/lib/assets/icons/web_locator_finder.svg.js.map +0 -1
  297. package/lib/assets/icons/website_asset_logo.svg.js +0 -6
  298. package/lib/assets/icons/website_asset_logo.svg.js.map +0 -1
  299. package/lib/assets/icons/website_cloud_logo.svg.js +0 -6
  300. package/lib/assets/icons/website_cloud_logo.svg.js.map +0 -1
  301. package/lib/assets/icons/website_finder_logo.svg.js +0 -6
  302. package/lib/assets/icons/website_finder_logo.svg.js.map +0 -1
  303. package/lib/assets/icons/website_platform_logo.svg.js +0 -6
  304. package/lib/assets/icons/website_platform_logo.svg.js.map +0 -1
  305. package/lib/assets/icons/work_day.svg.js +0 -6
  306. package/lib/assets/icons/work_day.svg.js.map +0 -1
  307. package/lib/assets/icons/youtube_hover_icon.svg.js +0 -6
  308. package/lib/assets/icons/youtube_hover_icon.svg.js.map +0 -1
  309. package/lib/assets/icons/youtube_icon.svg.js +0 -6
  310. package/lib/assets/icons/youtube_icon.svg.js.map +0 -1
  311. package/lib/components/MegaMenu/MegaMenu.d.ts +0 -5
  312. package/lib/components/MegaMenu/MegaMenu.js +0 -616
  313. package/lib/components/MegaMenu/MegaMenu.js.map +0 -1
  314. package/lib/components/MegaMenu/data/DropDownContent.d.ts +0 -5
  315. package/lib/components/MegaMenu/data/DropDownContent.js +0 -495
  316. package/lib/components/MegaMenu/data/DropDownContent.js.map +0 -1
  317. package/lib/components/MegaMenu/data/MegaMenuData.d.ts +0 -62
  318. package/lib/components/MegaMenu/data/MegaMenuData.js +0 -32
  319. package/lib/components/MegaMenu/data/MegaMenuData.js.map +0 -1
  320. package/lib/components/MegaMenu/index.d.ts +0 -1
  321. package/lib/components/MegaMenu/index.js +0 -2
  322. package/lib/components/MegaMenu/index.js.map +0 -1
  323. package/lib/components/MegaMenu/types.d.ts +0 -45
  324. package/lib/components/MegaMenu/types.js +0 -2
  325. package/lib/components/MegaMenu/types.js.map +0 -1
  326. package/lib/components/MultiColFooter/MultiColFooter.d.ts +0 -5
  327. package/lib/components/MultiColFooter/MultiColFooter.js +0 -242
  328. package/lib/components/MultiColFooter/MultiColFooter.js.map +0 -1
  329. package/lib/components/MultiColFooter/index.d.ts +0 -1
  330. package/lib/components/MultiColFooter/index.js +0 -2
  331. package/lib/components/MultiColFooter/index.js.map +0 -1
  332. package/lib/components/MultiColFooter/types.d.ts +0 -48
  333. package/lib/components/MultiColFooter/types.js +0 -2
  334. package/lib/components/MultiColFooter/types.js.map +0 -1
  335. package/lib/components/NotFoundPage/NotFoundPage.d.ts +0 -4
  336. package/lib/components/NotFoundPage/NotFoundPage.js +0 -37
  337. package/lib/components/NotFoundPage/NotFoundPage.js.map +0 -1
  338. package/lib/components/NotFoundPage/index.d.ts +0 -1
  339. package/lib/components/NotFoundPage/index.js +0 -2
  340. package/lib/components/NotFoundPage/index.js.map +0 -1
  341. package/lib/components/NotFoundPage/types.d.ts +0 -8
  342. package/lib/components/NotFoundPage/types.js +0 -2
  343. package/lib/components/NotFoundPage/types.js.map +0 -1
  344. package/lib/components/NumberCounter/NumberCounter.d.ts +0 -4
  345. package/lib/components/NumberCounter/NumberCounter.js +0 -61
  346. package/lib/components/NumberCounter/NumberCounter.js.map +0 -1
  347. package/lib/components/NumberCounter/index.d.ts +0 -1
  348. package/lib/components/NumberCounter/index.js +0 -2
  349. package/lib/components/NumberCounter/index.js.map +0 -1
  350. package/lib/components/NumberCounter/type.d.ts +0 -11
  351. package/lib/components/NumberCounter/type.js +0 -2
  352. package/lib/components/NumberCounter/type.js.map +0 -1
  353. package/lib/components/ProductSlider/ProductSlider.d.ts +0 -7
  354. package/lib/components/ProductSlider/ProductSlider.js +0 -128
  355. package/lib/components/ProductSlider/ProductSlider.js.map +0 -1
  356. package/lib/components/ProductSlider/data/carouselData.d.ts +0 -2
  357. package/lib/components/ProductSlider/data/carouselData.js +0 -50
  358. package/lib/components/ProductSlider/data/carouselData.js.map +0 -1
  359. package/lib/components/ProductSlider/index.d.ts +0 -1
  360. package/lib/components/ProductSlider/index.js +0 -2
  361. package/lib/components/ProductSlider/index.js.map +0 -1
  362. package/lib/components/ProductSlider/types.d.ts +0 -13
  363. package/lib/components/ProductSlider/types.js +0 -2
  364. package/lib/components/ProductSlider/types.js.map +0 -1
  365. package/lib/components/TestimonialSlider/TestimonialSlider.d.ts +0 -7
  366. package/lib/components/TestimonialSlider/TestimonialSlider.js +0 -324
  367. package/lib/components/TestimonialSlider/TestimonialSlider.js.map +0 -1
  368. package/lib/components/TestimonialSlider/data/testimonialsData.d.ts +0 -2
  369. package/lib/components/TestimonialSlider/data/testimonialsData.js +0 -80
  370. package/lib/components/TestimonialSlider/data/testimonialsData.js.map +0 -1
  371. package/lib/components/TestimonialSlider/index.d.ts +0 -1
  372. package/lib/components/TestimonialSlider/index.js +0 -2
  373. package/lib/components/TestimonialSlider/index.js.map +0 -1
  374. package/lib/components/TestimonialSlider/types.d.ts +0 -21
  375. package/lib/components/TestimonialSlider/types.js +0 -2
  376. package/lib/components/TestimonialSlider/types.js.map +0 -1
  377. package/lib/components/VerticalSlider/VerticalSlider.d.ts +0 -7
  378. package/lib/components/VerticalSlider/VerticalSlider.js +0 -148
  379. package/lib/components/VerticalSlider/VerticalSlider.js.map +0 -1
  380. package/lib/components/VerticalSlider/data/carouselData.d.ts +0 -2
  381. package/lib/components/VerticalSlider/data/carouselData.js +0 -49
  382. package/lib/components/VerticalSlider/data/carouselData.js.map +0 -1
  383. package/lib/components/VerticalSlider/index.d.ts +0 -0
  384. package/lib/components/VerticalSlider/index.js +0 -2
  385. package/lib/components/VerticalSlider/index.js.map +0 -1
  386. package/lib/components/VerticalSlider/types.d.ts +0 -11
  387. package/lib/components/VerticalSlider/types.js +0 -2
  388. package/lib/components/VerticalSlider/types.js.map +0 -1
  389. package/lib/components/WebsiteInput/WebsiteInput.d.ts +0 -5
  390. package/lib/components/WebsiteInput/WebsiteInput.js +0 -39
  391. package/lib/components/WebsiteInput/WebsiteInput.js.map +0 -1
  392. package/lib/components/WebsiteInput/index.d.ts +0 -1
  393. package/lib/components/WebsiteInput/index.js +0 -2
  394. package/lib/components/WebsiteInput/index.js.map +0 -1
  395. package/lib/components/WebsiteInput/types.d.ts +0 -11
  396. package/lib/components/WebsiteInput/types.js +0 -2
  397. package/lib/components/WebsiteInput/types.js.map +0 -1
  398. package/lib/components/WebsiteSelect/WebsiteSelect.d.ts +0 -5
  399. package/lib/components/WebsiteSelect/WebsiteSelect.js +0 -76
  400. package/lib/components/WebsiteSelect/WebsiteSelect.js.map +0 -1
  401. package/lib/components/WebsiteSelect/index.d.ts +0 -1
  402. package/lib/components/WebsiteSelect/index.js +0 -2
  403. package/lib/components/WebsiteSelect/index.js.map +0 -1
  404. package/lib/components/WebsiteSelect/types.d.ts +0 -6
  405. package/lib/components/WebsiteSelect/types.js +0 -2
  406. package/lib/components/WebsiteSelect/types.js.map +0 -1
  407. package/lib/node_modules/enquire.js/src/MediaQuery.js +0 -95
  408. package/lib/node_modules/enquire.js/src/MediaQuery.js.map +0 -1
  409. package/lib/node_modules/enquire.js/src/MediaQueryDispatch.js +0 -91
  410. package/lib/node_modules/enquire.js/src/MediaQueryDispatch.js.map +0 -1
  411. package/lib/node_modules/enquire.js/src/QueryHandler.js +0 -75
  412. package/lib/node_modules/enquire.js/src/QueryHandler.js.map +0 -1
  413. package/lib/node_modules/enquire.js/src/Util.js +0 -52
  414. package/lib/node_modules/enquire.js/src/Util.js.map +0 -1
  415. package/lib/node_modules/enquire.js/src/index.js +0 -14
  416. package/lib/node_modules/enquire.js/src/index.js.map +0 -1
  417. package/lib/node_modules/json2mq/index.js +0 -59
  418. package/lib/node_modules/json2mq/index.js.map +0 -1
  419. package/lib/node_modules/lodash.debounce/index.js +0 -369
  420. package/lib/node_modules/lodash.debounce/index.js.map +0 -1
  421. package/lib/node_modules/react-loading-skeleton/dist/index.js +0 -117
  422. package/lib/node_modules/react-loading-skeleton/dist/index.js.map +0 -1
  423. package/lib/node_modules/react-slick/lib/arrows.js +0 -296
  424. package/lib/node_modules/react-slick/lib/arrows.js.map +0 -1
  425. package/lib/node_modules/react-slick/lib/default-props.js +0 -88
  426. package/lib/node_modules/react-slick/lib/default-props.js.map +0 -1
  427. package/lib/node_modules/react-slick/lib/dots.js +0 -247
  428. package/lib/node_modules/react-slick/lib/dots.js.map +0 -1
  429. package/lib/node_modules/react-slick/lib/index.js +0 -26
  430. package/lib/node_modules/react-slick/lib/index.js.map +0 -1
  431. package/lib/node_modules/react-slick/lib/initial-state.js +0 -50
  432. package/lib/node_modules/react-slick/lib/initial-state.js.map +0 -1
  433. package/lib/node_modules/react-slick/lib/inner-slider.js +0 -881
  434. package/lib/node_modules/react-slick/lib/inner-slider.js.map +0 -1
  435. package/lib/node_modules/react-slick/lib/slider.js +0 -397
  436. package/lib/node_modules/react-slick/lib/slider.js.map +0 -1
  437. package/lib/node_modules/react-slick/lib/track.js +0 -384
  438. package/lib/node_modules/react-slick/lib/track.js.map +0 -1
  439. package/lib/node_modules/react-slick/lib/utils/innerSliderUtils.js +0 -835
  440. package/lib/node_modules/react-slick/lib/utils/innerSliderUtils.js.map +0 -1
  441. package/lib/node_modules/react-slick/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -948
  442. package/lib/node_modules/react-slick/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js.map +0 -1
  443. package/lib/node_modules/string-convert/camel2hyphen.js +0 -16
  444. package/lib/node_modules/string-convert/camel2hyphen.js.map +0 -1
  445. package/lib/utils/useDeviceType/useDeviceType.d.ts +0 -6
  446. package/lib/utils/useDeviceType/useDeviceType.js +0 -27
  447. package/lib/utils/useDeviceType/useDeviceType.js.map +0 -1
@@ -1,948 +0,0 @@
1
- /**
2
- * A collection of shims that provide minimal functionality of the ES6 collections.
3
- *
4
- * These implementations are not meant to be used outside of the ResizeObserver
5
- * modules as they cover only a limited range of use cases.
6
- */
7
- /* eslint-disable require-jsdoc, valid-jsdoc */
8
- var MapShim = function () {
9
- if (typeof Map !== 'undefined') {
10
- return Map;
11
- }
12
- /**
13
- * Returns index in provided array that matches the specified key.
14
- *
15
- * @param {Array<Array>} arr
16
- * @param {*} key
17
- * @returns {number}
18
- */
19
- function getIndex(arr, key) {
20
- var result = -1;
21
- arr.some(function (entry, index) {
22
- if (entry[0] === key) {
23
- result = index;
24
- return true;
25
- }
26
- return false;
27
- });
28
- return result;
29
- }
30
- return /** @class */function () {
31
- function class_1() {
32
- this.__entries__ = [];
33
- }
34
- Object.defineProperty(class_1.prototype, "size", {
35
- /**
36
- * @returns {boolean}
37
- */
38
- get: function () {
39
- return this.__entries__.length;
40
- },
41
- enumerable: true,
42
- configurable: true
43
- });
44
- /**
45
- * @param {*} key
46
- * @returns {*}
47
- */
48
- class_1.prototype.get = function (key) {
49
- var index = getIndex(this.__entries__, key);
50
- var entry = this.__entries__[index];
51
- return entry && entry[1];
52
- };
53
- /**
54
- * @param {*} key
55
- * @param {*} value
56
- * @returns {void}
57
- */
58
- class_1.prototype.set = function (key, value) {
59
- var index = getIndex(this.__entries__, key);
60
- if (~index) {
61
- this.__entries__[index][1] = value;
62
- } else {
63
- this.__entries__.push([key, value]);
64
- }
65
- };
66
- /**
67
- * @param {*} key
68
- * @returns {void}
69
- */
70
- class_1.prototype.delete = function (key) {
71
- var entries = this.__entries__;
72
- var index = getIndex(entries, key);
73
- if (~index) {
74
- entries.splice(index, 1);
75
- }
76
- };
77
- /**
78
- * @param {*} key
79
- * @returns {void}
80
- */
81
- class_1.prototype.has = function (key) {
82
- return !!~getIndex(this.__entries__, key);
83
- };
84
- /**
85
- * @returns {void}
86
- */
87
- class_1.prototype.clear = function () {
88
- this.__entries__.splice(0);
89
- };
90
- /**
91
- * @param {Function} callback
92
- * @param {*} [ctx=null]
93
- * @returns {void}
94
- */
95
- class_1.prototype.forEach = function (callback, ctx) {
96
- if (ctx === void 0) {
97
- ctx = null;
98
- }
99
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
100
- var entry = _a[_i];
101
- callback.call(ctx, entry[1], entry[0]);
102
- }
103
- };
104
- return class_1;
105
- }();
106
- }();
107
-
108
- /**
109
- * Detects whether window and document objects are available in current environment.
110
- */
111
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
112
-
113
- // Returns global object of a current environment.
114
- var global$1 = function () {
115
- if (typeof global !== 'undefined' && global.Math === Math) {
116
- return global;
117
- }
118
- if (typeof self !== 'undefined' && self.Math === Math) {
119
- return self;
120
- }
121
- if (typeof window !== 'undefined' && window.Math === Math) {
122
- return window;
123
- }
124
- // eslint-disable-next-line no-new-func
125
- return Function('return this')();
126
- }();
127
-
128
- /**
129
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
130
- * first one is not supported.
131
- *
132
- * @returns {number} Requests' identifier.
133
- */
134
- var requestAnimationFrame$1 = function () {
135
- if (typeof requestAnimationFrame === 'function') {
136
- // It's required to use a bounded function because IE sometimes throws
137
- // an "Invalid calling object" error if rAF is invoked without the global
138
- // object on the left hand side.
139
- return requestAnimationFrame.bind(global$1);
140
- }
141
- return function (callback) {
142
- return setTimeout(function () {
143
- return callback(Date.now());
144
- }, 1000 / 60);
145
- };
146
- }();
147
-
148
- // Defines minimum timeout before adding a trailing call.
149
- var trailingTimeout = 2;
150
- /**
151
- * Creates a wrapper function which ensures that provided callback will be
152
- * invoked only once during the specified delay period.
153
- *
154
- * @param {Function} callback - Function to be invoked after the delay period.
155
- * @param {number} delay - Delay after which to invoke callback.
156
- * @returns {Function}
157
- */
158
- function throttle(callback, delay) {
159
- var leadingCall = false,
160
- trailingCall = false,
161
- lastCallTime = 0;
162
- /**
163
- * Invokes the original callback function and schedules new invocation if
164
- * the "proxy" was called during current request.
165
- *
166
- * @returns {void}
167
- */
168
- function resolvePending() {
169
- if (leadingCall) {
170
- leadingCall = false;
171
- callback();
172
- }
173
- if (trailingCall) {
174
- proxy();
175
- }
176
- }
177
- /**
178
- * Callback invoked after the specified delay. It will further postpone
179
- * invocation of the original function delegating it to the
180
- * requestAnimationFrame.
181
- *
182
- * @returns {void}
183
- */
184
- function timeoutCallback() {
185
- requestAnimationFrame$1(resolvePending);
186
- }
187
- /**
188
- * Schedules invocation of the original function.
189
- *
190
- * @returns {void}
191
- */
192
- function proxy() {
193
- var timeStamp = Date.now();
194
- if (leadingCall) {
195
- // Reject immediately following calls.
196
- if (timeStamp - lastCallTime < trailingTimeout) {
197
- return;
198
- }
199
- // Schedule new call to be in invoked when the pending one is resolved.
200
- // This is important for "transitions" which never actually start
201
- // immediately so there is a chance that we might miss one if change
202
- // happens amids the pending invocation.
203
- trailingCall = true;
204
- } else {
205
- leadingCall = true;
206
- trailingCall = false;
207
- setTimeout(timeoutCallback, delay);
208
- }
209
- lastCallTime = timeStamp;
210
- }
211
- return proxy;
212
- }
213
-
214
- // Minimum delay before invoking the update of observers.
215
- var REFRESH_DELAY = 20;
216
- // A list of substrings of CSS properties used to find transition events that
217
- // might affect dimensions of observed elements.
218
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
219
- // Check if MutationObserver is available.
220
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
221
- /**
222
- * Singleton controller class which handles updates of ResizeObserver instances.
223
- */
224
- var ResizeObserverController = /** @class */function () {
225
- /**
226
- * Creates a new instance of ResizeObserverController.
227
- *
228
- * @private
229
- */
230
- function ResizeObserverController() {
231
- /**
232
- * Indicates whether DOM listeners have been added.
233
- *
234
- * @private {boolean}
235
- */
236
- this.connected_ = false;
237
- /**
238
- * Tells that controller has subscribed for Mutation Events.
239
- *
240
- * @private {boolean}
241
- */
242
- this.mutationEventsAdded_ = false;
243
- /**
244
- * Keeps reference to the instance of MutationObserver.
245
- *
246
- * @private {MutationObserver}
247
- */
248
- this.mutationsObserver_ = null;
249
- /**
250
- * A list of connected observers.
251
- *
252
- * @private {Array<ResizeObserverSPI>}
253
- */
254
- this.observers_ = [];
255
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
256
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
257
- }
258
- /**
259
- * Adds observer to observers list.
260
- *
261
- * @param {ResizeObserverSPI} observer - Observer to be added.
262
- * @returns {void}
263
- */
264
- ResizeObserverController.prototype.addObserver = function (observer) {
265
- if (!~this.observers_.indexOf(observer)) {
266
- this.observers_.push(observer);
267
- }
268
- // Add listeners if they haven't been added yet.
269
- if (!this.connected_) {
270
- this.connect_();
271
- }
272
- };
273
- /**
274
- * Removes observer from observers list.
275
- *
276
- * @param {ResizeObserverSPI} observer - Observer to be removed.
277
- * @returns {void}
278
- */
279
- ResizeObserverController.prototype.removeObserver = function (observer) {
280
- var observers = this.observers_;
281
- var index = observers.indexOf(observer);
282
- // Remove observer if it's present in registry.
283
- if (~index) {
284
- observers.splice(index, 1);
285
- }
286
- // Remove listeners if controller has no connected observers.
287
- if (!observers.length && this.connected_) {
288
- this.disconnect_();
289
- }
290
- };
291
- /**
292
- * Invokes the update of observers. It will continue running updates insofar
293
- * it detects changes.
294
- *
295
- * @returns {void}
296
- */
297
- ResizeObserverController.prototype.refresh = function () {
298
- var changesDetected = this.updateObservers_();
299
- // Continue running updates if changes have been detected as there might
300
- // be future ones caused by CSS transitions.
301
- if (changesDetected) {
302
- this.refresh();
303
- }
304
- };
305
- /**
306
- * Updates every observer from observers list and notifies them of queued
307
- * entries.
308
- *
309
- * @private
310
- * @returns {boolean} Returns "true" if any observer has detected changes in
311
- * dimensions of it's elements.
312
- */
313
- ResizeObserverController.prototype.updateObservers_ = function () {
314
- // Collect observers that have active observations.
315
- var activeObservers = this.observers_.filter(function (observer) {
316
- return observer.gatherActive(), observer.hasActive();
317
- });
318
- // Deliver notifications in a separate cycle in order to avoid any
319
- // collisions between observers, e.g. when multiple instances of
320
- // ResizeObserver are tracking the same element and the callback of one
321
- // of them changes content dimensions of the observed target. Sometimes
322
- // this may result in notifications being blocked for the rest of observers.
323
- activeObservers.forEach(function (observer) {
324
- return observer.broadcastActive();
325
- });
326
- return activeObservers.length > 0;
327
- };
328
- /**
329
- * Initializes DOM listeners.
330
- *
331
- * @private
332
- * @returns {void}
333
- */
334
- ResizeObserverController.prototype.connect_ = function () {
335
- // Do nothing if running in a non-browser environment or if listeners
336
- // have been already added.
337
- if (!isBrowser || this.connected_) {
338
- return;
339
- }
340
- // Subscription to the "Transitionend" event is used as a workaround for
341
- // delayed transitions. This way it's possible to capture at least the
342
- // final state of an element.
343
- document.addEventListener('transitionend', this.onTransitionEnd_);
344
- window.addEventListener('resize', this.refresh);
345
- if (mutationObserverSupported) {
346
- this.mutationsObserver_ = new MutationObserver(this.refresh);
347
- this.mutationsObserver_.observe(document, {
348
- attributes: true,
349
- childList: true,
350
- characterData: true,
351
- subtree: true
352
- });
353
- } else {
354
- document.addEventListener('DOMSubtreeModified', this.refresh);
355
- this.mutationEventsAdded_ = true;
356
- }
357
- this.connected_ = true;
358
- };
359
- /**
360
- * Removes DOM listeners.
361
- *
362
- * @private
363
- * @returns {void}
364
- */
365
- ResizeObserverController.prototype.disconnect_ = function () {
366
- // Do nothing if running in a non-browser environment or if listeners
367
- // have been already removed.
368
- if (!isBrowser || !this.connected_) {
369
- return;
370
- }
371
- document.removeEventListener('transitionend', this.onTransitionEnd_);
372
- window.removeEventListener('resize', this.refresh);
373
- if (this.mutationsObserver_) {
374
- this.mutationsObserver_.disconnect();
375
- }
376
- if (this.mutationEventsAdded_) {
377
- document.removeEventListener('DOMSubtreeModified', this.refresh);
378
- }
379
- this.mutationsObserver_ = null;
380
- this.mutationEventsAdded_ = false;
381
- this.connected_ = false;
382
- };
383
- /**
384
- * "Transitionend" event handler.
385
- *
386
- * @private
387
- * @param {TransitionEvent} event
388
- * @returns {void}
389
- */
390
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
391
- var _b = _a.propertyName,
392
- propertyName = _b === void 0 ? '' : _b;
393
- // Detect whether transition may affect dimensions of an element.
394
- var isReflowProperty = transitionKeys.some(function (key) {
395
- return !!~propertyName.indexOf(key);
396
- });
397
- if (isReflowProperty) {
398
- this.refresh();
399
- }
400
- };
401
- /**
402
- * Returns instance of the ResizeObserverController.
403
- *
404
- * @returns {ResizeObserverController}
405
- */
406
- ResizeObserverController.getInstance = function () {
407
- if (!this.instance_) {
408
- this.instance_ = new ResizeObserverController();
409
- }
410
- return this.instance_;
411
- };
412
- /**
413
- * Holds reference to the controller's instance.
414
- *
415
- * @private {ResizeObserverController}
416
- */
417
- ResizeObserverController.instance_ = null;
418
- return ResizeObserverController;
419
- }();
420
-
421
- /**
422
- * Defines non-writable/enumerable properties of the provided target object.
423
- *
424
- * @param {Object} target - Object for which to define properties.
425
- * @param {Object} props - Properties to be defined.
426
- * @returns {Object} Target object.
427
- */
428
- var defineConfigurable = function (target, props) {
429
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
430
- var key = _a[_i];
431
- Object.defineProperty(target, key, {
432
- value: props[key],
433
- enumerable: false,
434
- writable: false,
435
- configurable: true
436
- });
437
- }
438
- return target;
439
- };
440
-
441
- /**
442
- * Returns the global object associated with provided element.
443
- *
444
- * @param {Object} target
445
- * @returns {Object}
446
- */
447
- var getWindowOf = function (target) {
448
- // Assume that the element is an instance of Node, which means that it
449
- // has the "ownerDocument" property from which we can retrieve a
450
- // corresponding global object.
451
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
452
- // Return the local global object if it's not possible extract one from
453
- // provided element.
454
- return ownerGlobal || global$1;
455
- };
456
-
457
- // Placeholder of an empty content rectangle.
458
- var emptyRect = createRectInit(0, 0, 0, 0);
459
- /**
460
- * Converts provided string to a number.
461
- *
462
- * @param {number|string} value
463
- * @returns {number}
464
- */
465
- function toFloat(value) {
466
- return parseFloat(value) || 0;
467
- }
468
- /**
469
- * Extracts borders size from provided styles.
470
- *
471
- * @param {CSSStyleDeclaration} styles
472
- * @param {...string} positions - Borders positions (top, right, ...)
473
- * @returns {number}
474
- */
475
- function getBordersSize(styles) {
476
- var positions = [];
477
- for (var _i = 1; _i < arguments.length; _i++) {
478
- positions[_i - 1] = arguments[_i];
479
- }
480
- return positions.reduce(function (size, position) {
481
- var value = styles['border-' + position + '-width'];
482
- return size + toFloat(value);
483
- }, 0);
484
- }
485
- /**
486
- * Extracts paddings sizes from provided styles.
487
- *
488
- * @param {CSSStyleDeclaration} styles
489
- * @returns {Object} Paddings box.
490
- */
491
- function getPaddings(styles) {
492
- var positions = ['top', 'right', 'bottom', 'left'];
493
- var paddings = {};
494
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
495
- var position = positions_1[_i];
496
- var value = styles['padding-' + position];
497
- paddings[position] = toFloat(value);
498
- }
499
- return paddings;
500
- }
501
- /**
502
- * Calculates content rectangle of provided SVG element.
503
- *
504
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
505
- * to be calculated.
506
- * @returns {DOMRectInit}
507
- */
508
- function getSVGContentRect(target) {
509
- var bbox = target.getBBox();
510
- return createRectInit(0, 0, bbox.width, bbox.height);
511
- }
512
- /**
513
- * Calculates content rectangle of provided HTMLElement.
514
- *
515
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
516
- * @returns {DOMRectInit}
517
- */
518
- function getHTMLElementContentRect(target) {
519
- // Client width & height properties can't be
520
- // used exclusively as they provide rounded values.
521
- var clientWidth = target.clientWidth,
522
- clientHeight = target.clientHeight;
523
- // By this condition we can catch all non-replaced inline, hidden and
524
- // detached elements. Though elements with width & height properties less
525
- // than 0.5 will be discarded as well.
526
- //
527
- // Without it we would need to implement separate methods for each of
528
- // those cases and it's not possible to perform a precise and performance
529
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
530
- // gives wrong results for elements with width & height less than 0.5.
531
- if (!clientWidth && !clientHeight) {
532
- return emptyRect;
533
- }
534
- var styles = getWindowOf(target).getComputedStyle(target);
535
- var paddings = getPaddings(styles);
536
- var horizPad = paddings.left + paddings.right;
537
- var vertPad = paddings.top + paddings.bottom;
538
- // Computed styles of width & height are being used because they are the
539
- // only dimensions available to JS that contain non-rounded values. It could
540
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
541
- // affected by CSS transformations let alone paddings, borders and scroll bars.
542
- var width = toFloat(styles.width),
543
- height = toFloat(styles.height);
544
- // Width & height include paddings and borders when the 'border-box' box
545
- // model is applied (except for IE).
546
- if (styles.boxSizing === 'border-box') {
547
- // Following conditions are required to handle Internet Explorer which
548
- // doesn't include paddings and borders to computed CSS dimensions.
549
- //
550
- // We can say that if CSS dimensions + paddings are equal to the "client"
551
- // properties then it's either IE, and thus we don't need to subtract
552
- // anything, or an element merely doesn't have paddings/borders styles.
553
- if (Math.round(width + horizPad) !== clientWidth) {
554
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
555
- }
556
- if (Math.round(height + vertPad) !== clientHeight) {
557
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
558
- }
559
- }
560
- // Following steps can't be applied to the document's root element as its
561
- // client[Width/Height] properties represent viewport area of the window.
562
- // Besides, it's as well not necessary as the <html> itself neither has
563
- // rendered scroll bars nor it can be clipped.
564
- if (!isDocumentElement(target)) {
565
- // In some browsers (only in Firefox, actually) CSS width & height
566
- // include scroll bars size which can be removed at this step as scroll
567
- // bars are the only difference between rounded dimensions + paddings
568
- // and "client" properties, though that is not always true in Chrome.
569
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
570
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
571
- // Chrome has a rather weird rounding of "client" properties.
572
- // E.g. for an element with content width of 314.2px it sometimes gives
573
- // the client width of 315px and for the width of 314.7px it may give
574
- // 314px. And it doesn't happen all the time. So just ignore this delta
575
- // as a non-relevant.
576
- if (Math.abs(vertScrollbar) !== 1) {
577
- width -= vertScrollbar;
578
- }
579
- if (Math.abs(horizScrollbar) !== 1) {
580
- height -= horizScrollbar;
581
- }
582
- }
583
- return createRectInit(paddings.left, paddings.top, width, height);
584
- }
585
- /**
586
- * Checks whether provided element is an instance of the SVGGraphicsElement.
587
- *
588
- * @param {Element} target - Element to be checked.
589
- * @returns {boolean}
590
- */
591
- var isSVGGraphicsElement = function () {
592
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
593
- // interface.
594
- if (typeof SVGGraphicsElement !== 'undefined') {
595
- return function (target) {
596
- return target instanceof getWindowOf(target).SVGGraphicsElement;
597
- };
598
- }
599
- // If it's so, then check that element is at least an instance of the
600
- // SVGElement and that it has the "getBBox" method.
601
- // eslint-disable-next-line no-extra-parens
602
- return function (target) {
603
- return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox === 'function';
604
- };
605
- }();
606
- /**
607
- * Checks whether provided element is a document element (<html>).
608
- *
609
- * @param {Element} target - Element to be checked.
610
- * @returns {boolean}
611
- */
612
- function isDocumentElement(target) {
613
- return target === getWindowOf(target).document.documentElement;
614
- }
615
- /**
616
- * Calculates an appropriate content rectangle for provided html or svg element.
617
- *
618
- * @param {Element} target - Element content rectangle of which needs to be calculated.
619
- * @returns {DOMRectInit}
620
- */
621
- function getContentRect(target) {
622
- if (!isBrowser) {
623
- return emptyRect;
624
- }
625
- if (isSVGGraphicsElement(target)) {
626
- return getSVGContentRect(target);
627
- }
628
- return getHTMLElementContentRect(target);
629
- }
630
- /**
631
- * Creates rectangle with an interface of the DOMRectReadOnly.
632
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
633
- *
634
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
635
- * @returns {DOMRectReadOnly}
636
- */
637
- function createReadOnlyRect(_a) {
638
- var x = _a.x,
639
- y = _a.y,
640
- width = _a.width,
641
- height = _a.height;
642
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
643
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
644
- var rect = Object.create(Constr.prototype);
645
- // Rectangle's properties are not writable and non-enumerable.
646
- defineConfigurable(rect, {
647
- x: x,
648
- y: y,
649
- width: width,
650
- height: height,
651
- top: y,
652
- right: x + width,
653
- bottom: height + y,
654
- left: x
655
- });
656
- return rect;
657
- }
658
- /**
659
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
660
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
661
- *
662
- * @param {number} x - X coordinate.
663
- * @param {number} y - Y coordinate.
664
- * @param {number} width - Rectangle's width.
665
- * @param {number} height - Rectangle's height.
666
- * @returns {DOMRectInit}
667
- */
668
- function createRectInit(x, y, width, height) {
669
- return {
670
- x: x,
671
- y: y,
672
- width: width,
673
- height: height
674
- };
675
- }
676
-
677
- /**
678
- * Class that is responsible for computations of the content rectangle of
679
- * provided DOM element and for keeping track of it's changes.
680
- */
681
- var ResizeObservation = /** @class */function () {
682
- /**
683
- * Creates an instance of ResizeObservation.
684
- *
685
- * @param {Element} target - Element to be observed.
686
- */
687
- function ResizeObservation(target) {
688
- /**
689
- * Broadcasted width of content rectangle.
690
- *
691
- * @type {number}
692
- */
693
- this.broadcastWidth = 0;
694
- /**
695
- * Broadcasted height of content rectangle.
696
- *
697
- * @type {number}
698
- */
699
- this.broadcastHeight = 0;
700
- /**
701
- * Reference to the last observed content rectangle.
702
- *
703
- * @private {DOMRectInit}
704
- */
705
- this.contentRect_ = createRectInit(0, 0, 0, 0);
706
- this.target = target;
707
- }
708
- /**
709
- * Updates content rectangle and tells whether it's width or height properties
710
- * have changed since the last broadcast.
711
- *
712
- * @returns {boolean}
713
- */
714
- ResizeObservation.prototype.isActive = function () {
715
- var rect = getContentRect(this.target);
716
- this.contentRect_ = rect;
717
- return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
718
- };
719
- /**
720
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
721
- * from the corresponding properties of the last observed content rectangle.
722
- *
723
- * @returns {DOMRectInit} Last observed content rectangle.
724
- */
725
- ResizeObservation.prototype.broadcastRect = function () {
726
- var rect = this.contentRect_;
727
- this.broadcastWidth = rect.width;
728
- this.broadcastHeight = rect.height;
729
- return rect;
730
- };
731
- return ResizeObservation;
732
- }();
733
- var ResizeObserverEntry = /** @class */function () {
734
- /**
735
- * Creates an instance of ResizeObserverEntry.
736
- *
737
- * @param {Element} target - Element that is being observed.
738
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
739
- */
740
- function ResizeObserverEntry(target, rectInit) {
741
- var contentRect = createReadOnlyRect(rectInit);
742
- // According to the specification following properties are not writable
743
- // and are also not enumerable in the native implementation.
744
- //
745
- // Property accessors are not being used as they'd require to define a
746
- // private WeakMap storage which may cause memory leaks in browsers that
747
- // don't support this type of collections.
748
- defineConfigurable(this, {
749
- target: target,
750
- contentRect: contentRect
751
- });
752
- }
753
- return ResizeObserverEntry;
754
- }();
755
- var ResizeObserverSPI = /** @class */function () {
756
- /**
757
- * Creates a new instance of ResizeObserver.
758
- *
759
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
760
- * when one of the observed elements changes it's content dimensions.
761
- * @param {ResizeObserverController} controller - Controller instance which
762
- * is responsible for the updates of observer.
763
- * @param {ResizeObserver} callbackCtx - Reference to the public
764
- * ResizeObserver instance which will be passed to callback function.
765
- */
766
- function ResizeObserverSPI(callback, controller, callbackCtx) {
767
- /**
768
- * Collection of resize observations that have detected changes in dimensions
769
- * of elements.
770
- *
771
- * @private {Array<ResizeObservation>}
772
- */
773
- this.activeObservations_ = [];
774
- /**
775
- * Registry of the ResizeObservation instances.
776
- *
777
- * @private {Map<Element, ResizeObservation>}
778
- */
779
- this.observations_ = new MapShim();
780
- if (typeof callback !== 'function') {
781
- throw new TypeError('The callback provided as parameter 1 is not a function.');
782
- }
783
- this.callback_ = callback;
784
- this.controller_ = controller;
785
- this.callbackCtx_ = callbackCtx;
786
- }
787
- /**
788
- * Starts observing provided element.
789
- *
790
- * @param {Element} target - Element to be observed.
791
- * @returns {void}
792
- */
793
- ResizeObserverSPI.prototype.observe = function (target) {
794
- if (!arguments.length) {
795
- throw new TypeError('1 argument required, but only 0 present.');
796
- }
797
- // Do nothing if current environment doesn't have the Element interface.
798
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
799
- return;
800
- }
801
- if (!(target instanceof getWindowOf(target).Element)) {
802
- throw new TypeError('parameter 1 is not of type "Element".');
803
- }
804
- var observations = this.observations_;
805
- // Do nothing if element is already being observed.
806
- if (observations.has(target)) {
807
- return;
808
- }
809
- observations.set(target, new ResizeObservation(target));
810
- this.controller_.addObserver(this);
811
- // Force the update of observations.
812
- this.controller_.refresh();
813
- };
814
- /**
815
- * Stops observing provided element.
816
- *
817
- * @param {Element} target - Element to stop observing.
818
- * @returns {void}
819
- */
820
- ResizeObserverSPI.prototype.unobserve = function (target) {
821
- if (!arguments.length) {
822
- throw new TypeError('1 argument required, but only 0 present.');
823
- }
824
- // Do nothing if current environment doesn't have the Element interface.
825
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
826
- return;
827
- }
828
- if (!(target instanceof getWindowOf(target).Element)) {
829
- throw new TypeError('parameter 1 is not of type "Element".');
830
- }
831
- var observations = this.observations_;
832
- // Do nothing if element is not being observed.
833
- if (!observations.has(target)) {
834
- return;
835
- }
836
- observations.delete(target);
837
- if (!observations.size) {
838
- this.controller_.removeObserver(this);
839
- }
840
- };
841
- /**
842
- * Stops observing all elements.
843
- *
844
- * @returns {void}
845
- */
846
- ResizeObserverSPI.prototype.disconnect = function () {
847
- this.clearActive();
848
- this.observations_.clear();
849
- this.controller_.removeObserver(this);
850
- };
851
- /**
852
- * Collects observation instances the associated element of which has changed
853
- * it's content rectangle.
854
- *
855
- * @returns {void}
856
- */
857
- ResizeObserverSPI.prototype.gatherActive = function () {
858
- var _this = this;
859
- this.clearActive();
860
- this.observations_.forEach(function (observation) {
861
- if (observation.isActive()) {
862
- _this.activeObservations_.push(observation);
863
- }
864
- });
865
- };
866
- /**
867
- * Invokes initial callback function with a list of ResizeObserverEntry
868
- * instances collected from active resize observations.
869
- *
870
- * @returns {void}
871
- */
872
- ResizeObserverSPI.prototype.broadcastActive = function () {
873
- // Do nothing if observer doesn't have active observations.
874
- if (!this.hasActive()) {
875
- return;
876
- }
877
- var ctx = this.callbackCtx_;
878
- // Create ResizeObserverEntry instance for every active observation.
879
- var entries = this.activeObservations_.map(function (observation) {
880
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
881
- });
882
- this.callback_.call(ctx, entries, ctx);
883
- this.clearActive();
884
- };
885
- /**
886
- * Clears the collection of active observations.
887
- *
888
- * @returns {void}
889
- */
890
- ResizeObserverSPI.prototype.clearActive = function () {
891
- this.activeObservations_.splice(0);
892
- };
893
- /**
894
- * Tells whether observer has active observations.
895
- *
896
- * @returns {boolean}
897
- */
898
- ResizeObserverSPI.prototype.hasActive = function () {
899
- return this.activeObservations_.length > 0;
900
- };
901
- return ResizeObserverSPI;
902
- }();
903
-
904
- // Registry of internal observers. If WeakMap is not available use current shim
905
- // for the Map collection as it has all required methods and because WeakMap
906
- // can't be fully polyfilled anyway.
907
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
908
- /**
909
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
910
- * exposing only those methods and properties that are defined in the spec.
911
- */
912
- var ResizeObserver = /** @class */function () {
913
- /**
914
- * Creates a new instance of ResizeObserver.
915
- *
916
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
917
- * dimensions of the observed elements change.
918
- */
919
- function ResizeObserver(callback) {
920
- if (!(this instanceof ResizeObserver)) {
921
- throw new TypeError('Cannot call a class as a function.');
922
- }
923
- if (!arguments.length) {
924
- throw new TypeError('1 argument required, but only 0 present.');
925
- }
926
- var controller = ResizeObserverController.getInstance();
927
- var observer = new ResizeObserverSPI(callback, controller, this);
928
- observers.set(this, observer);
929
- }
930
- return ResizeObserver;
931
- }();
932
- // Expose public methods of ResizeObserver.
933
- ['observe', 'unobserve', 'disconnect'].forEach(function (method) {
934
- ResizeObserver.prototype[method] = function () {
935
- var _a;
936
- return (_a = observers.get(this))[method].apply(_a, arguments);
937
- };
938
- });
939
- var index = function () {
940
- // Export existing implementation if available.
941
- if (typeof global$1.ResizeObserver !== 'undefined') {
942
- return global$1.ResizeObserver;
943
- }
944
- return ResizeObserver;
945
- }();
946
-
947
- export { index as default };
948
- //# sourceMappingURL=ResizeObserver.es.js.map