stimulus-library 0.7.3 → 0.8.0-beta

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 (356) hide show
  1. package/README.md +1 -1
  2. package/dist/controllers/ajax/async_block_controller.js +30 -0
  3. package/dist/controllers/ajax/{index.d.ts → index.js} +0 -1
  4. package/dist/controllers/ajax/lazy_block_controller.js +37 -0
  5. package/dist/controllers/ajax/load_block_controller.js +63 -0
  6. package/dist/controllers/ajax/poll_block_controller.js +35 -0
  7. package/dist/controllers/anchor_spy_controller.js +47 -0
  8. package/dist/controllers/back_link_controller.js +25 -0
  9. package/dist/controllers/clipboard_controller.js +35 -0
  10. package/dist/controllers/confirm_controller.js +33 -0
  11. package/dist/controllers/confirm_navigation_controller.js +29 -0
  12. package/dist/controllers/debug_controller.js +7 -0
  13. package/dist/controllers/disable_with_controller.js +66 -0
  14. package/dist/controllers/dismissable_controller.js +8 -0
  15. package/dist/controllers/element_save_controller.js +80 -0
  16. package/dist/controllers/empty_dom_controller.js +42 -0
  17. package/dist/controllers/equalize_controller.js +39 -0
  18. package/dist/controllers/forms/auto_submit_form_controller.js +62 -0
  19. package/dist/controllers/forms/autosize_controller.js +32 -0
  20. package/dist/controllers/forms/char_count_controller.js +37 -0
  21. package/dist/controllers/forms/checkbox_disable_inputs_controller.js +32 -0
  22. package/dist/controllers/forms/checkbox_enable_inputs_controller.js +32 -0
  23. package/dist/controllers/forms/checkbox_select_all_controller.js +35 -0
  24. package/dist/controllers/forms/checkbox_xor_controller.js +24 -0
  25. package/dist/controllers/forms/detect_dirty_controller.js +98 -0
  26. package/dist/controllers/forms/detect_dirty_form_controller.js +107 -0
  27. package/dist/controllers/forms/enable_inputs_controller.js +21 -0
  28. package/dist/controllers/forms/focus_steal_controller.js +28 -0
  29. package/dist/controllers/forms/form_rc_controller.js +47 -0
  30. package/dist/controllers/forms/form_save_controller.js +109 -0
  31. package/dist/controllers/forms/{index.d.ts → index.js} +0 -1
  32. package/dist/controllers/forms/limited_selection_checkboxes_controller.js +28 -0
  33. package/dist/controllers/forms/navigate_form_errors_controller.js +154 -0
  34. package/dist/controllers/forms/nested_form_controller.js +49 -0
  35. package/dist/controllers/forms/password_confirm_controller.js +26 -0
  36. package/dist/controllers/forms/password_peek_controller.js +21 -0
  37. package/dist/controllers/forms/remote_form_controller.js +26 -0
  38. package/dist/controllers/forms/sync_inputs_controller.js +67 -0
  39. package/dist/controllers/forms/value_warn_controller.js +45 -0
  40. package/dist/controllers/forms/word_count_controller.js +37 -0
  41. package/dist/controllers/{index.d.ts → index.js} +3 -1
  42. package/dist/controllers/media/fallback_image_controller.js +44 -0
  43. package/dist/controllers/media/{index.d.ts → index.js} +0 -1
  44. package/dist/controllers/media/lightbox_image_controller.js +71 -0
  45. package/dist/controllers/media/media_player_controller.js +31 -0
  46. package/dist/controllers/prefetch_controller.js +74 -0
  47. package/dist/controllers/print_button_controller.js +18 -0
  48. package/dist/controllers/responsive_iframe_controller.js +35 -0
  49. package/dist/controllers/scroll/{index.d.ts → index.js} +0 -1
  50. package/dist/controllers/scroll/scroll_container_controller.js +81 -0
  51. package/dist/controllers/scroll/scroll_into_focus_controller.js +20 -0
  52. package/dist/controllers/scroll/scroll_to_bottom_controller.js +37 -0
  53. package/dist/controllers/scroll/scroll_to_controller.js +22 -0
  54. package/dist/controllers/scroll/scroll_to_top_controller.js +37 -0
  55. package/dist/controllers/self_destruct_controller.js +11 -0
  56. package/dist/controllers/signal/events.js +12 -0
  57. package/dist/controllers/signal/expressions.js +54 -0
  58. package/dist/controllers/signal/{index.d.ts → index.js} +0 -1
  59. package/dist/controllers/signal/signal_action_controller.js +31 -0
  60. package/dist/controllers/signal/signal_dom_children_controller.js +40 -0
  61. package/dist/controllers/signal/signal_input_controller.js +36 -0
  62. package/dist/controllers/signal/signal_visibility_controller.js +44 -0
  63. package/dist/controllers/sticky_controller.js +44 -0
  64. package/dist/controllers/tables/{index.d.ts → index.js} +0 -1
  65. package/dist/controllers/tables/table_sort_controller.js +97 -0
  66. package/dist/controllers/tables/table_truncate_controller.js +81 -0
  67. package/dist/controllers/teleport_controller.js +48 -0
  68. package/dist/controllers/temporary_state_controller.js +65 -0
  69. package/dist/controllers/toggle_class_controller.js +115 -0
  70. package/dist/controllers/trix_modifier_controller.js +121 -0
  71. package/dist/controllers/turbo_frame_rc_controller.js +65 -0
  72. package/dist/controllers/turbo_frame_refresh_controller.js +32 -0
  73. package/dist/controllers/utility/alert_controller.js +7 -0
  74. package/dist/controllers/utility/fullscreen_controller.js +10 -0
  75. package/dist/controllers/utility/{index.d.ts → index.js} +0 -1
  76. package/dist/controllers/utility/intersection_controller.js +25 -0
  77. package/dist/controllers/utility/interval_controller.js +16 -0
  78. package/dist/controllers/utility/presence_controller.js +19 -0
  79. package/dist/controllers/utility/print_controller.js +7 -0
  80. package/dist/controllers/utility/timeout_controller.js +13 -0
  81. package/dist/controllers/utility/user_focus_controller.js +23 -0
  82. package/dist/controllers/visual/clock_controller.js +51 -0
  83. package/dist/controllers/visual/countdown_controller.js +116 -0
  84. package/dist/controllers/visual/duration_controller.js +79 -0
  85. package/dist/controllers/visual/{index.d.ts → index.js} +0 -1
  86. package/dist/controllers/visual/tabs_controller.js +79 -0
  87. package/dist/controllers/visual/time_distance_controller.js +50 -0
  88. package/dist/controllers/visual/tree_view_controller.js +92 -0
  89. package/dist/{index.d.ts → index.js} +3 -1
  90. package/dist/mixins/create_mixin.js +11 -0
  91. package/dist/mixins/{index.d.ts → index.js} +0 -1
  92. package/dist/mixins/install_class_methods.js +28 -0
  93. package/dist/mixins/use_click_outside.js +17 -0
  94. package/dist/mixins/use_event_bus.js +19 -0
  95. package/dist/mixins/use_event_listener.js +34 -0
  96. package/dist/mixins/use_fullscreen.js +42 -0
  97. package/dist/mixins/use_geolocation.js +62 -0
  98. package/dist/mixins/use_hover.js +29 -0
  99. package/dist/mixins/use_injected_html.js +37 -0
  100. package/dist/mixins/use_intersection.js +45 -0
  101. package/dist/mixins/use_interval.js +13 -0
  102. package/dist/mixins/use_localstorage.js +122 -0
  103. package/dist/mixins/use_mutation_observer.js +9 -0
  104. package/dist/mixins/use_temporary_content.js +38 -0
  105. package/dist/mixins/use_timeout.js +20 -0
  106. package/dist/mixins/use_trix_modifiers.js +71 -0
  107. package/dist/polyfills/string.replaceAll.js +13 -0
  108. package/dist/utilities/arrays.js +3 -0
  109. package/dist/utilities/base_controller.js +56 -0
  110. package/dist/utilities/elements.js +102 -0
  111. package/dist/utilities/ephemeral_controller.js +42 -0
  112. package/dist/utilities/event_bus.js +2 -0
  113. package/dist/utilities/events.js +10 -0
  114. package/dist/utilities/fetchRetry.js +22 -0
  115. package/dist/utilities/{index.d.ts → index.js} +0 -1
  116. package/dist/utilities/logging.js +82 -0
  117. package/dist/utilities/reactive.js +23 -0
  118. package/dist/utilities/request_submit.js +20 -0
  119. package/dist/utilities/scroll.js +89 -0
  120. package/dist/utilities/stimulus.js +13 -0
  121. package/dist/utilities/strings.js +5 -0
  122. package/dist/utilities/turbo.js +3 -0
  123. package/package.json +8 -18
  124. package/CHANGELOG.md +0 -499
  125. package/dist/controllers/ajax/async_block_controller.d.ts +0 -18
  126. package/dist/controllers/ajax/async_block_controller.d.ts.map +0 -1
  127. package/dist/controllers/ajax/index.d.ts.map +0 -1
  128. package/dist/controllers/ajax/lazy_block_controller.d.ts +0 -10
  129. package/dist/controllers/ajax/lazy_block_controller.d.ts.map +0 -1
  130. package/dist/controllers/ajax/load_block_controller.d.ts +0 -24
  131. package/dist/controllers/ajax/load_block_controller.d.ts.map +0 -1
  132. package/dist/controllers/ajax/poll_block_controller.d.ts +0 -16
  133. package/dist/controllers/ajax/poll_block_controller.d.ts.map +0 -1
  134. package/dist/controllers/anchor_spy_controller.d.ts +0 -21
  135. package/dist/controllers/anchor_spy_controller.d.ts.map +0 -1
  136. package/dist/controllers/back_link_controller.d.ts +0 -17
  137. package/dist/controllers/back_link_controller.d.ts.map +0 -1
  138. package/dist/controllers/clipboard_controller.d.ts +0 -19
  139. package/dist/controllers/clipboard_controller.d.ts.map +0 -1
  140. package/dist/controllers/confirm_controller.d.ts +0 -13
  141. package/dist/controllers/confirm_controller.d.ts.map +0 -1
  142. package/dist/controllers/confirm_navigation_controller.d.ts +0 -15
  143. package/dist/controllers/confirm_navigation_controller.d.ts.map +0 -1
  144. package/dist/controllers/debug_controller.d.ts +0 -7
  145. package/dist/controllers/debug_controller.d.ts.map +0 -1
  146. package/dist/controllers/disable_with_controller.d.ts +0 -20
  147. package/dist/controllers/disable_with_controller.d.ts.map +0 -1
  148. package/dist/controllers/dismissable_controller.d.ts +0 -7
  149. package/dist/controllers/dismissable_controller.d.ts.map +0 -1
  150. package/dist/controllers/element_save_controller.d.ts +0 -31
  151. package/dist/controllers/element_save_controller.d.ts.map +0 -1
  152. package/dist/controllers/empty_dom_controller.d.ts +0 -22
  153. package/dist/controllers/empty_dom_controller.d.ts.map +0 -1
  154. package/dist/controllers/forms/auto_submit_form_controller.d.ts +0 -23
  155. package/dist/controllers/forms/auto_submit_form_controller.d.ts.map +0 -1
  156. package/dist/controllers/forms/autosize_controller.d.ts +0 -9
  157. package/dist/controllers/forms/autosize_controller.d.ts.map +0 -1
  158. package/dist/controllers/forms/char_count_controller.d.ts +0 -21
  159. package/dist/controllers/forms/char_count_controller.d.ts.map +0 -1
  160. package/dist/controllers/forms/checkbox_disable_inputs_controller.d.ts +0 -17
  161. package/dist/controllers/forms/checkbox_disable_inputs_controller.d.ts.map +0 -1
  162. package/dist/controllers/forms/checkbox_enable_inputs_controller.d.ts +0 -17
  163. package/dist/controllers/forms/checkbox_enable_inputs_controller.d.ts.map +0 -1
  164. package/dist/controllers/forms/checkbox_select_all_controller.d.ts +0 -14
  165. package/dist/controllers/forms/checkbox_select_all_controller.d.ts.map +0 -1
  166. package/dist/controllers/forms/checkbox_xor_controller.d.ts +0 -9
  167. package/dist/controllers/forms/checkbox_xor_controller.d.ts.map +0 -1
  168. package/dist/controllers/forms/detect_dirty_controller.d.ts +0 -15
  169. package/dist/controllers/forms/detect_dirty_controller.d.ts.map +0 -1
  170. package/dist/controllers/forms/detect_dirty_form_controller.d.ts +0 -18
  171. package/dist/controllers/forms/detect_dirty_form_controller.d.ts.map +0 -1
  172. package/dist/controllers/forms/enable_inputs_controller.d.ts +0 -14
  173. package/dist/controllers/forms/enable_inputs_controller.d.ts.map +0 -1
  174. package/dist/controllers/forms/focus_steal_controller.d.ts +0 -12
  175. package/dist/controllers/forms/focus_steal_controller.d.ts.map +0 -1
  176. package/dist/controllers/forms/form_rc_controller.d.ts +0 -18
  177. package/dist/controllers/forms/form_rc_controller.d.ts.map +0 -1
  178. package/dist/controllers/forms/form_save_controller.d.ts +0 -32
  179. package/dist/controllers/forms/form_save_controller.d.ts.map +0 -1
  180. package/dist/controllers/forms/index.d.ts.map +0 -1
  181. package/dist/controllers/forms/limited_selection_checkboxes_controller.d.ts +0 -17
  182. package/dist/controllers/forms/limited_selection_checkboxes_controller.d.ts.map +0 -1
  183. package/dist/controllers/forms/navigate_form_errors_controller.d.ts +0 -41
  184. package/dist/controllers/forms/navigate_form_errors_controller.d.ts.map +0 -1
  185. package/dist/controllers/forms/nested_form_controller.d.ts +0 -22
  186. package/dist/controllers/forms/nested_form_controller.d.ts.map +0 -1
  187. package/dist/controllers/forms/password_confirm_controller.d.ts +0 -12
  188. package/dist/controllers/forms/password_confirm_controller.d.ts.map +0 -1
  189. package/dist/controllers/forms/password_peek_controller.d.ts +0 -9
  190. package/dist/controllers/forms/password_peek_controller.d.ts.map +0 -1
  191. package/dist/controllers/forms/remote_form_controller.d.ts +0 -14
  192. package/dist/controllers/forms/remote_form_controller.d.ts.map +0 -1
  193. package/dist/controllers/forms/sync_inputs_controller.d.ts +0 -20
  194. package/dist/controllers/forms/sync_inputs_controller.d.ts.map +0 -1
  195. package/dist/controllers/forms/value_warn_controller.d.ts +0 -31
  196. package/dist/controllers/forms/value_warn_controller.d.ts.map +0 -1
  197. package/dist/controllers/forms/word_count_controller.d.ts +0 -21
  198. package/dist/controllers/forms/word_count_controller.d.ts.map +0 -1
  199. package/dist/controllers/index.d.ts.map +0 -1
  200. package/dist/controllers/media/fallback_image_controller.d.ts +0 -20
  201. package/dist/controllers/media/fallback_image_controller.d.ts.map +0 -1
  202. package/dist/controllers/media/index.d.ts.map +0 -1
  203. package/dist/controllers/media/lightbox_image_controller.d.ts +0 -31
  204. package/dist/controllers/media/lightbox_image_controller.d.ts.map +0 -1
  205. package/dist/controllers/media/media_player_controller.d.ts +0 -10
  206. package/dist/controllers/media/media_player_controller.d.ts.map +0 -1
  207. package/dist/controllers/prefetch_controller.d.ts +0 -17
  208. package/dist/controllers/prefetch_controller.d.ts.map +0 -1
  209. package/dist/controllers/print_button_controller.d.ts +0 -8
  210. package/dist/controllers/print_button_controller.d.ts.map +0 -1
  211. package/dist/controllers/responsive_iframe_controller.d.ts +0 -17
  212. package/dist/controllers/responsive_iframe_controller.d.ts.map +0 -1
  213. package/dist/controllers/scroll/index.d.ts.map +0 -1
  214. package/dist/controllers/scroll/scroll_container_controller.d.ts +0 -22
  215. package/dist/controllers/scroll/scroll_container_controller.d.ts.map +0 -1
  216. package/dist/controllers/scroll/scroll_into_focus_controller.d.ts +0 -16
  217. package/dist/controllers/scroll/scroll_into_focus_controller.d.ts.map +0 -1
  218. package/dist/controllers/scroll/scroll_to_bottom_controller.d.ts +0 -12
  219. package/dist/controllers/scroll/scroll_to_bottom_controller.d.ts.map +0 -1
  220. package/dist/controllers/scroll/scroll_to_controller.d.ts +0 -18
  221. package/dist/controllers/scroll/scroll_to_controller.d.ts.map +0 -1
  222. package/dist/controllers/scroll/scroll_to_top_controller.d.ts +0 -12
  223. package/dist/controllers/scroll/scroll_to_top_controller.d.ts.map +0 -1
  224. package/dist/controllers/self_destruct_controller.d.ts +0 -9
  225. package/dist/controllers/self_destruct_controller.d.ts.map +0 -1
  226. package/dist/controllers/signal/events.d.ts +0 -5
  227. package/dist/controllers/signal/events.d.ts.map +0 -1
  228. package/dist/controllers/signal/expressions.d.ts +0 -2
  229. package/dist/controllers/signal/expressions.d.ts.map +0 -1
  230. package/dist/controllers/signal/index.d.ts.map +0 -1
  231. package/dist/controllers/signal/signal_action_controller.d.ts +0 -15
  232. package/dist/controllers/signal/signal_action_controller.d.ts.map +0 -1
  233. package/dist/controllers/signal/signal_dom_children_controller.d.ts +0 -17
  234. package/dist/controllers/signal/signal_dom_children_controller.d.ts.map +0 -1
  235. package/dist/controllers/signal/signal_input_controller.d.ts +0 -20
  236. package/dist/controllers/signal/signal_input_controller.d.ts.map +0 -1
  237. package/dist/controllers/signal/signal_visibility_controller.d.ts +0 -18
  238. package/dist/controllers/signal/signal_visibility_controller.d.ts.map +0 -1
  239. package/dist/controllers/sticky_controller.d.ts +0 -16
  240. package/dist/controllers/sticky_controller.d.ts.map +0 -1
  241. package/dist/controllers/tables/index.d.ts.map +0 -1
  242. package/dist/controllers/tables/table_sort_controller.d.ts +0 -20
  243. package/dist/controllers/tables/table_sort_controller.d.ts.map +0 -1
  244. package/dist/controllers/tables/table_truncate_controller.d.ts +0 -26
  245. package/dist/controllers/tables/table_truncate_controller.d.ts.map +0 -1
  246. package/dist/controllers/teleport_controller.d.ts +0 -16
  247. package/dist/controllers/teleport_controller.d.ts.map +0 -1
  248. package/dist/controllers/temporary_state_controller.d.ts +0 -27
  249. package/dist/controllers/temporary_state_controller.d.ts.map +0 -1
  250. package/dist/controllers/toggle_class_controller.d.ts +0 -36
  251. package/dist/controllers/toggle_class_controller.d.ts.map +0 -1
  252. package/dist/controllers/trix_modifier_controller.d.ts +0 -88
  253. package/dist/controllers/trix_modifier_controller.d.ts.map +0 -1
  254. package/dist/controllers/turbo_frame_rc_controller.d.ts +0 -21
  255. package/dist/controllers/turbo_frame_rc_controller.d.ts.map +0 -1
  256. package/dist/controllers/turbo_frame_refresh_controller.d.ts +0 -14
  257. package/dist/controllers/turbo_frame_refresh_controller.d.ts.map +0 -1
  258. package/dist/controllers/utility/alert_controller.d.ts +0 -9
  259. package/dist/controllers/utility/alert_controller.d.ts.map +0 -1
  260. package/dist/controllers/utility/fullscreen_controller.d.ts +0 -8
  261. package/dist/controllers/utility/fullscreen_controller.d.ts.map +0 -1
  262. package/dist/controllers/utility/index.d.ts.map +0 -1
  263. package/dist/controllers/utility/intersection_controller.d.ts +0 -14
  264. package/dist/controllers/utility/intersection_controller.d.ts.map +0 -1
  265. package/dist/controllers/utility/interval_controller.d.ts +0 -11
  266. package/dist/controllers/utility/interval_controller.d.ts.map +0 -1
  267. package/dist/controllers/utility/presence_controller.d.ts +0 -14
  268. package/dist/controllers/utility/presence_controller.d.ts.map +0 -1
  269. package/dist/controllers/utility/print_controller.d.ts +0 -5
  270. package/dist/controllers/utility/print_controller.d.ts.map +0 -1
  271. package/dist/controllers/utility/timeout_controller.d.ts +0 -10
  272. package/dist/controllers/utility/timeout_controller.d.ts.map +0 -1
  273. package/dist/controllers/utility/user_focus_controller.d.ts +0 -9
  274. package/dist/controllers/utility/user_focus_controller.d.ts.map +0 -1
  275. package/dist/controllers/visual/clock_controller.d.ts +0 -16
  276. package/dist/controllers/visual/clock_controller.d.ts.map +0 -1
  277. package/dist/controllers/visual/countdown_controller.d.ts +0 -46
  278. package/dist/controllers/visual/countdown_controller.d.ts.map +0 -1
  279. package/dist/controllers/visual/duration_controller.d.ts +0 -26
  280. package/dist/controllers/visual/duration_controller.d.ts.map +0 -1
  281. package/dist/controllers/visual/index.d.ts.map +0 -1
  282. package/dist/controllers/visual/tabs_controller.d.ts +0 -30
  283. package/dist/controllers/visual/tabs_controller.d.ts.map +0 -1
  284. package/dist/controllers/visual/time_distance_controller.d.ts +0 -16
  285. package/dist/controllers/visual/time_distance_controller.d.ts.map +0 -1
  286. package/dist/controllers/visual/tree_view_controller.d.ts +0 -26
  287. package/dist/controllers/visual/tree_view_controller.d.ts.map +0 -1
  288. package/dist/index.d.ts.map +0 -1
  289. package/dist/mixins/create_mixin.d.ts +0 -3
  290. package/dist/mixins/create_mixin.d.ts.map +0 -1
  291. package/dist/mixins/index.d.ts.map +0 -1
  292. package/dist/mixins/install_class_methods.d.ts +0 -6
  293. package/dist/mixins/install_class_methods.d.ts.map +0 -1
  294. package/dist/mixins/use_click_outside.d.ts +0 -5
  295. package/dist/mixins/use_click_outside.d.ts.map +0 -1
  296. package/dist/mixins/use_event_bus.d.ts +0 -8
  297. package/dist/mixins/use_event_bus.d.ts.map +0 -1
  298. package/dist/mixins/use_event_listener.d.ts +0 -20
  299. package/dist/mixins/use_event_listener.d.ts.map +0 -1
  300. package/dist/mixins/use_fullscreen.d.ts +0 -9
  301. package/dist/mixins/use_fullscreen.d.ts.map +0 -1
  302. package/dist/mixins/use_geolocation.d.ts +0 -19
  303. package/dist/mixins/use_geolocation.d.ts.map +0 -1
  304. package/dist/mixins/use_hover.d.ts +0 -5
  305. package/dist/mixins/use_hover.d.ts.map +0 -1
  306. package/dist/mixins/use_injected_html.d.ts +0 -11
  307. package/dist/mixins/use_injected_html.d.ts.map +0 -1
  308. package/dist/mixins/use_intersection.d.ts +0 -14
  309. package/dist/mixins/use_intersection.d.ts.map +0 -1
  310. package/dist/mixins/use_interval.d.ts +0 -3
  311. package/dist/mixins/use_interval.d.ts.map +0 -1
  312. package/dist/mixins/use_localstorage.d.ts +0 -21
  313. package/dist/mixins/use_localstorage.d.ts.map +0 -1
  314. package/dist/mixins/use_mutation_observer.d.ts +0 -3
  315. package/dist/mixins/use_mutation_observer.d.ts.map +0 -1
  316. package/dist/mixins/use_temporary_content.d.ts +0 -6
  317. package/dist/mixins/use_temporary_content.d.ts.map +0 -1
  318. package/dist/mixins/use_timeout.d.ts +0 -3
  319. package/dist/mixins/use_timeout.d.ts.map +0 -1
  320. package/dist/mixins/use_trix_modifiers.d.ts +0 -11
  321. package/dist/mixins/use_trix_modifiers.d.ts.map +0 -1
  322. package/dist/stimulus-library.cjs.js +0 -2
  323. package/dist/stimulus-library.cjs.js.map +0 -1
  324. package/dist/stimulus-library.es.js +0 -4719
  325. package/dist/stimulus-library.es.js.map +0 -1
  326. package/dist/stimulus-library.umd.js +0 -2
  327. package/dist/stimulus-library.umd.js.map +0 -1
  328. package/dist/utilities/arrays.d.ts +0 -2
  329. package/dist/utilities/arrays.d.ts.map +0 -1
  330. package/dist/utilities/base_controller.d.ts +0 -11
  331. package/dist/utilities/base_controller.d.ts.map +0 -1
  332. package/dist/utilities/elements.d.ts +0 -49
  333. package/dist/utilities/elements.d.ts.map +0 -1
  334. package/dist/utilities/ephemeral_controller.d.ts +0 -6
  335. package/dist/utilities/ephemeral_controller.d.ts.map +0 -1
  336. package/dist/utilities/event_bus.d.ts +0 -4
  337. package/dist/utilities/event_bus.d.ts.map +0 -1
  338. package/dist/utilities/events.d.ts +0 -3
  339. package/dist/utilities/events.d.ts.map +0 -1
  340. package/dist/utilities/fetchRetry.d.ts +0 -2
  341. package/dist/utilities/fetchRetry.d.ts.map +0 -1
  342. package/dist/utilities/index.d.ts.map +0 -1
  343. package/dist/utilities/logging.d.ts +0 -6
  344. package/dist/utilities/logging.d.ts.map +0 -1
  345. package/dist/utilities/reactive.d.ts +0 -2
  346. package/dist/utilities/reactive.d.ts.map +0 -1
  347. package/dist/utilities/request_submit.d.ts +0 -3
  348. package/dist/utilities/request_submit.d.ts.map +0 -1
  349. package/dist/utilities/scroll.d.ts +0 -11
  350. package/dist/utilities/scroll.d.ts.map +0 -1
  351. package/dist/utilities/stimulus.d.ts +0 -3
  352. package/dist/utilities/stimulus.d.ts.map +0 -1
  353. package/dist/utilities/strings.d.ts +0 -2
  354. package/dist/utilities/strings.d.ts.map +0 -1
  355. package/dist/utilities/turbo.d.ts +0 -2
  356. package/dist/utilities/turbo.d.ts.map +0 -1
package/CHANGELOG.md DELETED
@@ -1,499 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [0.7.3](https://github.com/Sub-Xaero/stimulus-library/compare/v0.7.2...v0.7.3) (2022-02-16)
6
-
7
-
8
- ### Bug Fixes
9
-
10
- * **SignalVisibilityController:** New hide/show events added in 0.7.2 should have included the nameValue. Now fixed. ([00dd27b](https://github.com/Sub-Xaero/stimulus-library/commit/00dd27b79a62032c286d16ddff9494c4585963e1))
11
-
12
- ### [0.7.2](https://github.com/Sub-Xaero/stimulus-library/compare/v0.7.1...v0.7.2) (2022-02-16)
13
-
14
-
15
- ### Features
16
-
17
- * **Controllers:** New SignalDomChildrenController which emits signals when its children/descendants are added or removed ([115ab44](https://github.com/Sub-Xaero/stimulus-library/commit/115ab440a0a88d30a5667fe70a9b7e59c13b4a27))
18
- * **Debugging:** Display more and clearer information for event logging in debug mode ([b9d4b95](https://github.com/Sub-Xaero/stimulus-library/commit/b9d4b95306a0536b1d2ef8ece3a76a0fdff06ea7))
19
- * **SignalInputController:** Dispatch an event to the DOM when the value changes ([fccc822](https://github.com/Sub-Xaero/stimulus-library/commit/fccc82242993963ab85fa5de6a46c4f410f00f91))
20
- * **SignalVisibilityController:** Predicate and value information is now attached to the events fired to the DOM. Allows for easier debugging, and can be used in other controllers if desired. ([fc02e05](https://github.com/Sub-Xaero/stimulus-library/commit/fc02e05b109e7a430268a4be1a162c7060b16e23))
21
- * Add event dispatch to SignalVisibilityController that other controllers can use to trigger actions when the element is shown/hidden ([c62972b](https://github.com/Sub-Xaero/stimulus-library/commit/c62972b6a760a99f299a3b2adefe25786d80e2d7))
22
-
23
-
24
- ### Bug Fixes
25
-
26
- * **SignalInputController:** Add tiny 1ms debounce to event handlers so that change and input don't both fire for the same change ([bb69d6b](https://github.com/Sub-Xaero/stimulus-library/commit/bb69d6bdb479ec08e25e1ca45c7db81c4ead7311))
27
- * Don't duplicate Stimulus-3 built in logging. ([e2f64eb](https://github.com/Sub-Xaero/stimulus-library/commit/e2f64eb269251bd6bfdd82e64238b7a0a64cd55d))
28
- * Ensure that dispatched events always have the target in the details obj ([07aa806](https://github.com/Sub-Xaero/stimulus-library/commit/07aa80686579650242998c2376b807bb870b3f78))
29
- * Fix bug in SignalControllers expression parsing logic where expressions operating on the value "0" were not detected as valid expressions ([772ab33](https://github.com/Sub-Xaero/stimulus-library/commit/772ab331febeed8ff1ca06e4639612b2cc0c74bc))
30
-
31
- ### [0.7.1](https://github.com/Sub-Xaero/stimulus-library/compare/v0.7.0...v0.7.1) (2022-01-25)
32
-
33
-
34
- ### Bug Fixes
35
-
36
- * BaseController infinite loop when dispatching an event ([6618122](https://github.com/Sub-Xaero/stimulus-library/commit/6618122063238d2cf4adcab1197d7d8f69cf9f0a))
37
-
38
- ## [0.7.0](https://github.com/Sub-Xaero/stimulus-library/compare/v0.6.5...v0.7.0) (2022-01-20)
39
-
40
-
41
- ### ⚠ BREAKING CHANGES
42
-
43
- * Support for Stimulus 3.
44
- * AutoSubmitFormController - Removed default debounce interval
45
-
46
- ### Features
47
-
48
- * **Mixins:** New mixin useTemporaryContent for setting content of an element temporarily and restoring it either on demand or after a set time ([8f1d254](https://github.com/Sub-Xaero/stimulus-library/commit/8f1d254c78a1691b0e55ee4307030e37d2466789))
49
- * AutoSubmitFormController - Change eventModeValue to support multiple events. Backwards compatible with old syntax. ([efaa124](https://github.com/Sub-Xaero/stimulus-library/commit/efaa1242a3772f20c840703f357590fa60fbfd67))
50
- * AutoSubmitFormController - Removed default debounce interval ([7d0aa0b](https://github.com/Sub-Xaero/stimulus-library/commit/7d0aa0bf47b02b51c6575cdb54dfd35da78e36c2))
51
- * Renamed `this.dispatch` to `this.dispatchEvent` to avoid collision with Stimulus 3. Stimulus 3 only supports dispatch on the controller root element, while dispatchEvent can be fired on any element. ([e7868e7](https://github.com/Sub-Xaero/stimulus-library/commit/e7868e780e7d61c962a0eefb113782a0385b616b))
52
- * Support for Stimulus 3. ([60c84d8](https://github.com/Sub-Xaero/stimulus-library/commit/60c84d8ad46aff9745aaa2e25a5a79e6162fc2bf))
53
- * **Mixins:** New mixin UseLocalstorage ([c323e7f](https://github.com/Sub-Xaero/stimulus-library/commit/c323e7f3e16f56686a85b56eb97735a559f982f8))
54
-
55
-
56
- ### Bug Fixes
57
-
58
- * Exclude Trix/ActionText editors from AutoSubmitFormController, fixes Trix hyperlink dialogue submitting forms ([e0e2f52](https://github.com/Sub-Xaero/stimulus-library/commit/e0e2f52f50bc4191582ede7055c87a2e33380aab))
59
-
60
- ### [0.6.5](https://github.com/Sub-Xaero/stimulus-library/compare/v0.6.4...v0.6.5) (2021-12-06)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * TableSortController - data-sort="false" property for preventing sort should be data-sortable="false" to avoid shadowing dataset property used internally to track current state of column ([cbcadb4](https://github.com/Sub-Xaero/stimulus-library/commit/cbcadb45ce0fbabfb2ea13da61cfe380777ffd11))
66
-
67
- ### [0.6.4](https://github.com/Sub-Xaero/stimulus-library/compare/v0.6.3...v0.6.4) (2021-12-06)
68
-
69
-
70
- ### Features
71
-
72
- * TableSortController - Allow columns to be ignored when data-sort="false" is specified. ([8e71844](https://github.com/Sub-Xaero/stimulus-library/commit/8e71844d3d650f838eb49a0717a28c2c40068165))
73
- * **Mixins:** useGeolocation - A mixin to enable a controller to subscribe to a device's location updates ([47d485d](https://github.com/Sub-Xaero/stimulus-library/commit/47d485d04bd00d71e421390c2a9ea564f1d666c2))
74
- * Improvements to DetectDirtyController and DetectDirtyController to better handle changes in radio button groups ([c67bb05](https://github.com/Sub-Xaero/stimulus-library/commit/c67bb05f5200365d5a701dc7420daeadc916b201))
75
- * New controller SignalActionController - A controller that receives value change updates from SignalInputController and can fire actions on other controllers. ([06df0c0](https://github.com/Sub-Xaero/stimulus-library/commit/06df0c02d5f5a04038dc0c5fe9791ce573c86708))
76
- * SignalInputController now works as expected on radio button groups. Add some extra functionality to ensure that values sync up when the SignalInputController connects before the SignalVisibilityControllers. Add a configurable debounceIntervalValue to SignalInputController ([018d5a8](https://github.com/Sub-Xaero/stimulus-library/commit/018d5a8b79ff724859ef632bccf8be13826d3ff6))
77
- * Throw an error in Signal controllers if the right-hand side of an expression is blank ([1d3eb68](https://github.com/Sub-Xaero/stimulus-library/commit/1d3eb6877bd154694ba5d7c6e7d904019f3ec6e7))
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * **Mixins:** Fix case where default classes was ignored in Stimulus2 polyfill for plural fooClasses method ([d949875](https://github.com/Sub-Xaero/stimulus-library/commit/d9498753f6cbeed31b8204c9d582d1e8d22c4cc1))
83
- * Fix regex in ephemeral controller for whitespace ([8bd462f](https://github.com/Sub-Xaero/stimulus-library/commit/8bd462f4b58b0bd1311817887d54c72621108fb8))
84
- * Fix Signal expressions being stripped of spaces, breaking compatibility with text inputs. Added better handling of whitespace to compensate. ([b0a494e](https://github.com/Sub-Xaero/stimulus-library/commit/b0a494e019a818db8bc89c1e3b23939efcc6523f))
85
-
86
- ### [0.6.3](https://github.com/Sub-Xaero/stimulus-library/compare/v0.6.2...v0.6.3) (2021-11-19)
87
-
88
-
89
- ### Features
90
-
91
- * New pair of controllers SignalInputController and SignalVisibilityController. SignalInputController is a controller that broadcasts changes to an input's value, and SignalVisibilityController is a controller that can live anywhere in the DOM and react to named input events to hide or show content based on whether the value of the input matches simple predicates expressions i.e. `>3 && <10`. ([5e3db6c](https://github.com/Sub-Xaero/stimulus-library/commit/5e3db6c3c5fe6d7516a9b1f7a698767149c0eca7))
92
- * **Controllers:** New utility controller FullscreenController for toggling fullscreen for a page or element in response to an event/action ([cad6d46](https://github.com/Sub-Xaero/stimulus-library/commit/cad6d4613575cbec6bf079367124d729d73171f7))
93
- * **Mixins:** New mixin useFullscreen for enabling controllers to toggle fullscreen for a page or element ([533db5a](https://github.com/Sub-Xaero/stimulus-library/commit/533db5a5b83e3697b0356d05903a71afacc54b0e))
94
- * Add functionality to AsyncBlock, PollBlock, LazyBlock and LoadBlock controllers to allow them to retry fetching content a set number of times when network errors occur. ([3368392](https://github.com/Sub-Xaero/stimulus-library/commit/33683923ad3a47e93565b87a4f5a5fcb484b1f2f))
95
- * Add functionality to enable TrixModifierController to strip disallowed formatting from pasted text. ([acfa0a7](https://github.com/Sub-Xaero/stimulus-library/commit/acfa0a7f24a21017a9a8d5c6cbc27b14e6d0b922))
96
- * AlertController - Small utility controller to fire alerts() in response to stimulus actions ([ca23d76](https://github.com/Sub-Xaero/stimulus-library/commit/ca23d76f55de26aa3532a27cc828098a2d26d009))
97
- * AnchorSpyController - Add active and inactive classes to the controller element when the URL's hash matches, or doesnt match ([5ad8dbc](https://github.com/Sub-Xaero/stimulus-library/commit/5ad8dbc192dba8781e5a0513ab2ca7acf50415ca))
98
- * CheckboxSelectAllController - Only tick checkboxes that are not readonly and not disabled ([fe9d185](https://github.com/Sub-Xaero/stimulus-library/commit/fe9d185bbe278fa93e349cc83139fbeb5447727f))
99
- * CheckboxXORController - Controller to make a group of checkboxes behave like a radio button group where only one can be checked at a time. ([fb508bb](https://github.com/Sub-Xaero/stimulus-library/commit/fb508bb4ba8825c78fac00cc3c484f46a0a26f26))
100
- * Controller for modifying ActionText/Trix behaviours. ([0d9c0ef](https://github.com/Sub-Xaero/stimulus-library/commit/0d9c0efa35d9f5fec8b3979fdc7b2ce868106246))
101
- * NavigateFormErrorsController - Add current class to the element/error that is currently targeted by the controller ([a5ac9eb](https://github.com/Sub-Xaero/stimulus-library/commit/a5ac9ebeee8d3b5c27ea2ce045cf2de771f10a4b))
102
- * **Mixins:** New mixins useCollectionEventListeners and useCollectionEventListener for adding event listeners to entire collections of elements ([f579b82](https://github.com/Sub-Xaero/stimulus-library/commit/f579b825397555f55aa8dd086541493a96bc80a2))
103
-
104
-
105
- ### Bug Fixes
106
-
107
- * DurationController - Use new cleanup method for cleaning up event listeners early if errors occur during update ([e5682f8](https://github.com/Sub-Xaero/stimulus-library/commit/e5682f8f1ac59ab716e0ec8502438c22abb1aac8))
108
- * Fix to FormRCController sometimes not submitting when form could not be detected from submit event ([cd29f13](https://github.com/Sub-Xaero/stimulus-library/commit/cd29f13e9a47f1e3ca3689e21b0ca3f84bd731f3))
109
- * PresenceController - Fix event name not matching documentation ([0ab4011](https://github.com/Sub-Xaero/stimulus-library/commit/0ab40117e9289cc127b73f0010c90fede5f70fb0))
110
-
111
- ### [0.6.2](https://github.com/Sub-Xaero/stimulus-library/compare/v0.6.1...v0.6.2) (2021-11-03)
112
-
113
-
114
- ### Features
115
-
116
- * Export more internal utilities for HTML insertion and DOM manipulation ([0c314e0](https://github.com/Sub-Xaero/stimulus-library/commit/0c314e039bc23688e2bbb67e548285487137f446))
117
-
118
- ### [0.6.1](https://github.com/Sub-Xaero/stimulus-library/compare/v0.6.0...v0.6.1) (2021-11-03)
119
-
120
-
121
- ### Features
122
-
123
- * Export internal utilities as part of the library. Element manipulation, EventBus, scroll helpers, and form submission helpers ([d0b34d6](https://github.com/Sub-Xaero/stimulus-library/commit/d0b34d679b474a85f6831dd556015d91b58f4b1e))
124
-
125
- ## [0.6.0](https://github.com/Sub-Xaero/stimulus-library/compare/v0.5.0...v0.6.0) (2021-11-03)
126
-
127
-
128
- ### ⚠ BREAKING CHANGES
129
-
130
- * Rename EnableInputsController and DisableInputsController to be CheckboxEnableInputsController and CheckboxDisableInputsController, to better describe the purpose of the controllers
131
-
132
- ### Features
133
-
134
- * **Mixins:** Add mixins for injecting HTML that the controller needs, and auto-cleaning it up on disconnect ([77fe03c](https://github.com/Sub-Xaero/stimulus-library/commit/77fe03c29642e512b38ddc6f43182e88e41fb04d))
135
- * Add submitMode value to FormRCController to allow changing between calling .submit and .requestSubmit ([7c057f1](https://github.com/Sub-Xaero/stimulus-library/commit/7c057f1efef48f848e77736415b9dc82a87a8738))
136
- * AutosizeController - Fixed case when an autosize controller element starts life hidden, it will appear collased and incorrectly sized. It will now use an IntersectionObserver to resize on first appearance to the correct size. ([715d720](https://github.com/Sub-Xaero/stimulus-library/commit/715d720362b01611a3aea2388dab0fde1f4031af))
137
- * EnableInputsController - Controller that provides an action that can enable/disable inputs ([2d2a51d](https://github.com/Sub-Xaero/stimulus-library/commit/2d2a51d9573ae0b5d7cc5550650f7682fc681eb2))
138
- * Mixins - Created mixins useEventListener, useInterval, useTimeout, that can be called in controllers to install behaviours onto stimulus controllers and the behaviours will clean themselves up on disconnect. ([6cbf7e0](https://github.com/Sub-Xaero/stimulus-library/commit/6cbf7e0b3ecf1cfb022decca68854b69a61f558e))
139
- * Rename EnableInputsController and DisableInputsController to be CheckboxEnableInputsController and CheckboxDisableInputsController, to better describe the purpose of the controllers ([1488469](https://github.com/Sub-Xaero/stimulus-library/commit/1488469fb98f9a06b60162b73bf3a6618ed0ef66))
140
-
141
- ## [0.5.0](https://github.com/Sub-Xaero/stimulus-library/compare/v0.4.0...v0.5.0) (2021-11-02)
142
-
143
-
144
- ### ⚠ BREAKING CHANGES
145
-
146
- * AutoSubmitForm controller - Added new value to control the mode the controller uses to monitor inputs for events. Add new 'debounced' mode. Adds new debounceIntervalValue to allow users to customise the debounce interval in debounced mode. Changed modeValue to be submitModeValue to allow other modes like the new eventModeValue.
147
-
148
- ### Features
149
-
150
- * AutoSubmitForm controller - Added new value to control the mode the controller uses to monitor inputs for events. Add new 'debounced' mode. Adds new debounceIntervalValue to allow users to customise the debounce interval in debounced mode. Changed modeValue to be submitModeValue to allow other modes like the new eventModeValue. ([f437706](https://github.com/Sub-Xaero/stimulus-library/commit/f437706baaa7ec3fe4c28e3d576ee889aaa460a4))
151
- * FocusStealController - a controller to steal the users focus when a new input enters the page ([3cf7967](https://github.com/Sub-Xaero/stimulus-library/commit/3cf796755fe207ebf2336cc49faa6811d668f3df))
152
- * PresenceController - Added an optional name value which if provided will be included in the presence event name so that other controllers can react to specific presence events if there are multiple in a given scope. ([a069d7b](https://github.com/Sub-Xaero/stimulus-library/commit/a069d7bf7f16e13db431dce1e98a96768238b26b))
153
- * PrintController and PrintButtonController to enable buttons and actions to trigger the browser print dialogue ([ab95de7](https://github.com/Sub-Xaero/stimulus-library/commit/ab95de75d5c39db345099c30a013dae7a5b4c05d))
154
-
155
- ### [0.4.1](https://github.com/Sub-Xaero/stimulus-library/compare/v0.4.0...v0.4.1) (2021-10-09)
156
-
157
-
158
- ### Features
159
-
160
- * FocusStealController - a controller to steal the users focus when a new input enters the page ([3cf7967](https://github.com/Sub-Xaero/stimulus-library/commit/3cf796755fe207ebf2336cc49faa6811d668f3df))
161
-
162
- ## [0.4.0](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.19...v0.4.0) (2021-10-08)
163
-
164
-
165
- ### ⚠ BREAKING CHANGES
166
-
167
- * Change bundling setup to ViteJS. Outputs should be compatible, but releasing this as a breaking change for safety.
168
-
169
- ### Features
170
-
171
- * Add data attribute to mark inputs as ignored for AutoSubmitFormController ([bc64359](https://github.com/Sub-Xaero/stimulus-library/commit/bc643598a6422dfb1a454a0e9b2995a1c5ae554b))
172
- * Add the controller instance to the debug logging for actions and events ([0517f25](https://github.com/Sub-Xaero/stimulus-library/commit/0517f2529519bab83400f9d30b2fdac3be631bc8))
173
- * Allow FormRCController to submit a form found either via a CSS selector or via a target ([d7c4ed4](https://github.com/Sub-Xaero/stimulus-library/commit/d7c4ed4dd613071f510057ad3e98283c25132878))
174
- * Change bundling setup to ViteJS. Outputs should be compatible, but releasing this as a breaking change for safety. ([6c7ff8f](https://github.com/Sub-Xaero/stimulus-library/commit/6c7ff8f1b813526bf92f2360353d6a21bc303ccb))
175
-
176
- ### [0.3.19](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.18...v0.3.19) (2021-10-07)
177
-
178
-
179
- ### Features
180
-
181
- * Change implementation of FormRCController to use requestSubmit, and requestReset to be close as possible to emulating a native button click. ([eaf9f4c](https://github.com/Sub-Xaero/stimulus-library/commit/eaf9f4c7af6fc92fce676a34e14ecb11760ce22e))
182
-
183
- ### [0.3.18](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.17...v0.3.18) (2021-10-07)
184
-
185
-
186
- ### Features
187
-
188
- * RemoteFormController - Add an event for `remote-form:replace` to signify a replace has occurred ([c2663bb](https://github.com/Sub-Xaero/stimulus-library/commit/c2663bbb787b7980cb0b159b38d0aee68db7bae3))
189
-
190
- ### [0.3.17](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.16...v0.3.17) (2021-09-28)
191
-
192
-
193
- ### Bug Fixes
194
-
195
- * AutoSubmitFormController - Changes to the underlying implementation to help broaden browser compatibility. ([cdc8099](https://github.com/Sub-Xaero/stimulus-library/commit/cdc80995e147affc2814cfe5dc3d62163ddd4b46))
196
- * Include src in npm published package so that sourcemaps work ([1d03594](https://github.com/Sub-Xaero/stimulus-library/commit/1d035946bdc7518576e0c4da961cea9e701338e0))
197
-
198
- ### [0.3.16](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.15...v0.3.16) (2021-09-17)
199
-
200
-
201
- ### Features
202
-
203
- * Add RemoveController as an alias of DismissableController ([cae00eb](https://github.com/Sub-Xaero/stimulus-library/commit/cae00ebc4e811b84996b277e68df48c650cbca57))
204
- * BaseController now only builds a proxy to detect loggable events when in debug mode where logging happens ([1e44a63](https://github.com/Sub-Xaero/stimulus-library/commit/1e44a6314b5c6762a29477a55b6ecb5da5088e01))
205
- * New controllers LoadBlockController and PollBlockController. ([aa2598b](https://github.com/Sub-Xaero/stimulus-library/commit/aa2598bc95e0fd23299d6f6b9f0933a3ce25594e))
206
-
207
- ### [0.3.15](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.14...v0.3.15) (2021-08-13)
208
-
209
-
210
- ### Features
211
-
212
- * TreeViewController - A controller that handles nested `ul` and `ol` lists, and enabled them to be collapsed and opened. ([bd35e0a](https://github.com/Sub-Xaero/stimulus-library/commit/bd35e0a0da460b948198357bdeb6dc7134ae50d2))
213
-
214
- ### [0.3.14](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.13...v0.3.14) (2021-08-05)
215
-
216
-
217
- ### Bug Fixes
218
-
219
- * AutoSubmitFormController - don't trigger a synthetic 'submit' event when using `.requestSubmit()` as that fires it's own event unlike `.submit()` ([e40b09b](https://github.com/Sub-Xaero/stimulus-library/commit/e40b09bba136541a0ba9f4f7efc65abab7ece25b))
220
- * ConfirmNavigationController - Message value was incorrectly configured in a previous refactor. ([f316940](https://github.com/Sub-Xaero/stimulus-library/commit/f3169407b1b3d19ebdd8d84858633670fe7263bd))
221
-
222
- ### [0.3.13](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.12...v0.3.13) (2021-08-05)
223
-
224
-
225
- ### Features
226
-
227
- * AutoSubmitFormController - allow an optional `mode` config which determines whether to try submitting the form using `requestSubmit` or `submit` ([f62c8d0](https://github.com/Sub-Xaero/stimulus-library/commit/f62c8d02e8e55d90d8382efbf94d1358d6780282))
228
-
229
- ### [0.3.12](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.11...v0.3.12) (2021-07-19)
230
-
231
-
232
- ### Features
233
-
234
- * EmptyDOMController - There is now an optional `container` target which can be observed instead of the root controller element for emptiness. ([fbf785f](https://github.com/Sub-Xaero/stimulus-library/commit/fbf785f8d4914779b4a203fe213f13c1f0278488))
235
-
236
- ### [0.3.11](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.10...v0.3.11) (2021-07-15)
237
-
238
-
239
- ### Bug Fixes
240
-
241
- * NavigateFormErrorsController - only show "nextError" button when the error count is 1, if there is no "currentError" button ([f6aae19](https://github.com/Sub-Xaero/stimulus-library/commit/f6aae19f35d776fd11246ff697238ba5c03211f2))
242
-
243
- ### [0.3.10](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.9...v0.3.10) (2021-07-15)
244
-
245
-
246
- ### Bug Fixes
247
-
248
- * NavigateFormErrorsController - setting indexValue to the same value does not trigger indexValueChanged. Manually call toggleButtons on firstClick events. ([973225a](https://github.com/Sub-Xaero/stimulus-library/commit/973225ac49b1cfd12224d0f5f486d1b6433a97bb))
249
-
250
- ### [0.3.9](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.8...v0.3.9) (2021-07-15)
251
-
252
-
253
- ### Bug Fixes
254
-
255
- * NavigateFormErrorsController - add firstClick logic to toggleButtons check. Fixes bug where errorCount is 1, and both buttons are disabled on load. ([d94875e](https://github.com/Sub-Xaero/stimulus-library/commit/d94875e7beffa85749f2efa36e92fe775e19003d))
256
-
257
- ### [0.3.8](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.7...v0.3.8) (2021-07-07)
258
-
259
-
260
- ### Bug Fixes
261
-
262
- * NavigateFormErrorsController - The first click after the controller connects will just scroll to the first error, without advancing the count. Fixes bug where controller jumps straight to second error. ([df39c5d](https://github.com/Sub-Xaero/stimulus-library/commit/df39c5dae6c091bcdfb141e0feef2e7b889eedce))
263
-
264
- ### [0.3.7](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.6...v0.3.7) (2021-07-07)
265
-
266
-
267
- ### Features
268
-
269
- * ValueWarnController - A form controller to display a warning message (rather than an outright validation error), when the value of a numeric input exceeds a given min/max ([2357660](https://github.com/Sub-Xaero/stimulus-library/commit/2357660291acd5629a36b1bb45139f048cabe062))
270
-
271
-
272
- ### Bug Fixes
273
-
274
- * Fix indexing bug in NavigateFormErrorsController causing previous/next to not always fire. ([92d64e8](https://github.com/Sub-Xaero/stimulus-library/commit/92d64e844e516f6bb89f5c99f73c52d3184bfdf6))
275
-
276
- ### [0.3.6](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.5...v0.3.6) (2021-07-05)
277
-
278
-
279
- ### Features
280
-
281
- * Add optional `success` and `fail` classes to FallbackImageController ([2dfac90](https://github.com/Sub-Xaero/stimulus-library/commit/2dfac903617aa03015d7ab12b2ff6b2da13c12e3))
282
- * All controllers with `class` options now support multiple classes, as in utility-class framework environments. i.e. Tailwind ([51587bb](https://github.com/Sub-Xaero/stimulus-library/commit/51587bb08bd2c84c8d30c24c3fc95d63364aebc4))
283
-
284
- ### [0.3.5](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.4...v0.3.5) (2021-07-01)
285
-
286
- ### [0.3.4](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.3...v0.3.4) (2021-05-27)
287
-
288
-
289
- ### Bug Fixes
290
-
291
- * DisableWithController - Re-enable buttons when a turbo(links) visit triggers ([2895ed1](https://github.com/Sub-Xaero/stimulus-library/commit/2895ed103d4cbc61b28fa160d969d6e3833b2570))
292
-
293
- ### [0.3.3](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.2...v0.3.3) (2021-05-21)
294
-
295
-
296
- ### Bug Fixes
297
-
298
- * NavigateFormErrors - Clamp error index so that "current error" works even when index is out of bounds ([d09a66b](https://github.com/Sub-Xaero/stimulus-library/commit/d09a66b67afd5f87348c091c8277af5b0c17d0bd))
299
-
300
- ### [0.3.2](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.1...v0.3.2) (2021-05-21)
301
-
302
-
303
- ### Features
304
-
305
- * BackLinkController - A controller to enable links to navigate back through the user's history to previous pages, falling back to a default href. ([9d68ed6](https://github.com/Sub-Xaero/stimulus-library/commit/9d68ed66e1d8d72b517fe63093f7d532dab755db))
306
- * ClockController - A visual controller to display the current time ([ac122ae](https://github.com/Sub-Xaero/stimulus-library/commit/ac122ae9937d6f26d0e213abb087583d2df8256f))
307
- * DurationController - A controller to display the duration that has elapsed since a given timestamp. Similar to TimeDistanceController, but with numbers instead of words. ([b634a3c](https://github.com/Sub-Xaero/stimulus-library/commit/b634a3c5885471416e2ae5692e73a37f83ed5908))
308
- * Prefetch Controller - A controller to preload links when they come into view, or the user hovers over them. ([a27593f](https://github.com/Sub-Xaero/stimulus-library/commit/a27593f5edf552cce9e4d32581f9f6553e7baa2e))
309
- * ScrollContainerController - Controller to allow control over a scrollable container element ([e953769](https://github.com/Sub-Xaero/stimulus-library/commit/e953769643151cf52b9408f9d3fd01fead4a0443))
310
-
311
- ### [0.3.1](https://github.com/Sub-Xaero/stimulus-library/compare/v0.3.0...v0.3.1) (2021-05-14)
312
-
313
-
314
- ### Bug Fixes
315
-
316
- * TemporaryStateController - fix attributesValue check always throwing error ([6b12aa5](https://github.com/Sub-Xaero/stimulus-library/commit/6b12aa52b14797448821183835e2755c1b744224))
317
-
318
- ## [0.3.0](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.10...v0.3.0) (2021-05-13)
319
-
320
-
321
- ### ⚠ BREAKING CHANGES
322
-
323
- * Rename AppearanceController as UserFocusController and tweak the event names.
324
-
325
- ### Features
326
-
327
- * PresenceController - A utility controller to wire up other controllers when an element comes into or leaves the DOM ([#26](https://github.com/Sub-Xaero/stimulus-library/issues/26)) ([d3537d9](https://github.com/Sub-Xaero/stimulus-library/commit/d3537d9a9c0d666a2f795c34ab187b7b764d19b4))
328
- * Rename AppearanceController as UserFocusController and tweak the event names. ([0aa88ca](https://github.com/Sub-Xaero/stimulus-library/commit/0aa88cad56d937b2352df4d8b359465aa053daac))
329
- * TabsController - A presentational controller to enabled tabbed views ([db040e5](https://github.com/Sub-Xaero/stimulus-library/commit/db040e5925a607144b706c65cbe7598fae10eec3))
330
- * TemporaryStateController - A controller to temporarily apply a state to an attribute of an element, and restore it back after a given time. Closes [#22](https://github.com/Sub-Xaero/stimulus-library/issues/22) ([#28](https://github.com/Sub-Xaero/stimulus-library/issues/28)) ([427d0fa](https://github.com/Sub-Xaero/stimulus-library/commit/427d0fa795c7a4ca7361aa3b50234a502df236cc))
331
-
332
- ### [0.2.10](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.9...v0.2.10) (2021-05-04)
333
-
334
-
335
- ### Features
336
-
337
- * SyncInputsController - Inspired by Vue's v-bind and v-model. A controller to sync input vales to parts of the DOM, or the values of other inputs. ([9d5e847](https://github.com/Sub-Xaero/stimulus-library/commit/9d5e847904c354072714e3d0e80781b542119390))
338
-
339
-
340
- ### Bug Fixes
341
-
342
- * AutoSubmitFormController - allow controller to submit normal forms as well as UJS forms. ([e1866e2](https://github.com/Sub-Xaero/stimulus-library/commit/e1866e2afc7f5c8fae56a755665b0de7777e52bc))
343
- * ScrollTopController/ScrollBottomController - fix controller behaviour when inside an overflow container and mode is "nearest". And more consistent behaviour when mode is document. ([f36f9e6](https://github.com/Sub-Xaero/stimulus-library/commit/f36f9e6abb360e75160ed3631ae5786384c2393d))
344
-
345
- ### [0.2.9](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.8...v0.2.9) (2021-04-28)
346
-
347
-
348
- ### Features
349
-
350
- * FallbackImageController - update the controller to support failing when the placeholder also fails. Also works more consistently in race-conditions when the image has already loaded when the controller mounts. ([1fd682d](https://github.com/Sub-Xaero/stimulus-library/commit/1fd682dc7185891217e97da5f66e14afb4679ed9))
351
-
352
- ### [0.2.8](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.7...v0.2.8) (2021-04-26)
353
-
354
-
355
- ### Features
356
-
357
- * CountdownController - A controller to visualise a countdown to a date/time ([82c1bfe](https://github.com/Sub-Xaero/stimulus-library/commit/82c1bfe0ab168b864fb0d1c29f18ebda3fc00635))
358
- * NavigateFormErrorsController - A controller to enable smoothscroll navigation between form errors on a page ([#23](https://github.com/Sub-Xaero/stimulus-library/issues/23)) ([dcebaf1](https://github.com/Sub-Xaero/stimulus-library/commit/dcebaf19a6735ed4e46ccc104f6a9ee7ddb9e1ef))
359
- * TimeDistanceController - Controller that shows the distance in words between the current time and a specific UNIX timestamp. Updates intelligently according to time distance from current. ([#24](https://github.com/Sub-Xaero/stimulus-library/issues/24)) ([91269ea](https://github.com/Sub-Xaero/stimulus-library/commit/91269eabc911895420d4d6877bdf8e2a2c9cf470))
360
-
361
-
362
- ### Bug Fixes
363
-
364
- * CountdownController - When errors happen on tick, kill tick interval. ([112039c](https://github.com/Sub-Xaero/stimulus-library/commit/112039cde8960885c2caea90d9f75933830a2e51))
365
- * IntervalController - Throw exception when secondsValue is blank ([0a45825](https://github.com/Sub-Xaero/stimulus-library/commit/0a458255ef8483b3ebf4b6d038d1ef948ee62275))
366
-
367
- ### [0.2.7](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.5...v0.2.7) (2021-04-24)
368
-
369
-
370
- ### Features
371
-
372
- * Add event logging to debug logging ([594553c](https://github.com/Sub-Xaero/stimulus-library/commit/594553c9b612b6203e51f95e765648b3b12b7294))
373
- * AnchorSpyController - Controller to write anchors to the URL when actions happen, and detect when the page loads with an anchor (#), and wire up other controllers. i.e. To reopen accordions/tabs when the page opens with the correct anchor. Closes [#18](https://github.com/Sub-Xaero/stimulus-library/issues/18) ([#20](https://github.com/Sub-Xaero/stimulus-library/issues/20)) ([de0be82](https://github.com/Sub-Xaero/stimulus-library/commit/de0be82d17386393fcf0231bbf4af9f96b6d4f49))
374
- * BaseController - An extendable controller that provides common useful behaviours and properties for all controllers that use it as a base ([a12b101](https://github.com/Sub-Xaero/stimulus-library/commit/a12b101c36352e392ec63d9da0010248394cc1dd))
375
- * EphemeralController - an extendable base controller that can cleanly uninstall controllers/targets/classes/values from DOM elements ([34ebc58](https://github.com/Sub-Xaero/stimulus-library/commit/34ebc5837d741c65046339e034a3e2cbe89ca8db))
376
- * IntervalController - a utility controller that fires an event every x seconds to wire up to other controllers ([c31fc3b](https://github.com/Sub-Xaero/stimulus-library/commit/c31fc3b33f43f8710372a3784d6892c5be82d285))
377
- * MediaPlayerController - A thin stimulus controller wrapper around the native HTML5 video and audio tag controls ([#21](https://github.com/Sub-Xaero/stimulus-library/issues/21)) ([91bcf2b](https://github.com/Sub-Xaero/stimulus-library/commit/91bcf2b67a6218feff0dd39ff29883dfd4cd9cb2))
378
- * TimeoutController - a utility controller that fires an event after x seconds to wire up to other controllers ([9f0e0da](https://github.com/Sub-Xaero/stimulus-library/commit/9f0e0da8d97fb7809b1d6a564ba2d3861dbf1417))
379
-
380
-
381
- ### Bug Fixes
382
-
383
- * Missing sourceTarget in ClipboardController ([da222a7](https://github.com/Sub-Xaero/stimulus-library/commit/da222a7165dc24442bf59bb9d1e527c3e4cb11b1))
384
-
385
- ### [0.2.6](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.5...v0.2.6) (2021-04-23)
386
-
387
-
388
- ### Features
389
-
390
- * AnchorSpyController - Controller to write anchors to the URL when actions happen, and detect when the page loads with an anchor (#), and wire up other controllers. i.e. To reopen accordions/tabs when the page opens with the correct anchor. Closes [#18](https://github.com/Sub-Xaero/stimulus-library/issues/18) ([#20](https://github.com/Sub-Xaero/stimulus-library/issues/20)) ([de0be82](https://github.com/Sub-Xaero/stimulus-library/commit/de0be82d17386393fcf0231bbf4af9f96b6d4f49))
391
- * MediaPlayerController - A thin stimulus controller wrapper around the native HTML5 video and audio tag controls ([#21](https://github.com/Sub-Xaero/stimulus-library/issues/21)) ([91bcf2b](https://github.com/Sub-Xaero/stimulus-library/commit/91bcf2b67a6218feff0dd39ff29883dfd4cd9cb2))
392
-
393
-
394
- ### Bug Fixes
395
-
396
- * Missing sourceTarget in ClipboardController ([da222a7](https://github.com/Sub-Xaero/stimulus-library/commit/da222a7165dc24442bf59bb9d1e527c3e4cb11b1))
397
-
398
- ### [0.2.5](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.4...v0.2.5) (2021-04-21)
399
-
400
-
401
- ### Features
402
-
403
- * TableSortController - Allow sorting of tables by clicking on column headers ([2ba2560](https://github.com/Sub-Xaero/stimulus-library/commit/2ba25608f30412b1411423a172986d378bb55b04))
404
- * TableTruncateController - Allow the collapsing of long tables, down to a specified number of rows, and a button to expand the table to full-height. ([c121cd7](https://github.com/Sub-Xaero/stimulus-library/commit/c121cd7395f4bd67ee6cf398147e2c9d54222ce9))
405
-
406
- ### [0.2.4](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.3...v0.2.4) (2021-04-13)
407
-
408
-
409
- ### Bug Fixes
410
-
411
- * package.json pointing to incorrect Typescript output. Should be index.d.ts ([68e22d8](https://github.com/Sub-Xaero/stimulus-library/commit/68e22d80c5928648c947eb3f585bb6212c2a5b97))
412
-
413
- ### [0.2.3](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.1...v0.2.3) (2021-03-30)
414
-
415
-
416
- ### Features
417
-
418
- * DetectDirtyFormController - A form controller that detects the dirty state of a whole form and any of its children. ([e173932](https://github.com/Sub-Xaero/stimulus-library/commit/e17393239790945c55fa597dfb19884debf0418a))
419
- * Form RC Controller. Able to submit and reset a form from outside its child subtree. Closes [#7](https://github.com/Sub-Xaero/stimulus-library/issues/7) ([0fa1df0](https://github.com/Sub-Xaero/stimulus-library/commit/0fa1df0504114882a0e374611eac24e214302c51))
420
-
421
- ### [0.2.2](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.1...v0.2.2) (2021-03-26)
422
-
423
-
424
- ### Features
425
-
426
- * Form RC Controller. Able to submit and reset a form from outside its child subtree. Closes [#7](https://github.com/Sub-Xaero/stimulus-library/issues/7) ([0fa1df0](https://github.com/Sub-Xaero/stimulus-library/commit/0fa1df0504114882a0e374611eac24e214302c51))
427
-
428
- ### [0.2.1](https://github.com/Sub-Xaero/stimulus-library/compare/v0.2.0...v0.2.1) (2021-03-11)
429
-
430
-
431
- ### Features
432
-
433
- * ConfirmNavigationController - Support for Hotwire/Turbo and Turbolinks navigation events ([f698920](https://github.com/Sub-Xaero/stimulus-library/commit/f698920ad5fe0683cc826f0c4eefbb0a2360f1b2))
434
- * DisableWithController - Controller to disable an element temporarily to prevent double clicks and submissions. Emulates UJS DisableWith for Hotwire applications. ([#12](https://github.com/Sub-Xaero/stimulus-library/issues/12)) ([1d675b0](https://github.com/Sub-Xaero/stimulus-library/commit/1d675b0bd3b8a3c2042c0e754394ae07d71f96d5))
435
- * ElementSaveController - save the state of a single element to localstorage. Closes [#4](https://github.com/Sub-Xaero/stimulus-library/issues/4) ([#14](https://github.com/Sub-Xaero/stimulus-library/issues/14)) ([5b39deb](https://github.com/Sub-Xaero/stimulus-library/commit/5b39deb6dacc4acf9f062247e29c4a48084eea98))
436
- * RemoteFormController - Controller for handling UJS remote form responses ([fdf0e5f](https://github.com/Sub-Xaero/stimulus-library/commit/fdf0e5f73801650897b6e170729117b4e8b2ef6c))
437
- * TurboFrameRefreshController - a controller to either manually or periodically refresh the contents of a turboframe's src ([#13](https://github.com/Sub-Xaero/stimulus-library/issues/13)) ([f4dfd98](https://github.com/Sub-Xaero/stimulus-library/commit/f4dfd9895f365c3b0d8cb26b8e148dea82d7919a))
438
-
439
-
440
- ### Bug Fixes
441
-
442
- * Accidentally using type-guards for HTMLLinkElement instead of HTMLAnchorElement. ([d3f2be9](https://github.com/Sub-Xaero/stimulus-library/commit/d3f2be9f191471c9c6071257de731f0fd3510460))
443
-
444
- ## [0.2.0](https://github.com/Sub-Xaero/stimulus-library/compare/v0.1.15...v0.2.0) (2021-03-02)
445
-
446
-
447
- ### ⚠ BREAKING CHANGES
448
-
449
- * Remove lodash as a dependency
450
-
451
- ### Bug Fixes
452
-
453
- * Fix bug in LimitedSelectionCheckboxesController where maxValue was being ignored ([fc639f6](https://github.com/Sub-Xaero/stimulus-library/commit/fc639f66709056a65625cac07e6a0ceb9913fb15))
454
-
455
-
456
- * Remove lodash as a dependency ([d3990ea](https://github.com/Sub-Xaero/stimulus-library/commit/d3990eaf27a419086f4ddaed4e1aacda03535fab))
457
-
458
- ### [0.1.15](https://github.com/Sub-Xaero/stimulus-library/compare/v0.1.14...v0.1.15) (2021-03-01)
459
-
460
-
461
- ### Features
462
-
463
- * Add optional selector and error-message values to async-block and lazy-block controllers. Users can choose to extract sub-content from HTML responses, and provide their own error messages when fetch fails. ([1c3be1e](https://github.com/Sub-Xaero/stimulus-library/commit/1c3be1eb840fe4f3518a5cca7b760b11730d4d43))
464
-
465
- ### [0.1.14](https://github.com/Sub-Xaero/stimulus-library/compare/v0.1.13...v0.1.14) (2021-02-26)
466
-
467
-
468
- ### Bug Fixes
469
-
470
- * Fix NestedFormController - The ID generated by generateID needs to not have any decimal points. Math.random() gives a number between 0 and 1. Slice out decimal point ([684e073](https://github.com/Sub-Xaero/stimulus-library/commit/684e0736586d9834fee4305a392203284ecf8aa2))
471
-
472
- ### [0.1.13](https://github.com/Sub-Xaero/stimulus-library/compare/v0.1.12...v0.1.13) (2021-02-26)
473
-
474
-
475
- ### Bug Fixes
476
-
477
- * Fix bug in Nested Form Controller where new class API was being used without the dot "." prefix in the selector ([315b1cf](https://github.com/Sub-Xaero/stimulus-library/commit/315b1cfe9d69097d7abd262ac8583ef6669821ec))
478
-
479
- ### [0.1.12](https://github.com/Sub-Xaero/stimulus-library/compare/v0.1.11...v0.1.12) (2021-02-11)
480
-
481
-
482
- ### Features
483
-
484
- * AppearanceController - A utility controller to wire up Stimulus actions when the user focuses/minimises the page ([e15fe82](https://github.com/Sub-Xaero/stimulus-library/commit/e15fe8273aa00ddc263b087da152af698467e04a))
485
- * IntersectionController - A utility controller to wire up Stimulus actions when an element moves in/out of the viewport ([dbda74f](https://github.com/Sub-Xaero/stimulus-library/commit/dbda74f2ad32e2b5badb34dd6e390edf10d7c6bc))
486
-
487
- ### [0.1.11](https://github.com/Sub-Xaero/stimulus-library/compare/v0.1.10...v0.1.11) (2021-02-10)
488
-
489
-
490
- ### Features
491
-
492
- * StickyController - A controller to be able to style "sticky" elements depending on their "stuck" state. ([ce598eb](https://github.com/Sub-Xaero/stimulus-library/commit/ce598ebb50b588a639fd07adaed4c169852523dd))
493
-
494
- ### [0.1.10](https://github.com/Sub-Xaero/stimulus-library/compare/v0.1.9...v0.1.10) (2021-02-09)
495
-
496
-
497
- ### Bug Fixes
498
-
499
- * Fix bug in CheckboxSelectAllController preventing connect() from adding event listeners ([db577a9](https://github.com/Sub-Xaero/stimulus-library/commit/db577a9768f04b47d1484d13e41cfbb2714476d3))
@@ -1,18 +0,0 @@
1
- import { LoadBlockController } from "./load_block_controller";
2
- export declare class AsyncBlockController extends LoadBlockController {
3
- static targets: string[];
4
- static values: {
5
- endpoint: StringConstructor;
6
- errorMessage: StringConstructor;
7
- selector: StringConstructor;
8
- maxRetries: NumberConstructor;
9
- };
10
- readonly replaceTarget: HTMLElement;
11
- readonly hasReplaceTarget: boolean;
12
- readonly endpointValue: string;
13
- readonly hasErrorMessageValue: boolean;
14
- readonly errorMessageValue: string;
15
- get _errorMessage(): string;
16
- connect(): Promise<void>;
17
- }
18
- //# sourceMappingURL=async_block_controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"async_block_controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/ajax/async_block_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAE5D,qBAAa,oBAAqB,SAAQ,mBAAmB;IAE3D,MAAM,CAAC,OAAO,WAAe;IAC7B,MAAM,CAAC,MAAM;;;;;MAKX;IAEF,SAAiB,aAAa,EAAE,WAAW,CAAC;IAC5C,SAAiB,gBAAgB,EAAE,OAAO,CAAC;IAC3C,SAAiB,aAAa,EAAE,MAAM,CAAC;IAEvC,SAAiB,oBAAoB,EAAE,OAAO,CAAC;IAC/C,SAAiB,iBAAiB,EAAE,MAAM,CAAC;IAE3C,IAAI,aAAa,IAAI,MAAM,CAE1B;IAKK,OAAO;CAId"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controllers/ajax/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -1,10 +0,0 @@
1
- import { LoadBlockController } from "./load_block_controller";
2
- export declare class LazyBlockController extends LoadBlockController {
3
- observe: () => void;
4
- unobserve: () => void;
5
- isVisible: boolean;
6
- disappear: () => void;
7
- connect(): Promise<void>;
8
- appear(entry: IntersectionObserverEntry): Promise<void>;
9
- }
10
- //# sourceMappingURL=lazy_block_controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lazy_block_controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/ajax/lazy_block_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAG5D,qBAAa,mBAAoB,SAAQ,mBAAmB;IAElD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IAExB,OAAO;IAaP,MAAM,CAAC,KAAK,EAAE,yBAAyB;CAS9C"}
@@ -1,24 +0,0 @@
1
- import { BaseController } from "../../utilities/base_controller";
2
- export declare class LoadBlockController extends BaseController {
3
- static targets: string[];
4
- static values: {
5
- endpoint: StringConstructor;
6
- errorMessage: StringConstructor;
7
- selector: StringConstructor;
8
- maxRetries: NumberConstructor;
9
- };
10
- maxRetriesValue: number;
11
- readonly hasMaxRetriesValue: boolean;
12
- readonly replaceTarget: HTMLElement;
13
- readonly hasReplaceTarget: boolean;
14
- readonly endpointValue: string;
15
- readonly hasSelectorValue: boolean;
16
- readonly selectorValue: string;
17
- readonly hasErrorMessageValue: boolean;
18
- readonly errorMessageValue: string;
19
- get _errorMessage(): string;
20
- get _maxRetries(): number;
21
- connect(): void;
22
- loadContent(event?: Event | null): Promise<void>;
23
- }
24
- //# sourceMappingURL=load_block_controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load_block_controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/ajax/load_block_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,iCAAiC,CAAC;AAG/D,qBAAa,mBAAoB,SAAQ,cAAc;IAErD,MAAM,CAAC,OAAO,WAAe;IAC7B,MAAM,CAAC,MAAM;;;;;MAKX;IAEM,eAAe,EAAE,MAAM,CAAC;IAChC,SAAiB,kBAAkB,EAAE,OAAO,CAAC;IAE7C,SAAiB,aAAa,EAAE,WAAW,CAAC;IAC5C,SAAiB,gBAAgB,EAAE,OAAO,CAAC;IAC3C,SAAiB,aAAa,EAAE,MAAM,CAAC;IAEvC,SAAiB,gBAAgB,EAAE,OAAO,CAAC;IAC3C,SAAiB,aAAa,EAAE,MAAM,CAAC;IAEvC,SAAiB,oBAAoB,EAAE,OAAO,CAAC;IAC/C,SAAiB,iBAAiB,EAAE,MAAM,CAAC;IAE3C,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,OAAO;IAGD,WAAW,CAAC,KAAK,GAAE,KAAK,GAAG,IAAW;CAkC7C"}
@@ -1,16 +0,0 @@
1
- import { LoadBlockController } from "./load_block_controller";
2
- export declare class PollBlockController extends LoadBlockController {
3
- static targets: string[];
4
- static values: {
5
- endpoint: StringConstructor;
6
- errorMessage: StringConstructor;
7
- selector: StringConstructor;
8
- maxRetries: NumberConstructor;
9
- seconds: NumberConstructor;
10
- };
11
- readonly hasSecondsValue: boolean;
12
- readonly secondsValue: number;
13
- connect(): void;
14
- _timeout(): Promise<void>;
15
- }
16
- //# sourceMappingURL=poll_block_controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"poll_block_controller.d.ts","sourceRoot":"","sources":["../../../src/controllers/ajax/poll_block_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAG5D,qBAAa,mBAAoB,SAAQ,mBAAmB;IAE1D,MAAM,CAAC,OAAO,WAAe;IAC7B,MAAM,CAAC,MAAM;;;;;;MAMX;IAEF,SAAiB,eAAe,EAAE,OAAO,CAAC;IAC1C,SAAiB,YAAY,EAAE,MAAM,CAAC;IAEtC,OAAO;IAWD,QAAQ;CAIf"}
@@ -1,21 +0,0 @@
1
- import { BaseController } from "../utilities/base_controller";
2
- export declare class AnchorSpyController extends BaseController {
3
- static values: {
4
- key: StringConstructor;
5
- };
6
- static classes: string[];
7
- readonly keyValue: string;
8
- addActiveClasses: (el?: HTMLElement) => void;
9
- removeInactiveClasses: (el?: HTMLElement) => void;
10
- addInactiveClasses: (el?: HTMLElement) => void;
11
- removeActiveClasses: (el?: HTMLElement) => void;
12
- get defaultActiveClasses(): string[];
13
- get defaultInactiveClasses(): string[];
14
- get _key(): string;
15
- get _anchor(): string;
16
- set _anchor(value: string);
17
- connect(): void;
18
- write(event?: Event): void;
19
- private _checkAnchor;
20
- }
21
- //# sourceMappingURL=anchor_spy_controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anchor_spy_controller.d.ts","sourceRoot":"","sources":["../../src/controllers/anchor_spy_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAI5D,qBAAa,mBAAoB,SAAQ,cAAc;IACrD,MAAM,CAAC,MAAM;;MAAiB;IAC9B,MAAM,CAAC,OAAO,WAA0B;IAExC,SAAiB,QAAQ,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,kBAAkB,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAC/C,mBAAmB,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IAExD,IAAI,oBAAoB,IAAI,MAAM,EAAE,CAEnC;IAED,IAAI,sBAAsB,IAAI,MAAM,EAAE,CAErC;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAExB;IAED,OAAO;IAQP,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK;IAKnB,OAAO,CAAC,YAAY;CAWrB"}