@revolist/revogrid 4.3.0-next.1 → 4.3.0-next.2

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 (460) hide show
  1. package/dist/cjs/debounce-525dd66c.js +580 -0
  2. package/dist/cjs/debounce-525dd66c.js.map +1 -0
  3. package/dist/{revo-grid/index-47a70d3b.js → cjs/index-aad39b7b.js} +223 -1494
  4. package/dist/cjs/index-aad39b7b.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +7 -0
  6. package/dist/cjs/index.cjs.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +27 -0
  8. package/dist/cjs/loader.cjs.js.map +1 -0
  9. package/dist/cjs/resize-observer-7f159b88.js +509 -0
  10. package/dist/cjs/resize-observer-7f159b88.js.map +1 -0
  11. package/dist/cjs/revo-grid.cjs.js +31 -0
  12. package/dist/cjs/revo-grid.cjs.js.map +1 -0
  13. package/dist/cjs/revo-grid_11.cjs.entry.js +28959 -0
  14. package/dist/cjs/revo-grid_11.cjs.entry.js.map +1 -0
  15. package/dist/cjs/revogr-clipboard.cjs.entry.js +128 -0
  16. package/dist/cjs/revogr-clipboard.cjs.entry.js.map +1 -0
  17. package/dist/cjs/revogr-filter-panel.cjs.entry.js +283 -0
  18. package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
  19. package/dist/collection/collection-manifest.json +25 -0
  20. package/dist/collection/components/button/button.d.ts +5 -0
  21. package/dist/collection/components/button/button.js +8 -0
  22. package/dist/collection/components/button/button.js.map +1 -0
  23. package/dist/collection/components/clipboard/revogr-clipboard.d.ts +82 -0
  24. package/dist/collection/components/clipboard/revogr-clipboard.js +389 -0
  25. package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
  26. package/dist/collection/components/data/cellRenderer.d.ts +8 -0
  27. package/dist/collection/components/data/cellRenderer.js +25 -0
  28. package/dist/collection/components/data/cellRenderer.js.map +1 -0
  29. package/dist/collection/components/data/columnService.d.ts +57 -0
  30. package/dist/{revo-grid/columnService-79a50236.js → collection/components/data/columnService.js} +9 -12
  31. package/dist/collection/components/data/columnService.js.map +1 -0
  32. package/dist/collection/components/data/revogr-data-style.css +135 -0
  33. package/dist/collection/components/data/revogr-data.d.ts +28 -0
  34. package/dist/collection/components/data/revogr-data.js +419 -0
  35. package/dist/collection/components/data/revogr-data.js.map +1 -0
  36. package/dist/collection/components/data/rowRenderer.d.ts +11 -0
  37. package/dist/collection/components/data/rowRenderer.js +10 -0
  38. package/dist/collection/components/data/rowRenderer.js.map +1 -0
  39. package/dist/collection/components/header/headerCellRenderer.d.ts +8 -0
  40. package/dist/collection/components/header/headerCellRenderer.js +28 -0
  41. package/dist/collection/components/header/headerCellRenderer.js.map +1 -0
  42. package/dist/collection/components/header/headerRenderer.d.ts +15 -0
  43. package/dist/collection/components/header/headerRenderer.js +47 -0
  44. package/dist/collection/components/header/headerRenderer.js.map +1 -0
  45. package/dist/collection/components/header/revogr-header-style.css +198 -0
  46. package/dist/collection/components/header/revogr-header.d.ts +25 -0
  47. package/dist/collection/components/header/revogr-header.js +367 -0
  48. package/dist/collection/components/header/revogr-header.js.map +1 -0
  49. package/dist/collection/components/order/orderRenderer.d.ts +28 -0
  50. package/dist/collection/components/order/orderRenderer.js +50 -0
  51. package/dist/collection/components/order/orderRenderer.js.map +1 -0
  52. package/dist/collection/components/order/revogr-order-editor.d.ts +44 -0
  53. package/dist/collection/components/order/revogr-order-editor.js +374 -0
  54. package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
  55. package/dist/collection/components/order/rowOrderService.d.ts +27 -0
  56. package/dist/collection/components/order/rowOrderService.js +72 -0
  57. package/dist/collection/components/order/rowOrderService.js.map +1 -0
  58. package/dist/collection/components/overlay/autofill.service.d.ts +66 -0
  59. package/dist/collection/components/overlay/autofill.service.js +196 -0
  60. package/dist/collection/components/overlay/autofill.service.js.map +1 -0
  61. package/dist/collection/components/overlay/clipboard.service.d.ts +24 -0
  62. package/dist/collection/components/overlay/clipboard.service.js +45 -0
  63. package/dist/collection/components/overlay/clipboard.service.js.map +1 -0
  64. package/dist/collection/components/overlay/editors/edit.utils.d.ts +1 -0
  65. package/dist/collection/components/overlay/editors/edit.utils.js +9 -0
  66. package/dist/collection/components/overlay/editors/edit.utils.js.map +1 -0
  67. package/dist/collection/components/overlay/editors/text.d.ts +19 -0
  68. package/dist/collection/components/overlay/editors/text.js +43 -0
  69. package/dist/collection/components/overlay/editors/text.js.map +1 -0
  70. package/dist/collection/components/overlay/keyboard.service.d.ts +34 -0
  71. package/dist/collection/components/overlay/keyboard.service.js +166 -0
  72. package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
  73. package/dist/collection/components/overlay/revogr-edit-style.css +86 -0
  74. package/dist/collection/components/overlay/revogr-edit.d.ts +30 -0
  75. package/dist/collection/components/overlay/revogr-edit.js +256 -0
  76. package/dist/collection/components/overlay/revogr-edit.js.map +1 -0
  77. package/dist/collection/components/overlay/revogr-overlay-selection.d.ts +111 -0
  78. package/dist/collection/components/overlay/revogr-overlay-selection.js +1045 -0
  79. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
  80. package/dist/collection/components/overlay/revogr-overlay-style.css +98 -0
  81. package/dist/collection/components/overlay/selection.utils.d.ts +36 -0
  82. package/dist/{revo-grid/selection.utils-10694685.js → collection/components/overlay/selection.utils.js} +10 -14
  83. package/dist/collection/components/overlay/selection.utils.js.map +1 -0
  84. package/dist/collection/components/revoGrid/grid.helpers.d.ts +17 -0
  85. package/dist/collection/components/revoGrid/grid.helpers.js +30 -0
  86. package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
  87. package/dist/collection/components/revoGrid/revo-grid-style.css +546 -0
  88. package/dist/collection/components/revoGrid/revo-grid.d.ts +472 -0
  89. package/dist/collection/components/revoGrid/revo-grid.js +2460 -0
  90. package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
  91. package/dist/collection/components/revoGrid/viewport.d.ts +19 -0
  92. package/dist/collection/components/revoGrid/viewport.helpers.d.ts +9 -0
  93. package/dist/collection/components/revoGrid/viewport.helpers.js +15 -0
  94. package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
  95. package/dist/collection/components/revoGrid/viewport.interfaces.d.ts +67 -0
  96. package/dist/collection/components/revoGrid/viewport.interfaces.js +2 -0
  97. package/dist/collection/components/revoGrid/viewport.interfaces.js.map +1 -0
  98. package/dist/collection/components/revoGrid/viewport.js +20 -0
  99. package/dist/collection/components/revoGrid/viewport.js.map +1 -0
  100. package/dist/collection/components/revoGrid/viewport.resize.service.d.ts +12 -0
  101. package/dist/collection/components/revoGrid/viewport.resize.service.js +25 -0
  102. package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
  103. package/dist/collection/components/revoGrid/viewport.scrolling.service.d.ts +23 -0
  104. package/dist/collection/components/revoGrid/viewport.scrolling.service.js +64 -0
  105. package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
  106. package/dist/collection/components/revoGrid/viewport.section.d.ts +28 -0
  107. package/dist/collection/components/revoGrid/viewport.section.js +28 -0
  108. package/dist/collection/components/revoGrid/viewport.section.js.map +1 -0
  109. package/dist/collection/components/revoGrid/viewport.service.d.ts +66 -0
  110. package/dist/collection/components/revoGrid/viewport.service.js +213 -0
  111. package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
  112. package/dist/collection/components/rowHeaders/revogr-row-headers.d.ts +20 -0
  113. package/dist/collection/components/rowHeaders/revogr-row-headers.js +244 -0
  114. package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
  115. package/dist/collection/components/rowHeaders/row-header-render.d.ts +9 -0
  116. package/dist/collection/components/rowHeaders/row-header-render.js +5 -0
  117. package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
  118. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +137 -0
  119. package/dist/collection/components/scroll/revogr-viewport-scroll.d.ts +95 -0
  120. package/dist/collection/components/scroll/revogr-viewport-scroll.js +427 -0
  121. package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
  122. package/dist/collection/components/scrollable/revogr-scroll-style.css +104 -0
  123. package/dist/collection/components/scrollable/revogr-scroll-virtual.d.ts +25 -0
  124. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +268 -0
  125. package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
  126. package/dist/collection/components/selectionFocus/revogr-focus-style.css +77 -0
  127. package/dist/collection/components/selectionFocus/revogr-focus.d.ts +26 -0
  128. package/dist/collection/components/selectionFocus/revogr-focus.js +293 -0
  129. package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
  130. package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +98 -0
  131. package/dist/collection/components/selectionTempRange/revogr-temp-range.d.ts +13 -0
  132. package/dist/collection/components/selectionTempRange/revogr-temp-range.js +150 -0
  133. package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
  134. package/dist/collection/components.d.ts +1155 -0
  135. package/dist/collection/global/global.d.ts +1 -0
  136. package/dist/{revo-grid/app-globals-ee9be360.js → collection/global/global.js} +3 -11
  137. package/dist/collection/global/global.js.map +1 -0
  138. package/dist/collection/index.d.ts +1 -0
  139. package/dist/collection/index.js +5 -0
  140. package/dist/collection/index.js.map +1 -0
  141. package/dist/collection/interfaces.d.ts +378 -0
  142. package/dist/collection/plugins/autoSizeColumn.d.ts +54 -0
  143. package/dist/collection/plugins/autoSizeColumn.js +234 -0
  144. package/dist/collection/plugins/autoSizeColumn.js.map +1 -0
  145. package/dist/collection/plugins/basePlugin.d.ts +58 -0
  146. package/dist/collection/plugins/basePlugin.js +103 -0
  147. package/dist/collection/plugins/basePlugin.js.map +1 -0
  148. package/dist/collection/plugins/dispatcher.d.ts +10 -0
  149. package/dist/{revo-grid/dispatcher-891af82e.js → collection/plugins/dispatcher.js} +3 -6
  150. package/dist/collection/plugins/dispatcher.js.map +1 -0
  151. package/dist/collection/plugins/export/csv.d.ts +9 -0
  152. package/dist/collection/plugins/export/csv.js +72 -0
  153. package/dist/collection/plugins/export/csv.js.map +1 -0
  154. package/dist/collection/plugins/export/export.plugin.d.ts +24 -0
  155. package/dist/collection/plugins/export/export.plugin.js +169 -0
  156. package/dist/collection/plugins/export/export.plugin.js.map +1 -0
  157. package/dist/collection/plugins/export/types.d.ts +23 -0
  158. package/dist/collection/plugins/export/types.js +2 -0
  159. package/dist/collection/plugins/export/types.js.map +1 -0
  160. package/dist/collection/plugins/filter/conditions/equal.d.ts +4 -0
  161. package/dist/collection/plugins/filter/conditions/equal.js +21 -0
  162. package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
  163. package/dist/collection/plugins/filter/conditions/number/greaterThan.d.ts +3 -0
  164. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +14 -0
  165. package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
  166. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +3 -0
  167. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +11 -0
  168. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
  169. package/dist/collection/plugins/filter/conditions/number/lessThan.d.ts +3 -0
  170. package/dist/collection/plugins/filter/conditions/number/lessThan.js +16 -0
  171. package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
  172. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.d.ts +3 -0
  173. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +11 -0
  174. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
  175. package/dist/collection/plugins/filter/conditions/set.d.ts +4 -0
  176. package/dist/collection/plugins/filter/conditions/set.js +7 -0
  177. package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
  178. package/dist/collection/plugins/filter/conditions/string/beginswith.d.ts +3 -0
  179. package/dist/collection/plugins/filter/conditions/string/beginswith.js +21 -0
  180. package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
  181. package/dist/collection/plugins/filter/conditions/string/contains.d.ts +4 -0
  182. package/dist/collection/plugins/filter/conditions/string/contains.js +25 -0
  183. package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
  184. package/dist/collection/plugins/filter/filter.button.d.ts +14 -0
  185. package/dist/collection/plugins/filter/filter.button.js +28 -0
  186. package/dist/collection/plugins/filter/filter.button.js.map +1 -0
  187. package/dist/collection/plugins/filter/filter.plugin.d.ts +73 -0
  188. package/dist/collection/plugins/filter/filter.plugin.js +283 -0
  189. package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
  190. package/dist/collection/plugins/filter/filter.pop.d.ts +68 -0
  191. package/dist/collection/plugins/filter/filter.pop.js +493 -0
  192. package/dist/collection/plugins/filter/filter.pop.js.map +1 -0
  193. package/dist/collection/plugins/filter/filter.service.d.ts +20 -0
  194. package/dist/collection/plugins/filter/filter.service.js +48 -0
  195. package/dist/collection/plugins/filter/filter.service.js.map +1 -0
  196. package/dist/collection/plugins/filter/filter.style.css +239 -0
  197. package/dist/collection/plugins/filter/filter.types.d.ts +8 -0
  198. package/dist/collection/plugins/filter/filter.types.js +2 -0
  199. package/dist/collection/plugins/filter/filter.types.js.map +1 -0
  200. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +16 -0
  201. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +34 -0
  202. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -0
  203. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.d.ts +13 -0
  204. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +40 -0
  205. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js.map +1 -0
  206. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +14 -0
  207. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +25 -0
  208. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js.map +1 -0
  209. package/dist/collection/plugins/groupingRow/grouping.const.d.ts +10 -0
  210. package/dist/collection/plugins/groupingRow/grouping.const.js +15 -0
  211. package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
  212. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.d.ts +15 -0
  213. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
  214. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
  215. package/dist/collection/plugins/groupingRow/grouping.row.plugin.d.ts +43 -0
  216. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +260 -0
  217. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
  218. package/dist/collection/plugins/groupingRow/grouping.row.renderer.d.ts +11 -0
  219. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +32 -0
  220. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
  221. package/dist/collection/plugins/groupingRow/grouping.row.types.d.ts +27 -0
  222. package/dist/collection/plugins/groupingRow/grouping.row.types.js +2 -0
  223. package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
  224. package/dist/collection/plugins/groupingRow/grouping.service.d.ts +26 -0
  225. package/dist/collection/plugins/groupingRow/grouping.service.js +123 -0
  226. package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
  227. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.d.ts +10 -0
  228. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +61 -0
  229. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
  230. package/dist/collection/plugins/moveColumn/columnDragPlugin.d.ts +54 -0
  231. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +164 -0
  232. package/dist/collection/plugins/moveColumn/columnDragPlugin.js.map +1 -0
  233. package/dist/collection/plugins/moveColumn/columnOrderHandler.d.ts +15 -0
  234. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +64 -0
  235. package/dist/collection/plugins/moveColumn/columnOrderHandler.js.map +1 -0
  236. package/dist/collection/plugins/plugin.types.d.ts +12 -0
  237. package/dist/collection/plugins/plugin.types.js +2 -0
  238. package/dist/collection/plugins/plugin.types.js.map +1 -0
  239. package/dist/collection/plugins/sorting/sorting.plugin.d.ts +32 -0
  240. package/dist/collection/plugins/sorting/sorting.plugin.js +187 -0
  241. package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
  242. package/dist/collection/plugins/sorting/sorting.sign.d.ts +8 -0
  243. package/dist/collection/plugins/sorting/sorting.sign.js +10 -0
  244. package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
  245. package/dist/collection/plugins/stretchPlugin.d.ts +29 -0
  246. package/dist/collection/plugins/stretchPlugin.js +94 -0
  247. package/dist/collection/plugins/stretchPlugin.js.map +1 -0
  248. package/dist/collection/services/cell.helpers.d.ts +2 -0
  249. package/dist/collection/services/cell.helpers.js +11 -0
  250. package/dist/collection/services/cell.helpers.js.map +1 -0
  251. package/dist/collection/services/column.data.provider.d.ts +37 -0
  252. package/dist/collection/services/column.data.provider.js +193 -0
  253. package/dist/collection/services/column.data.provider.js.map +1 -0
  254. package/dist/collection/services/data.provider.d.ts +28 -0
  255. package/dist/collection/services/data.provider.js +52 -0
  256. package/dist/collection/services/data.provider.js.map +1 -0
  257. package/dist/collection/services/dimension.provider.d.ts +67 -0
  258. package/dist/collection/services/dimension.provider.js +144 -0
  259. package/dist/collection/services/dimension.provider.js.map +1 -0
  260. package/dist/collection/services/localScrollService.d.ts +28 -0
  261. package/dist/{revo-grid/localScrollService-057c4933.js → collection/services/localScrollService.js} +3 -7
  262. package/dist/collection/services/localScrollService.js.map +1 -0
  263. package/dist/collection/services/resizable.directive.d.ts +55 -0
  264. package/dist/collection/services/resizable.directive.js +254 -0
  265. package/dist/collection/services/resizable.directive.js.map +1 -0
  266. package/dist/collection/services/selection.store.connector.d.ts +61 -0
  267. package/dist/collection/services/selection.store.connector.js +261 -0
  268. package/dist/collection/services/selection.store.connector.js.map +1 -0
  269. package/dist/collection/services/viewport.provider.d.ts +10 -0
  270. package/dist/collection/services/viewport.provider.js +18 -0
  271. package/dist/collection/services/viewport.provider.js.map +1 -0
  272. package/dist/collection/stencil-public-runtime.d.ts +1637 -0
  273. package/dist/collection/store/dataSource/data.proxy.d.ts +10 -0
  274. package/dist/collection/store/dataSource/data.proxy.js +38 -0
  275. package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
  276. package/dist/collection/store/dataSource/data.store.d.ts +62 -0
  277. package/dist/collection/store/dataSource/data.store.js +133 -0
  278. package/dist/collection/store/dataSource/data.store.js.map +1 -0
  279. package/dist/collection/store/dataSource/trimmed.plugin.d.ts +10 -0
  280. package/dist/collection/store/dataSource/trimmed.plugin.js +36 -0
  281. package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
  282. package/dist/collection/store/dimension/dimension.helpers.d.ts +27 -0
  283. package/dist/collection/store/dimension/dimension.helpers.js +105 -0
  284. package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
  285. package/dist/collection/store/dimension/dimension.store.d.ts +31 -0
  286. package/dist/collection/store/dimension/dimension.store.js +116 -0
  287. package/dist/collection/store/dimension/dimension.store.js.map +1 -0
  288. package/dist/collection/store/selection/selection.helpers.d.ts +8 -0
  289. package/dist/collection/store/selection/selection.helpers.js +57 -0
  290. package/dist/collection/store/selection/selection.helpers.js.map +1 -0
  291. package/dist/collection/store/selection/selection.store.d.ts +19 -0
  292. package/dist/collection/store/selection/selection.store.js +77 -0
  293. package/dist/collection/store/selection/selection.store.js.map +1 -0
  294. package/dist/collection/store/selection/selection.store.service.d.ts +18 -0
  295. package/dist/collection/store/selection/selection.store.service.js +39 -0
  296. package/dist/collection/store/selection/selection.store.service.js.map +1 -0
  297. package/dist/collection/store/storeTypes.d.ts +4 -0
  298. package/dist/collection/store/storeTypes.js +9 -0
  299. package/dist/collection/store/storeTypes.js.map +1 -0
  300. package/dist/collection/store/viewPort/viewport.helpers.d.ts +41 -0
  301. package/dist/{revo-grid/row-header-utils-7db8a61d.js → collection/store/viewPort/viewport.helpers.js} +11 -173
  302. package/dist/collection/store/viewPort/viewport.helpers.js.map +1 -0
  303. package/dist/collection/store/viewPort/viewport.store.d.ts +30 -0
  304. package/dist/collection/store/viewPort/viewport.store.js +158 -0
  305. package/dist/collection/store/viewPort/viewport.store.js.map +1 -0
  306. package/dist/collection/themeManager/theme.compact.d.ts +4 -0
  307. package/dist/collection/themeManager/theme.compact.js +9 -0
  308. package/dist/collection/themeManager/theme.compact.js.map +1 -0
  309. package/dist/collection/themeManager/theme.default.d.ts +4 -0
  310. package/dist/collection/themeManager/theme.default.js +9 -0
  311. package/dist/collection/themeManager/theme.default.js.map +1 -0
  312. package/dist/collection/themeManager/theme.material.d.ts +4 -0
  313. package/dist/collection/themeManager/theme.material.js +9 -0
  314. package/dist/collection/themeManager/theme.material.js.map +1 -0
  315. package/dist/collection/themeManager/themeService.d.ts +13 -0
  316. package/dist/{revo-grid/themeService-a0afd79d.js → collection/themeManager/themeService.js} +7 -25
  317. package/dist/collection/themeManager/themeService.js.map +1 -0
  318. package/dist/collection/utils/closestPolifill.d.ts +0 -0
  319. package/dist/collection/utils/closestPolifill.js +22 -0
  320. package/dist/collection/utils/closestPolifill.js.map +1 -0
  321. package/dist/collection/utils/consts.d.ts +21 -0
  322. package/dist/collection/utils/consts.js +25 -0
  323. package/dist/collection/utils/consts.js.map +1 -0
  324. package/dist/collection/utils/generateAlphabetHeader.d.ts +2 -0
  325. package/dist/collection/utils/generateAlphabetHeader.js +24 -0
  326. package/dist/collection/utils/generateAlphabetHeader.js.map +1 -0
  327. package/dist/collection/utils/index.d.ts +21 -0
  328. package/dist/{revo-grid/index-6e594032.js → collection/utils/index.js} +10 -14
  329. package/dist/collection/utils/index.js.map +1 -0
  330. package/dist/collection/utils/keyCodes.d.ts +70 -0
  331. package/dist/collection/utils/keyCodes.js +76 -0
  332. package/dist/collection/utils/keyCodes.js.map +1 -0
  333. package/dist/collection/utils/keyCodes.utils.d.ts +8 -0
  334. package/dist/collection/utils/keyCodes.utils.js +68 -0
  335. package/dist/collection/utils/keyCodes.utils.js.map +1 -0
  336. package/dist/collection/utils/platform.d.ts +4 -0
  337. package/dist/collection/utils/platform.js +9 -0
  338. package/dist/collection/utils/platform.js.map +1 -0
  339. package/dist/collection/utils/resizeObserver.d.ts +1 -0
  340. package/dist/collection/utils/resizeObserver.js +11 -0
  341. package/dist/collection/utils/resizeObserver.js.map +1 -0
  342. package/dist/collection/utils/row-header-utils.d.ts +2 -0
  343. package/dist/collection/utils/row-header-utils.js +8 -0
  344. package/dist/collection/utils/row-header-utils.js.map +1 -0
  345. package/dist/collection/utils/store.utils.d.ts +6 -0
  346. package/dist/collection/utils/store.utils.js +11 -0
  347. package/dist/collection/utils/store.utils.js.map +1 -0
  348. package/dist/collection/utilsExternal/generate-data.js +137 -0
  349. package/dist/esm/debounce-301fd4d2.js +563 -0
  350. package/dist/esm/debounce-301fd4d2.js.map +1 -0
  351. package/dist/esm/index-5e90b19b.js +2098 -0
  352. package/dist/esm/index-5e90b19b.js.map +1 -0
  353. package/dist/esm/index.js +5 -0
  354. package/dist/esm/index.js.map +1 -0
  355. package/dist/esm/loader.js +23 -0
  356. package/dist/esm/loader.js.map +1 -0
  357. package/dist/esm/polyfills/core-js.js +11 -0
  358. package/dist/esm/polyfills/css-shim.js +1 -0
  359. package/dist/esm/polyfills/dom.js +79 -0
  360. package/dist/esm/polyfills/es5-html-element.js +1 -0
  361. package/dist/esm/polyfills/index.js +34 -0
  362. package/dist/esm/polyfills/system.js +6 -0
  363. package/dist/esm/resize-observer-d817c4b6.js +505 -0
  364. package/dist/esm/resize-observer-d817c4b6.js.map +1 -0
  365. package/dist/esm/revo-grid.js +26 -0
  366. package/dist/esm/revo-grid.js.map +1 -0
  367. package/dist/{revo-grid/lodash-389086e0.js → esm/revo-grid_11.entry.js} +25759 -14034
  368. package/dist/esm/revo-grid_11.entry.js.map +1 -0
  369. package/dist/esm/revogr-clipboard.entry.js +124 -0
  370. package/dist/esm/revogr-clipboard.entry.js.map +1 -0
  371. package/dist/esm/revogr-filter-panel.entry.js +279 -0
  372. package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
  373. package/dist/index.cjs.js +1 -0
  374. package/dist/index.js +1 -0
  375. package/dist/loader/cdn.js +5 -0
  376. package/dist/loader/index.cjs.js +5 -0
  377. package/dist/loader/index.d.ts +21 -0
  378. package/dist/loader/index.es2017.js +5 -0
  379. package/dist/loader/index.js +6 -0
  380. package/dist/loader/package.json +11 -0
  381. package/dist/revo-grid/debounce-301fd4d2.js +5 -0
  382. package/dist/revo-grid/debounce-301fd4d2.js.map +1 -0
  383. package/dist/revo-grid/index-5e90b19b.js +6 -0
  384. package/dist/revo-grid/index-5e90b19b.js.map +1 -0
  385. package/dist/revo-grid/index.esm.js.map +1 -1
  386. package/dist/revo-grid/resize-observer-d817c4b6.js +1 -501
  387. package/dist/revo-grid/resize-observer-d817c4b6.js.map +1 -1
  388. package/dist/revo-grid/revo-grid.esm.js +1 -163
  389. package/dist/revo-grid/revo-grid.esm.js.map +1 -1
  390. package/dist/revo-grid/revo-grid_11.entry.js +5 -0
  391. package/dist/revo-grid/revo-grid_11.entry.js.map +1 -0
  392. package/dist/revo-grid/revogr-clipboard.entry.js +1 -120
  393. package/dist/revo-grid/revogr-clipboard.entry.js.map +1 -1
  394. package/dist/revo-grid/revogr-filter-panel.entry.js +1 -278
  395. package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
  396. package/package.json +3 -3
  397. package/dist/revo-grid/_baseIteratee-52562add.js +0 -2668
  398. package/dist/revo-grid/_baseIteratee-52562add.js.map +0 -1
  399. package/dist/revo-grid/app-globals-ee9be360.js.map +0 -1
  400. package/dist/revo-grid/columnService-79a50236.js.map +0 -1
  401. package/dist/revo-grid/consts-b226bf97.js +0 -28
  402. package/dist/revo-grid/consts-b226bf97.js.map +0 -1
  403. package/dist/revo-grid/css-shim-61a8447e.js +0 -9
  404. package/dist/revo-grid/css-shim-61a8447e.js.map +0 -1
  405. package/dist/revo-grid/data.store-0e38ccb7.js +0 -580
  406. package/dist/revo-grid/data.store-0e38ccb7.js.map +0 -1
  407. package/dist/revo-grid/debounce-d06a99bd.js +0 -219
  408. package/dist/revo-grid/debounce-d06a99bd.js.map +0 -1
  409. package/dist/revo-grid/dimension.helpers-7e83e69f.js +0 -506
  410. package/dist/revo-grid/dimension.helpers-7e83e69f.js.map +0 -1
  411. package/dist/revo-grid/dispatcher-891af82e.js.map +0 -1
  412. package/dist/revo-grid/dom-563ea995.js +0 -78
  413. package/dist/revo-grid/dom-563ea995.js.map +0 -1
  414. package/dist/revo-grid/filter.button-f5629892.js +0 -38
  415. package/dist/revo-grid/filter.button-f5629892.js.map +0 -1
  416. package/dist/revo-grid/index-47a70d3b.js.map +0 -1
  417. package/dist/revo-grid/index-6e594032.js.map +0 -1
  418. package/dist/revo-grid/isString-a2ca983f.js +0 -36
  419. package/dist/revo-grid/isString-a2ca983f.js.map +0 -1
  420. package/dist/revo-grid/isSymbol-d19dbf72.js +0 -249
  421. package/dist/revo-grid/isSymbol-d19dbf72.js.map +0 -1
  422. package/dist/revo-grid/keyCodes.utils-af18431b.js +0 -302
  423. package/dist/revo-grid/keyCodes.utils-af18431b.js.map +0 -1
  424. package/dist/revo-grid/localScrollService-057c4933.js.map +0 -1
  425. package/dist/revo-grid/lodash-389086e0.js.map +0 -1
  426. package/dist/revo-grid/revo-grid.entry.js +0 -3751
  427. package/dist/revo-grid/revo-grid.entry.js.map +0 -1
  428. package/dist/revo-grid/revogr-data.entry.js +0 -199
  429. package/dist/revo-grid/revogr-data.entry.js.map +0 -1
  430. package/dist/revo-grid/revogr-edit.entry.js +0 -159
  431. package/dist/revo-grid/revogr-edit.entry.js.map +0 -1
  432. package/dist/revo-grid/revogr-focus.entry.js +0 -73
  433. package/dist/revo-grid/revogr-focus.entry.js.map +0 -1
  434. package/dist/revo-grid/revogr-header.entry.js +0 -584
  435. package/dist/revo-grid/revogr-header.entry.js.map +0 -1
  436. package/dist/revo-grid/revogr-order-editor.entry.js +0 -177
  437. package/dist/revo-grid/revogr-order-editor.entry.js.map +0 -1
  438. package/dist/revo-grid/revogr-overlay-selection.entry.js +0 -796
  439. package/dist/revo-grid/revogr-overlay-selection.entry.js.map +0 -1
  440. package/dist/revo-grid/revogr-row-headers.entry.js +0 -77
  441. package/dist/revo-grid/revogr-row-headers.entry.js.map +0 -1
  442. package/dist/revo-grid/revogr-scroll-virtual.entry.js +0 -121
  443. package/dist/revo-grid/revogr-scroll-virtual.entry.js.map +0 -1
  444. package/dist/revo-grid/revogr-temp-range.entry.js +0 -74
  445. package/dist/revo-grid/revogr-temp-range.entry.js.map +0 -1
  446. package/dist/revo-grid/revogr-viewport-scroll.entry.js +0 -343
  447. package/dist/revo-grid/revogr-viewport-scroll.entry.js.map +0 -1
  448. package/dist/revo-grid/row-header-utils-7db8a61d.js.map +0 -1
  449. package/dist/revo-grid/selection.store.connector-cd5782c0.js +0 -519
  450. package/dist/revo-grid/selection.store.connector-cd5782c0.js.map +0 -1
  451. package/dist/revo-grid/selection.utils-10694685.js.map +0 -1
  452. package/dist/revo-grid/shadow-css-46a502f2.js +0 -392
  453. package/dist/revo-grid/shadow-css-46a502f2.js.map +0 -1
  454. package/dist/revo-grid/themeService-a0afd79d.js.map +0 -1
  455. package/dist/revo-grid/toInteger-10498de4.js +0 -109
  456. package/dist/revo-grid/toInteger-10498de4.js.map +0 -1
  457. package/dist/revo-grid/toNumber-991c58cc.js +0 -107
  458. package/dist/revo-grid/toNumber-991c58cc.js.map +0 -1
  459. package/dist/revo-grid/viewport.helpers-ac4e2468.js +0 -18
  460. package/dist/revo-grid/viewport.helpers-ac4e2468.js.map +0 -1
@@ -0,0 +1,580 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
4
+ 'use strict';
5
+
6
+ const index = require('./index-aad39b7b.js');
7
+
8
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
+
10
+ function createCommonjsModule(fn, basedir, module) {
11
+ return module = {
12
+ path: basedir,
13
+ exports: {},
14
+ require: function (path, base) {
15
+ return commonjsRequire();
16
+ }
17
+ }, fn(module, module.exports), module.exports;
18
+ }
19
+
20
+ function commonjsRequire () {
21
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
22
+ }
23
+
24
+ /** Detect free variable `global` from Node.js. */
25
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
26
+
27
+ var _freeGlobal = freeGlobal;
28
+
29
+ /** Detect free variable `self`. */
30
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
31
+
32
+ /** Used as a reference to the global object. */
33
+ var root = _freeGlobal || freeSelf || Function('return this')();
34
+
35
+ var _root = root;
36
+
37
+ /** Built-in value references. */
38
+ var Symbol = _root.Symbol;
39
+
40
+ var _Symbol = Symbol;
41
+
42
+ /** Used for built-in method references. */
43
+ var objectProto$1 = Object.prototype;
44
+
45
+ /** Used to check objects for own properties. */
46
+ var hasOwnProperty = objectProto$1.hasOwnProperty;
47
+
48
+ /**
49
+ * Used to resolve the
50
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
51
+ * of values.
52
+ */
53
+ var nativeObjectToString$1 = objectProto$1.toString;
54
+
55
+ /** Built-in value references. */
56
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
57
+
58
+ /**
59
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
60
+ *
61
+ * @private
62
+ * @param {*} value The value to query.
63
+ * @returns {string} Returns the raw `toStringTag`.
64
+ */
65
+ function getRawTag(value) {
66
+ var isOwn = hasOwnProperty.call(value, symToStringTag$1),
67
+ tag = value[symToStringTag$1];
68
+
69
+ try {
70
+ value[symToStringTag$1] = undefined;
71
+ var unmasked = true;
72
+ } catch (e) {}
73
+
74
+ var result = nativeObjectToString$1.call(value);
75
+ if (unmasked) {
76
+ if (isOwn) {
77
+ value[symToStringTag$1] = tag;
78
+ } else {
79
+ delete value[symToStringTag$1];
80
+ }
81
+ }
82
+ return result;
83
+ }
84
+
85
+ var _getRawTag = getRawTag;
86
+
87
+ /** Used for built-in method references. */
88
+ var objectProto = Object.prototype;
89
+
90
+ /**
91
+ * Used to resolve the
92
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
93
+ * of values.
94
+ */
95
+ var nativeObjectToString = objectProto.toString;
96
+
97
+ /**
98
+ * Converts `value` to a string using `Object.prototype.toString`.
99
+ *
100
+ * @private
101
+ * @param {*} value The value to convert.
102
+ * @returns {string} Returns the converted string.
103
+ */
104
+ function objectToString(value) {
105
+ return nativeObjectToString.call(value);
106
+ }
107
+
108
+ var _objectToString = objectToString;
109
+
110
+ /** `Object#toString` result references. */
111
+ var nullTag = '[object Null]',
112
+ undefinedTag = '[object Undefined]';
113
+
114
+ /** Built-in value references. */
115
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
116
+
117
+ /**
118
+ * The base implementation of `getTag` without fallbacks for buggy environments.
119
+ *
120
+ * @private
121
+ * @param {*} value The value to query.
122
+ * @returns {string} Returns the `toStringTag`.
123
+ */
124
+ function baseGetTag(value) {
125
+ if (value == null) {
126
+ return value === undefined ? undefinedTag : nullTag;
127
+ }
128
+ return (symToStringTag && symToStringTag in Object(value))
129
+ ? _getRawTag(value)
130
+ : _objectToString(value);
131
+ }
132
+
133
+ var _baseGetTag = baseGetTag;
134
+
135
+ /**
136
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
137
+ * and has a `typeof` result of "object".
138
+ *
139
+ * @static
140
+ * @memberOf _
141
+ * @since 4.0.0
142
+ * @category Lang
143
+ * @param {*} value The value to check.
144
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
145
+ * @example
146
+ *
147
+ * _.isObjectLike({});
148
+ * // => true
149
+ *
150
+ * _.isObjectLike([1, 2, 3]);
151
+ * // => true
152
+ *
153
+ * _.isObjectLike(_.noop);
154
+ * // => false
155
+ *
156
+ * _.isObjectLike(null);
157
+ * // => false
158
+ */
159
+ function isObjectLike(value) {
160
+ return value != null && typeof value == 'object';
161
+ }
162
+
163
+ var isObjectLike_1 = isObjectLike;
164
+
165
+ /**
166
+ * Checks if `value` is the
167
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
168
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
169
+ *
170
+ * @static
171
+ * @memberOf _
172
+ * @since 0.1.0
173
+ * @category Lang
174
+ * @param {*} value The value to check.
175
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
176
+ * @example
177
+ *
178
+ * _.isObject({});
179
+ * // => true
180
+ *
181
+ * _.isObject([1, 2, 3]);
182
+ * // => true
183
+ *
184
+ * _.isObject(_.noop);
185
+ * // => true
186
+ *
187
+ * _.isObject(null);
188
+ * // => false
189
+ */
190
+ function isObject(value) {
191
+ var type = typeof value;
192
+ return value != null && (type == 'object' || type == 'function');
193
+ }
194
+
195
+ var isObject_1 = isObject;
196
+
197
+ /** `Object#toString` result references. */
198
+ var symbolTag = '[object Symbol]';
199
+
200
+ /**
201
+ * Checks if `value` is classified as a `Symbol` primitive or object.
202
+ *
203
+ * @static
204
+ * @memberOf _
205
+ * @since 4.0.0
206
+ * @category Lang
207
+ * @param {*} value The value to check.
208
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
209
+ * @example
210
+ *
211
+ * _.isSymbol(Symbol.iterator);
212
+ * // => true
213
+ *
214
+ * _.isSymbol('abc');
215
+ * // => false
216
+ */
217
+ function isSymbol(value) {
218
+ return typeof value == 'symbol' ||
219
+ (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
220
+ }
221
+
222
+ var isSymbol_1 = isSymbol;
223
+
224
+ /** Used to match a single whitespace character. */
225
+ var reWhitespace = /\s/;
226
+
227
+ /**
228
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
229
+ * character of `string`.
230
+ *
231
+ * @private
232
+ * @param {string} string The string to inspect.
233
+ * @returns {number} Returns the index of the last non-whitespace character.
234
+ */
235
+ function trimmedEndIndex(string) {
236
+ var index = string.length;
237
+
238
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
239
+ return index;
240
+ }
241
+
242
+ var _trimmedEndIndex = trimmedEndIndex;
243
+
244
+ /** Used to match leading whitespace. */
245
+ var reTrimStart = /^\s+/;
246
+
247
+ /**
248
+ * The base implementation of `_.trim`.
249
+ *
250
+ * @private
251
+ * @param {string} string The string to trim.
252
+ * @returns {string} Returns the trimmed string.
253
+ */
254
+ function baseTrim(string) {
255
+ return string
256
+ ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
257
+ : string;
258
+ }
259
+
260
+ var _baseTrim = baseTrim;
261
+
262
+ /** Used as references for various `Number` constants. */
263
+ var NAN = 0 / 0;
264
+
265
+ /** Used to detect bad signed hexadecimal string values. */
266
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
267
+
268
+ /** Used to detect binary string values. */
269
+ var reIsBinary = /^0b[01]+$/i;
270
+
271
+ /** Used to detect octal string values. */
272
+ var reIsOctal = /^0o[0-7]+$/i;
273
+
274
+ /** Built-in method references without a dependency on `root`. */
275
+ var freeParseInt = parseInt;
276
+
277
+ /**
278
+ * Converts `value` to a number.
279
+ *
280
+ * @static
281
+ * @memberOf _
282
+ * @since 4.0.0
283
+ * @category Lang
284
+ * @param {*} value The value to process.
285
+ * @returns {number} Returns the number.
286
+ * @example
287
+ *
288
+ * _.toNumber(3.2);
289
+ * // => 3.2
290
+ *
291
+ * _.toNumber(Number.MIN_VALUE);
292
+ * // => 5e-324
293
+ *
294
+ * _.toNumber(Infinity);
295
+ * // => Infinity
296
+ *
297
+ * _.toNumber('3.2');
298
+ * // => 3.2
299
+ */
300
+ function toNumber(value) {
301
+ if (typeof value == 'number') {
302
+ return value;
303
+ }
304
+ if (isSymbol_1(value)) {
305
+ return NAN;
306
+ }
307
+ if (isObject_1(value)) {
308
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
309
+ value = isObject_1(other) ? (other + '') : other;
310
+ }
311
+ if (typeof value != 'string') {
312
+ return value === 0 ? value : +value;
313
+ }
314
+ value = _baseTrim(value);
315
+ var isBinary = reIsBinary.test(value);
316
+ return (isBinary || reIsOctal.test(value))
317
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
318
+ : (reIsBadHex.test(value) ? NAN : +value);
319
+ }
320
+
321
+ var toNumber_1 = toNumber;
322
+
323
+ const FILTER_BUTTON_CLASS = 'rv-filter';
324
+ const FILTER_BUTTON_ACTIVE = 'active';
325
+ const FILTER_PROP = 'hasFilter';
326
+ const AND_OR_BUTTON = 'and-or-button';
327
+ const TRASH_BUTTON = 'trash-button';
328
+ const FilterButton = ({ column }) => {
329
+ return (index.h("span", null,
330
+ index.h("button", { class: {
331
+ [FILTER_BUTTON_CLASS]: true,
332
+ [FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],
333
+ } },
334
+ index.h("svg", { class: "filter-img", viewBox: "0 0 64 64" },
335
+ index.h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
336
+ index.h("path", { d: "M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z", fill: "currentColor" }))))));
337
+ };
338
+ const TrashButton = () => {
339
+ return (index.h("div", { class: { [TRASH_BUTTON]: true } },
340
+ index.h("svg", { class: "trash-img", viewBox: "0 0 24 24" },
341
+ index.h("path", { fill: "currentColor", d: "M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" }))));
342
+ };
343
+ const AndOrButton = ({ isAnd }) => {
344
+ return index.h("button", { class: { [AND_OR_BUTTON]: true, 'light revo-button': true } }, isAnd ? 'and' : 'or');
345
+ };
346
+ function isFilterBtn(e) {
347
+ if (e.classList.contains(FILTER_BUTTON_CLASS)) {
348
+ return true;
349
+ }
350
+ return e === null || e === void 0 ? void 0 : e.closest(`.${FILTER_BUTTON_CLASS}`);
351
+ }
352
+
353
+ /**
354
+ * Gets the timestamp of the number of milliseconds that have elapsed since
355
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
356
+ *
357
+ * @static
358
+ * @memberOf _
359
+ * @since 2.4.0
360
+ * @category Date
361
+ * @returns {number} Returns the timestamp.
362
+ * @example
363
+ *
364
+ * _.defer(function(stamp) {
365
+ * console.log(_.now() - stamp);
366
+ * }, _.now());
367
+ * // => Logs the number of milliseconds it took for the deferred invocation.
368
+ */
369
+ var now = function() {
370
+ return _root.Date.now();
371
+ };
372
+
373
+ var now_1 = now;
374
+
375
+ /** Error message constants. */
376
+ var FUNC_ERROR_TEXT = 'Expected a function';
377
+
378
+ /* Built-in method references for those with the same name as other `lodash` methods. */
379
+ var nativeMax = Math.max,
380
+ nativeMin = Math.min;
381
+
382
+ /**
383
+ * Creates a debounced function that delays invoking `func` until after `wait`
384
+ * milliseconds have elapsed since the last time the debounced function was
385
+ * invoked. The debounced function comes with a `cancel` method to cancel
386
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
387
+ * Provide `options` to indicate whether `func` should be invoked on the
388
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
389
+ * with the last arguments provided to the debounced function. Subsequent
390
+ * calls to the debounced function return the result of the last `func`
391
+ * invocation.
392
+ *
393
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
394
+ * invoked on the trailing edge of the timeout only if the debounced function
395
+ * is invoked more than once during the `wait` timeout.
396
+ *
397
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
398
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
399
+ *
400
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
401
+ * for details over the differences between `_.debounce` and `_.throttle`.
402
+ *
403
+ * @static
404
+ * @memberOf _
405
+ * @since 0.1.0
406
+ * @category Function
407
+ * @param {Function} func The function to debounce.
408
+ * @param {number} [wait=0] The number of milliseconds to delay.
409
+ * @param {Object} [options={}] The options object.
410
+ * @param {boolean} [options.leading=false]
411
+ * Specify invoking on the leading edge of the timeout.
412
+ * @param {number} [options.maxWait]
413
+ * The maximum time `func` is allowed to be delayed before it's invoked.
414
+ * @param {boolean} [options.trailing=true]
415
+ * Specify invoking on the trailing edge of the timeout.
416
+ * @returns {Function} Returns the new debounced function.
417
+ * @example
418
+ *
419
+ * // Avoid costly calculations while the window size is in flux.
420
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
421
+ *
422
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
423
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
424
+ * 'leading': true,
425
+ * 'trailing': false
426
+ * }));
427
+ *
428
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
429
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
430
+ * var source = new EventSource('/stream');
431
+ * jQuery(source).on('message', debounced);
432
+ *
433
+ * // Cancel the trailing debounced invocation.
434
+ * jQuery(window).on('popstate', debounced.cancel);
435
+ */
436
+ function debounce(func, wait, options) {
437
+ var lastArgs,
438
+ lastThis,
439
+ maxWait,
440
+ result,
441
+ timerId,
442
+ lastCallTime,
443
+ lastInvokeTime = 0,
444
+ leading = false,
445
+ maxing = false,
446
+ trailing = true;
447
+
448
+ if (typeof func != 'function') {
449
+ throw new TypeError(FUNC_ERROR_TEXT);
450
+ }
451
+ wait = toNumber_1(wait) || 0;
452
+ if (isObject_1(options)) {
453
+ leading = !!options.leading;
454
+ maxing = 'maxWait' in options;
455
+ maxWait = maxing ? nativeMax(toNumber_1(options.maxWait) || 0, wait) : maxWait;
456
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
457
+ }
458
+
459
+ function invokeFunc(time) {
460
+ var args = lastArgs,
461
+ thisArg = lastThis;
462
+
463
+ lastArgs = lastThis = undefined;
464
+ lastInvokeTime = time;
465
+ result = func.apply(thisArg, args);
466
+ return result;
467
+ }
468
+
469
+ function leadingEdge(time) {
470
+ // Reset any `maxWait` timer.
471
+ lastInvokeTime = time;
472
+ // Start the timer for the trailing edge.
473
+ timerId = setTimeout(timerExpired, wait);
474
+ // Invoke the leading edge.
475
+ return leading ? invokeFunc(time) : result;
476
+ }
477
+
478
+ function remainingWait(time) {
479
+ var timeSinceLastCall = time - lastCallTime,
480
+ timeSinceLastInvoke = time - lastInvokeTime,
481
+ timeWaiting = wait - timeSinceLastCall;
482
+
483
+ return maxing
484
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
485
+ : timeWaiting;
486
+ }
487
+
488
+ function shouldInvoke(time) {
489
+ var timeSinceLastCall = time - lastCallTime,
490
+ timeSinceLastInvoke = time - lastInvokeTime;
491
+
492
+ // Either this is the first call, activity has stopped and we're at the
493
+ // trailing edge, the system time has gone backwards and we're treating
494
+ // it as the trailing edge, or we've hit the `maxWait` limit.
495
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
496
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
497
+ }
498
+
499
+ function timerExpired() {
500
+ var time = now_1();
501
+ if (shouldInvoke(time)) {
502
+ return trailingEdge(time);
503
+ }
504
+ // Restart the timer.
505
+ timerId = setTimeout(timerExpired, remainingWait(time));
506
+ }
507
+
508
+ function trailingEdge(time) {
509
+ timerId = undefined;
510
+
511
+ // Only invoke if we have `lastArgs` which means `func` has been
512
+ // debounced at least once.
513
+ if (trailing && lastArgs) {
514
+ return invokeFunc(time);
515
+ }
516
+ lastArgs = lastThis = undefined;
517
+ return result;
518
+ }
519
+
520
+ function cancel() {
521
+ if (timerId !== undefined) {
522
+ clearTimeout(timerId);
523
+ }
524
+ lastInvokeTime = 0;
525
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
526
+ }
527
+
528
+ function flush() {
529
+ return timerId === undefined ? result : trailingEdge(now_1());
530
+ }
531
+
532
+ function debounced() {
533
+ var time = now_1(),
534
+ isInvoking = shouldInvoke(time);
535
+
536
+ lastArgs = arguments;
537
+ lastThis = this;
538
+ lastCallTime = time;
539
+
540
+ if (isInvoking) {
541
+ if (timerId === undefined) {
542
+ return leadingEdge(lastCallTime);
543
+ }
544
+ if (maxing) {
545
+ // Handle invocations in a tight loop.
546
+ clearTimeout(timerId);
547
+ timerId = setTimeout(timerExpired, wait);
548
+ return invokeFunc(lastCallTime);
549
+ }
550
+ }
551
+ if (timerId === undefined) {
552
+ timerId = setTimeout(timerExpired, wait);
553
+ }
554
+ return result;
555
+ }
556
+ debounced.cancel = cancel;
557
+ debounced.flush = flush;
558
+ return debounced;
559
+ }
560
+
561
+ var debounce_1 = debounce;
562
+
563
+ exports.AndOrButton = AndOrButton;
564
+ exports.FILTER_PROP = FILTER_PROP;
565
+ exports.FilterButton = FilterButton;
566
+ exports.TrashButton = TrashButton;
567
+ exports._Symbol = _Symbol;
568
+ exports._baseGetTag = _baseGetTag;
569
+ exports._freeGlobal = _freeGlobal;
570
+ exports._root = _root;
571
+ exports.commonjsGlobal = commonjsGlobal;
572
+ exports.createCommonjsModule = createCommonjsModule;
573
+ exports.debounce_1 = debounce_1;
574
+ exports.isFilterBtn = isFilterBtn;
575
+ exports.isObjectLike_1 = isObjectLike_1;
576
+ exports.isObject_1 = isObject_1;
577
+ exports.isSymbol_1 = isSymbol_1;
578
+ exports.toNumber_1 = toNumber_1;
579
+
580
+ //# sourceMappingURL=debounce-525dd66c.js.map
@@ -0,0 +1 @@
1
+ {"file":"debounce-525dd66c.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA,IAAI,UAAU,GAAG,OAAOA,cAAM,IAAI,QAAQ,IAAIA,cAAM,IAAIA,cAAM,CAAC,MAAM,KAAK,MAAM,IAAIA,cAAM,CAAC;AAC3F;eACc,GAAG;;ACDjB;AACA,IAA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C,KAAK,GAAG,KAAK,CAAC;AAC1B,EAAE,OAAO,SAAS,CAAC;AACnB,CAAC;AACD;cACc,GAAG;;;;;;;;;;;;;;;;;;;","names":["global","freeGlobal","root","objectProto","nativeObjectToString","symToStringTag","Symbol","getRawTag","objectToString","isObjectLike","baseGetTag","trimmedEndIndex","isSymbol","isObject","baseTrim","h","toNumber","now"],"sources":["./node_modules/lodash/_freeGlobal.js","./node_modules/lodash/_root.js","./node_modules/lodash/_Symbol.js","./node_modules/lodash/_getRawTag.js","./node_modules/lodash/_objectToString.js","./node_modules/lodash/_baseGetTag.js","./node_modules/lodash/isObjectLike.js","./node_modules/lodash/isObject.js","./node_modules/lodash/isSymbol.js","./node_modules/lodash/_trimmedEndIndex.js","./node_modules/lodash/_baseTrim.js","./node_modules/lodash/toNumber.js","./src/plugins/filter/filter.button.tsx","./node_modules/lodash/now.js","./node_modules/lodash/debounce.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","import { h } from '@stencil/core';\nimport { RevoGrid } from '../../interfaces';\n\nexport const FILTER_BUTTON_CLASS = 'rv-filter';\nexport const FILTER_BUTTON_ACTIVE = 'active';\nexport const FILTER_PROP = 'hasFilter';\nexport const AND_OR_BUTTON = 'and-or-button';\nexport const TRASH_BUTTON = 'trash-button';\n\ntype Props = {\n column: RevoGrid.ColumnRegular;\n};\nexport const FilterButton = ({ column }: Props) => {\n return (\n <span>\n <button\n class={{\n [FILTER_BUTTON_CLASS]: true,\n [FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],\n }}\n >\n <svg class=\"filter-img\" viewBox=\"0 0 64 64\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <path d=\"M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z\" fill=\"currentColor\"></path>\n </g>\n </svg>\n </button>\n </span>\n );\n};\n\nexport const TrashButton = () => {\n return (\n <div class={{ [TRASH_BUTTON]: true }}>\n <svg class=\"trash-img\" viewBox=\"0 0 24 24\">\n <path fill=\"currentColor\" d=\"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z\" />\n </svg>\n </div>\n );\n};\nexport const AndOrButton = ({ isAnd }: any) => {\n return <button class={{ [AND_OR_BUTTON]: true, 'light revo-button': true }}>{isAnd ? 'and' : 'or'}</button>;\n};\n\nexport function isFilterBtn(e: HTMLElement) {\n if (e.classList.contains(FILTER_BUTTON_CLASS)) {\n return true;\n }\n return e?.closest(`.${FILTER_BUTTON_CLASS}`);\n}\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"version":3}