@revolist/revogrid 3.6.6 → 3.6.8

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 (452) hide show
  1. package/custom-element/_baseIteratee.js +3 -1
  2. package/custom-element/_baseIteratee.js.map +1 -0
  3. package/custom-element/columnService.js +6 -4
  4. package/custom-element/columnService.js.map +1 -0
  5. package/custom-element/consts.js +3 -1
  6. package/custom-element/consts.js.map +1 -0
  7. package/custom-element/data.store.js +55 -33
  8. package/custom-element/data.store.js.map +1 -0
  9. package/custom-element/debounce.js +3 -1
  10. package/custom-element/debounce.js.map +1 -0
  11. package/custom-element/dimension.helpers.js +3 -1
  12. package/custom-element/dimension.helpers.js.map +1 -0
  13. package/custom-element/each.js +2 -0
  14. package/custom-element/each.js.map +1 -0
  15. package/custom-element/filter.button.js +2 -0
  16. package/custom-element/filter.button.js.map +1 -0
  17. package/custom-element/identity.js +2 -0
  18. package/custom-element/identity.js.map +1 -0
  19. package/custom-element/index.d.ts +9 -16
  20. package/custom-element/index.js +4 -15
  21. package/custom-element/index.js.map +1 -0
  22. package/custom-element/isSymbol.js +3 -1
  23. package/custom-element/isSymbol.js.map +1 -0
  24. package/custom-element/keys.js +3 -1
  25. package/custom-element/keys.js.map +1 -0
  26. package/custom-element/localScrollService.js +2 -0
  27. package/custom-element/localScrollService.js.map +1 -0
  28. package/custom-element/resize-observer.js +2 -0
  29. package/custom-element/resize-observer.js.map +1 -0
  30. package/custom-element/revo-grid.js +29 -154
  31. package/custom-element/revo-grid.js.map +1 -0
  32. package/custom-element/revogr-clipboard.js +4 -4
  33. package/custom-element/revogr-clipboard.js.map +1 -0
  34. package/custom-element/revogr-data.js +2 -0
  35. package/custom-element/revogr-data.js.map +1 -0
  36. package/custom-element/revogr-data2.js +14 -3
  37. package/custom-element/revogr-data2.js.map +1 -0
  38. package/custom-element/revogr-edit.js +2 -0
  39. package/custom-element/revogr-edit.js.map +1 -0
  40. package/custom-element/revogr-edit2.js +7 -3
  41. package/custom-element/revogr-edit2.js.map +1 -0
  42. package/custom-element/revogr-filter-panel.js +10 -6
  43. package/custom-element/revogr-filter-panel.js.map +1 -0
  44. package/custom-element/revogr-focus.js +2 -0
  45. package/custom-element/revogr-focus.js.map +1 -0
  46. package/custom-element/revogr-focus2.js +8 -2
  47. package/custom-element/revogr-focus2.js.map +1 -0
  48. package/custom-element/revogr-header.js +2 -0
  49. package/custom-element/revogr-header.js.map +1 -0
  50. package/custom-element/revogr-header2.js +11 -3
  51. package/custom-element/revogr-header2.js.map +1 -0
  52. package/custom-element/revogr-order-editor.js +2 -0
  53. package/custom-element/revogr-order-editor.js.map +1 -0
  54. package/custom-element/revogr-order-editor2.js +8 -3
  55. package/custom-element/revogr-order-editor2.js.map +1 -0
  56. package/custom-element/revogr-overlay-selection.js +2 -0
  57. package/custom-element/revogr-overlay-selection.js.map +1 -0
  58. package/custom-element/revogr-overlay-selection2.js +42 -40
  59. package/custom-element/revogr-overlay-selection2.js.map +1 -0
  60. package/custom-element/revogr-row-headers.js +2 -0
  61. package/custom-element/revogr-row-headers.js.map +1 -0
  62. package/custom-element/revogr-row-headers2.js +9 -2
  63. package/custom-element/revogr-row-headers2.js.map +1 -0
  64. package/custom-element/revogr-scroll-virtual.js +2 -0
  65. package/custom-element/revogr-scroll-virtual.js.map +1 -0
  66. package/custom-element/revogr-scroll-virtual2.js +5 -2
  67. package/custom-element/revogr-scroll-virtual2.js.map +1 -0
  68. package/custom-element/revogr-temp-range.js +2 -0
  69. package/custom-element/revogr-temp-range.js.map +1 -0
  70. package/custom-element/revogr-temp-range2.js +8 -4
  71. package/custom-element/revogr-temp-range2.js.map +1 -0
  72. package/custom-element/revogr-viewport-scroll.js +2 -0
  73. package/custom-element/revogr-viewport-scroll.js.map +1 -0
  74. package/custom-element/revogr-viewport-scroll2.js +6 -11
  75. package/custom-element/revogr-viewport-scroll2.js.map +1 -0
  76. package/custom-element/selection.utils.js +2 -0
  77. package/custom-element/selection.utils.js.map +1 -0
  78. package/custom-element/themeService.js +65 -0
  79. package/custom-element/themeService.js.map +1 -0
  80. package/custom-element/toInteger.js +2 -0
  81. package/custom-element/toInteger.js.map +1 -0
  82. package/custom-element/toNumber.js +3 -1
  83. package/custom-element/toNumber.js.map +1 -0
  84. package/custom-element/utils.js +2 -0
  85. package/custom-element/utils.js.map +1 -0
  86. package/dist/cjs/{debounce-6cea2774.js → debounce-a0628875.js} +3 -1
  87. package/dist/cjs/debounce-a0628875.js.map +1 -0
  88. package/dist/cjs/{index-cb904e00.js → index-c209f988.js} +667 -315
  89. package/dist/cjs/index-c209f988.js.map +1 -0
  90. package/dist/cjs/index.cjs.js +2 -0
  91. package/dist/cjs/index.cjs.js.map +1 -0
  92. package/dist/cjs/loader.cjs.js +6 -26
  93. package/dist/cjs/loader.cjs.js.map +1 -0
  94. package/dist/cjs/{resize-observer-bf327d6a.js → resize-observer-cc749e66.js} +2 -0
  95. package/dist/cjs/resize-observer-cc749e66.js.map +1 -0
  96. package/dist/cjs/revo-grid.cjs.js +9 -60
  97. package/dist/cjs/revo-grid.cjs.js.map +1 -0
  98. package/dist/cjs/revo-grid_11.cjs.entry.js +169 -180
  99. package/dist/cjs/revo-grid_11.cjs.entry.js.map +1 -0
  100. package/dist/cjs/revogr-clipboard.cjs.entry.js +4 -3
  101. package/dist/cjs/revogr-clipboard.cjs.entry.js.map +1 -0
  102. package/dist/cjs/revogr-filter-panel.cjs.entry.js +11 -6
  103. package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
  104. package/dist/collection/collection-manifest.json +16 -16
  105. package/dist/collection/components/button/button.js +2 -1
  106. package/dist/collection/components/button/button.js.map +1 -0
  107. package/dist/collection/components/clipboard/revogr-clipboard.js +86 -80
  108. package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
  109. package/dist/collection/components/data/cellRenderer.js +5 -5
  110. package/dist/collection/components/data/cellRenderer.js.map +1 -0
  111. package/dist/collection/components/data/columnService.js +9 -8
  112. package/dist/collection/components/data/columnService.js.map +1 -0
  113. package/dist/collection/components/data/revogr-data.js +258 -226
  114. package/dist/collection/components/data/revogr-data.js.map +1 -0
  115. package/dist/collection/components/data/rowRenderer.js +2 -1
  116. package/dist/collection/components/data/rowRenderer.js.map +1 -0
  117. package/dist/collection/components/header/headerCellRenderer.js +6 -7
  118. package/dist/collection/components/header/headerCellRenderer.js.map +1 -0
  119. package/dist/collection/components/header/headerRenderer.js +7 -8
  120. package/dist/collection/components/header/headerRenderer.js.map +1 -0
  121. package/dist/collection/components/header/revogr-header.js +259 -233
  122. package/dist/collection/components/header/revogr-header.js.map +1 -0
  123. package/dist/collection/components/order/orderRenderer.js +3 -6
  124. package/dist/collection/components/order/orderRenderer.js.map +1 -0
  125. package/dist/collection/components/order/revogr-order-editor.js +279 -252
  126. package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
  127. package/dist/collection/components/order/rowOrderService.js +2 -1
  128. package/dist/collection/components/order/rowOrderService.js.map +1 -0
  129. package/dist/collection/components/overlay/autofill.service.js +8 -7
  130. package/dist/collection/components/overlay/autofill.service.js.map +1 -0
  131. package/dist/collection/components/overlay/clipboard.service.js +4 -3
  132. package/dist/collection/components/overlay/clipboard.service.js.map +1 -0
  133. package/dist/collection/components/overlay/editors/edit.utils.js +2 -1
  134. package/dist/collection/components/overlay/editors/edit.utils.js.map +1 -0
  135. package/dist/collection/components/overlay/editors/text.js +4 -3
  136. package/dist/collection/components/overlay/editors/text.js.map +1 -0
  137. package/dist/collection/components/overlay/keyboard.service.js +6 -5
  138. package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
  139. package/dist/collection/components/overlay/revogr-edit.js +112 -96
  140. package/dist/collection/components/overlay/revogr-edit.js.map +1 -0
  141. package/dist/collection/components/overlay/revogr-overlay-selection.js +546 -482
  142. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
  143. package/dist/collection/components/overlay/selection.utils.js +2 -1
  144. package/dist/collection/components/overlay/selection.utils.js.map +1 -0
  145. package/dist/collection/components/revo-grid/revo-grid-style.css +7 -13
  146. package/dist/collection/components/revo-grid/revo-grid.js +1668 -1638
  147. package/dist/collection/components/revo-grid/revo-grid.js.map +1 -0
  148. package/dist/collection/components/revo-grid/viewport.helpers.js +1 -0
  149. package/dist/collection/components/revo-grid/viewport.helpers.js.map +1 -0
  150. package/dist/collection/components/revo-grid/viewport.interfaces.js +1 -3
  151. package/dist/collection/components/revo-grid/viewport.interfaces.js.map +1 -0
  152. package/dist/collection/components/revo-grid/viewport.js +4 -7
  153. package/dist/collection/components/revo-grid/viewport.js.map +1 -0
  154. package/dist/collection/components/revo-grid/viewport.resize.service.js +3 -2
  155. package/dist/collection/components/revo-grid/viewport.resize.service.js.map +1 -0
  156. package/dist/collection/components/revo-grid/viewport.scrolling.service.js +1 -0
  157. package/dist/collection/components/revo-grid/viewport.scrolling.service.js.map +1 -0
  158. package/dist/collection/components/revo-grid/viewport.section.js +5 -7
  159. package/dist/collection/components/revo-grid/viewport.section.js.map +1 -0
  160. package/dist/collection/components/revo-grid/viewport.service.js +7 -6
  161. package/dist/collection/components/revo-grid/viewport.service.js.map +1 -0
  162. package/dist/collection/components/rowHeaders/revogr-row-headers.js +161 -147
  163. package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
  164. package/dist/collection/components/rowHeaders/row-header-render.js +1 -0
  165. package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
  166. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +2 -4
  167. package/dist/collection/components/scroll/revogr-viewport-scroll.js +172 -168
  168. package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
  169. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +159 -137
  170. package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
  171. package/dist/collection/components/selection-focus/revogr-focus.js +153 -128
  172. package/dist/collection/components/selection-focus/revogr-focus.js.map +1 -0
  173. package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +1 -1
  174. package/dist/collection/components/selection-temp-range/revogr-temp-range.js +92 -77
  175. package/dist/collection/components/selection-temp-range/revogr-temp-range.js.map +1 -0
  176. package/dist/collection/global/global.js +3 -2
  177. package/dist/collection/global/global.js.map +1 -0
  178. package/dist/collection/index.js +1 -0
  179. package/dist/collection/index.js.map +1 -0
  180. package/dist/collection/plugins/autoSizeColumn.js +7 -6
  181. package/dist/collection/plugins/autoSizeColumn.js.map +1 -0
  182. package/dist/collection/plugins/basePlugin.js +1 -0
  183. package/dist/collection/plugins/basePlugin.js.map +1 -0
  184. package/dist/collection/plugins/dispatcher.js +1 -0
  185. package/dist/collection/plugins/dispatcher.js.map +1 -0
  186. package/dist/collection/plugins/export/csv.js +2 -1
  187. package/dist/collection/plugins/export/csv.js.map +1 -0
  188. package/dist/collection/plugins/export/export.plugin.js +6 -5
  189. package/dist/collection/plugins/export/export.plugin.js.map +1 -0
  190. package/dist/collection/plugins/export/types.js +1 -3
  191. package/dist/collection/plugins/export/types.js.map +1 -0
  192. package/dist/collection/plugins/filter/conditions/equal.js +1 -0
  193. package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
  194. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +1 -0
  195. package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
  196. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +3 -2
  197. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
  198. package/dist/collection/plugins/filter/conditions/number/lessThan.js +1 -0
  199. package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
  200. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +3 -2
  201. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
  202. package/dist/collection/plugins/filter/conditions/set.js +1 -0
  203. package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
  204. package/dist/collection/plugins/filter/conditions/string/beginswith.js +1 -0
  205. package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
  206. package/dist/collection/plugins/filter/conditions/string/contains.js +1 -0
  207. package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
  208. package/dist/collection/plugins/filter/filter.button.js +7 -12
  209. package/dist/collection/plugins/filter/filter.button.js.map +1 -0
  210. package/dist/collection/plugins/filter/filter.plugin.js +5 -4
  211. package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
  212. package/dist/collection/plugins/filter/filter.pop.js +254 -238
  213. package/dist/collection/plugins/filter/filter.pop.js.map +1 -0
  214. package/dist/collection/plugins/filter/filter.service.js +9 -8
  215. package/dist/collection/plugins/filter/filter.service.js.map +1 -0
  216. package/dist/collection/plugins/filter/filter.style.css +2 -3
  217. package/dist/collection/plugins/filter/filter.types.js +1 -3
  218. package/dist/collection/plugins/filter/filter.types.js.map +1 -0
  219. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +6 -5
  220. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -0
  221. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +4 -3
  222. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js.map +1 -0
  223. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +4 -3
  224. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js.map +1 -0
  225. package/dist/collection/plugins/groupingRow/grouping.const.js +2 -1
  226. package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
  227. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +3 -2
  228. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
  229. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +14 -13
  230. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
  231. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +6 -10
  232. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
  233. package/dist/collection/plugins/groupingRow/grouping.row.types.js +1 -3
  234. package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
  235. package/dist/collection/plugins/groupingRow/grouping.service.js +2 -1
  236. package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
  237. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +2 -1
  238. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
  239. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +8 -7
  240. package/dist/collection/plugins/moveColumn/columnDragPlugin.js.map +1 -0
  241. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +2 -1
  242. package/dist/collection/plugins/moveColumn/columnOrderHandler.js.map +1 -0
  243. package/dist/collection/plugins/sorting/sorting.plugin.js +8 -7
  244. package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
  245. package/dist/collection/plugins/sorting/sorting.sign.js +2 -1
  246. package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
  247. package/dist/collection/plugins/stretchPlugin.js +4 -3
  248. package/dist/collection/plugins/stretchPlugin.js.map +1 -0
  249. package/dist/collection/plugins/trimmed/trimmed.plugin.js +1 -0
  250. package/dist/collection/plugins/trimmed/trimmed.plugin.js.map +1 -0
  251. package/dist/collection/services/cell.helpers.js +2 -1
  252. package/dist/collection/services/cell.helpers.js.map +1 -0
  253. package/dist/collection/services/column.data.provider.js +14 -13
  254. package/dist/collection/services/column.data.provider.js.map +1 -0
  255. package/dist/collection/services/data.provider.js +4 -3
  256. package/dist/collection/services/data.provider.js.map +1 -0
  257. package/dist/collection/services/dimension.provider.js +5 -4
  258. package/dist/collection/services/dimension.provider.js.map +1 -0
  259. package/dist/collection/services/localScrollService.js +2 -1
  260. package/dist/collection/services/localScrollService.js.map +1 -0
  261. package/dist/collection/services/resizable.directive.js +3 -4
  262. package/dist/collection/services/resizable.directive.js.map +1 -0
  263. package/dist/collection/services/selection.store.connector.js +3 -2
  264. package/dist/collection/services/selection.store.connector.js.map +1 -0
  265. package/dist/collection/services/viewport.provider.js +4 -3
  266. package/dist/collection/services/viewport.provider.js.map +1 -0
  267. package/dist/collection/store/dataSource/data.proxy.js +1 -0
  268. package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
  269. package/dist/collection/store/dataSource/data.store.js +10 -9
  270. package/dist/collection/store/dataSource/data.store.js.map +1 -0
  271. package/dist/collection/store/dimension/dimension.helpers.js +5 -4
  272. package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
  273. package/dist/collection/store/dimension/dimension.store.js +9 -7
  274. package/dist/collection/store/dimension/dimension.store.js.map +1 -0
  275. package/dist/collection/store/selection/selection.helpers.js +2 -1
  276. package/dist/collection/store/selection/selection.helpers.js.map +1 -0
  277. package/dist/collection/store/selection/selection.store.js +4 -3
  278. package/dist/collection/store/selection/selection.store.js.map +1 -0
  279. package/dist/collection/store/selection/selection.store.service.js +2 -1
  280. package/dist/collection/store/selection/selection.store.service.js.map +1 -0
  281. package/dist/collection/store/storeTypes.js +1 -0
  282. package/dist/collection/store/storeTypes.js.map +1 -0
  283. package/dist/collection/store/viewPort/viewport.helpers.js +2 -1
  284. package/dist/collection/store/viewPort/viewport.helpers.js.map +1 -0
  285. package/dist/collection/store/viewPort/viewport.store.js +4 -3
  286. package/dist/collection/store/viewPort/viewport.store.js.map +1 -0
  287. package/dist/collection/themeManager/theme.compact.js +1 -0
  288. package/dist/collection/themeManager/theme.compact.js.map +1 -0
  289. package/dist/collection/themeManager/theme.default.js +1 -0
  290. package/dist/collection/themeManager/theme.default.js.map +1 -0
  291. package/dist/collection/themeManager/theme.material.js +1 -0
  292. package/dist/collection/themeManager/theme.material.js.map +1 -0
  293. package/dist/collection/themeManager/themeService.js +9 -8
  294. package/dist/collection/themeManager/themeService.js.map +1 -0
  295. package/dist/collection/utils/closestPolifill.js +1 -0
  296. package/dist/collection/utils/closestPolifill.js.map +1 -0
  297. package/dist/collection/utils/consts.js +1 -0
  298. package/dist/collection/utils/consts.js.map +1 -0
  299. package/dist/collection/utils/generateAlphabetHeader.js +1 -0
  300. package/dist/collection/utils/generateAlphabetHeader.js.map +1 -0
  301. package/dist/collection/utils/keyCodes.js +1 -0
  302. package/dist/collection/utils/keyCodes.js.map +1 -0
  303. package/dist/collection/utils/keyCodes.utils.js +4 -3
  304. package/dist/collection/utils/keyCodes.utils.js.map +1 -0
  305. package/dist/collection/utils/platform.js +1 -0
  306. package/dist/collection/utils/platform.js.map +1 -0
  307. package/dist/collection/utils/resizeObserver.js +1 -0
  308. package/dist/collection/utils/resizeObserver.js.map +1 -0
  309. package/dist/collection/utils/store.utils.js +1 -0
  310. package/dist/collection/utils/store.utils.js.map +1 -0
  311. package/dist/collection/utils/utils.js +1 -0
  312. package/dist/collection/utils/utils.js.map +1 -0
  313. package/dist/esm/{debounce-e4e6dd45.js → debounce-cb7aac48.js} +3 -1
  314. package/dist/esm/debounce-cb7aac48.js.map +1 -0
  315. package/dist/esm/{index-6f753b3c.js → index-f21f8a13.js} +667 -311
  316. package/dist/esm/index-f21f8a13.js.map +1 -0
  317. package/dist/esm/index.js +2 -0
  318. package/dist/esm/index.js.map +1 -0
  319. package/dist/esm/loader.js +6 -26
  320. package/dist/esm/loader.js.map +1 -0
  321. package/dist/esm/{resize-observer-00c48d78.js → resize-observer-4f34a839.js} +2 -0
  322. package/dist/esm/resize-observer-4f34a839.js.map +1 -0
  323. package/dist/esm/revo-grid.js +7 -61
  324. package/dist/esm/revo-grid.js.map +1 -0
  325. package/dist/esm/revo-grid_11.entry.js +169 -180
  326. package/dist/esm/revo-grid_11.entry.js.map +1 -0
  327. package/dist/esm/revogr-clipboard.entry.js +4 -3
  328. package/dist/esm/revogr-clipboard.entry.js.map +1 -0
  329. package/dist/esm/revogr-filter-panel.entry.js +11 -6
  330. package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
  331. package/dist/esm-es5/{debounce-e4e6dd45.js → debounce-cb7aac48.js} +2 -1
  332. package/dist/esm-es5/debounce-cb7aac48.js.map +1 -0
  333. package/dist/esm-es5/index-f21f8a13.js +5 -0
  334. package/dist/esm-es5/index-f21f8a13.js.map +1 -0
  335. package/dist/esm-es5/index.js +1 -0
  336. package/dist/esm-es5/index.js.map +1 -0
  337. package/dist/esm-es5/loader.js +2 -1
  338. package/dist/esm-es5/loader.js.map +1 -0
  339. package/dist/esm-es5/{resize-observer-00c48d78.js → resize-observer-4f34a839.js} +2 -1
  340. package/dist/esm-es5/resize-observer-4f34a839.js.map +1 -0
  341. package/dist/esm-es5/revo-grid.js +2 -1
  342. package/dist/esm-es5/revo-grid.js.map +1 -0
  343. package/dist/esm-es5/revo-grid_11.entry.js +3 -2
  344. package/dist/esm-es5/revo-grid_11.entry.js.map +1 -0
  345. package/dist/esm-es5/revogr-clipboard.entry.js +3 -2
  346. package/dist/esm-es5/revogr-clipboard.entry.js.map +1 -0
  347. package/dist/esm-es5/revogr-filter-panel.entry.js +3 -2
  348. package/dist/esm-es5/revogr-filter-panel.entry.js.map +1 -0
  349. package/dist/revo-grid/{debounce-5a33c710.system.js → debounce-3aba7c4d.system.js} +2 -1
  350. package/dist/revo-grid/debounce-3aba7c4d.system.js.map +1 -0
  351. package/dist/revo-grid/debounce-cb7aac48.js +5 -0
  352. package/dist/revo-grid/debounce-cb7aac48.js.map +1 -0
  353. package/dist/revo-grid/index-20224007.system.js +6 -0
  354. package/dist/revo-grid/index-20224007.system.js.map +1 -0
  355. package/dist/revo-grid/index-f21f8a13.js +6 -0
  356. package/dist/revo-grid/index-f21f8a13.js.map +1 -0
  357. package/dist/revo-grid/index.esm.js +2 -0
  358. package/dist/revo-grid/index.esm.js.map +1 -0
  359. package/dist/revo-grid/index.system.js +2 -1
  360. package/dist/revo-grid/index.system.js.map +1 -0
  361. package/dist/revo-grid/{resize-observer-8af0bc0e.system.js → resize-observer-2a36c9e4.system.js} +2 -1
  362. package/dist/revo-grid/resize-observer-2a36c9e4.system.js.map +1 -0
  363. package/dist/revo-grid/resize-observer-4f34a839.js +5 -0
  364. package/dist/revo-grid/resize-observer-4f34a839.js.map +1 -0
  365. package/dist/revo-grid/revo-grid.esm.js +2 -1
  366. package/dist/revo-grid/revo-grid.esm.js.map +1 -0
  367. package/dist/revo-grid/revo-grid.js +1 -7
  368. package/dist/revo-grid/revo-grid.system.js +2 -1
  369. package/dist/revo-grid/revo-grid.system.js.map +1 -0
  370. package/dist/revo-grid/revo-grid_11.entry.js +2 -1
  371. package/dist/revo-grid/revo-grid_11.entry.js.map +1 -0
  372. package/dist/revo-grid/revo-grid_11.system.entry.js +3 -2
  373. package/dist/revo-grid/revo-grid_11.system.entry.js.map +1 -0
  374. package/dist/revo-grid/revogr-clipboard.entry.js +2 -1
  375. package/dist/revo-grid/revogr-clipboard.entry.js.map +1 -0
  376. package/dist/revo-grid/revogr-clipboard.system.entry.js +3 -2
  377. package/dist/revo-grid/revogr-clipboard.system.entry.js.map +1 -0
  378. package/dist/revo-grid/revogr-filter-panel.entry.js +2 -1
  379. package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
  380. package/dist/revo-grid/revogr-filter-panel.system.entry.js +3 -2
  381. package/dist/revo-grid/revogr-filter-panel.system.entry.js.map +1 -0
  382. package/dist/types/components/data/cellRenderer.d.ts +1 -1
  383. package/dist/types/components/data/columnService.d.ts +4 -4
  384. package/dist/types/components/header/headerCellRenderer.d.ts +1 -1
  385. package/dist/types/components/header/headerRenderer.d.ts +1 -1
  386. package/dist/types/components/order/orderRenderer.d.ts +1 -1
  387. package/dist/types/components/order/rowOrderService.d.ts +1 -1
  388. package/dist/types/components/overlay/autofill.service.d.ts +1 -1
  389. package/dist/types/components/overlay/clipboard.service.d.ts +1 -1
  390. package/dist/types/components/overlay/editors/text.d.ts +1 -1
  391. package/dist/types/components/overlay/keyboard.service.d.ts +1 -1
  392. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +9 -3
  393. package/dist/types/components/overlay/selection.utils.d.ts +1 -1
  394. package/dist/types/components/revo-grid/viewport.d.ts +1 -1
  395. package/dist/types/components/revo-grid/viewport.interfaces.d.ts +5 -5
  396. package/dist/types/components/revo-grid/viewport.scrolling.service.d.ts +1 -1
  397. package/dist/types/components/revo-grid/viewport.section.d.ts +1 -1
  398. package/dist/types/components/revo-grid/viewport.service.d.ts +3 -3
  399. package/dist/types/components/rowHeaders/row-header-render.d.ts +1 -1
  400. package/dist/types/components.d.ts +26 -0
  401. package/dist/types/plugins/autoSizeColumn.d.ts +1 -1
  402. package/dist/types/plugins/dispatcher.d.ts +1 -1
  403. package/dist/types/plugins/export/csv.d.ts +1 -1
  404. package/dist/types/plugins/export/export.plugin.d.ts +1 -1
  405. package/dist/types/plugins/export/types.d.ts +2 -2
  406. package/dist/types/plugins/filter/filter.button.d.ts +1 -1
  407. package/dist/types/plugins/filter/filter.plugin.d.ts +6 -6
  408. package/dist/types/plugins/filter/filter.pop.d.ts +4 -4
  409. package/dist/types/plugins/filter/filter.service.d.ts +1 -1
  410. package/dist/types/plugins/filter/filter.types.d.ts +5 -5
  411. package/dist/types/plugins/groupingColumn/columnGroupsRenderer.d.ts +1 -1
  412. package/dist/types/plugins/groupingColumn/grouping.col.plugin.d.ts +1 -1
  413. package/dist/types/plugins/groupingColumn/headerGroupRenderer.d.ts +1 -1
  414. package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +1 -1
  415. package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +5 -5
  416. package/dist/types/plugins/groupingRow/grouping.service.d.ts +1 -1
  417. package/dist/types/plugins/moveColumn/columnDragPlugin.d.ts +5 -5
  418. package/dist/types/plugins/sorting/sorting.plugin.d.ts +1 -1
  419. package/dist/types/plugins/sorting/sorting.sign.d.ts +1 -1
  420. package/dist/types/plugins/trimmed/trimmed.plugin.d.ts +2 -2
  421. package/dist/types/services/column.data.provider.d.ts +4 -4
  422. package/dist/types/services/data.provider.d.ts +1 -1
  423. package/dist/types/services/dimension.provider.d.ts +2 -2
  424. package/dist/types/services/localScrollService.d.ts +1 -1
  425. package/dist/types/services/resizable.directive.d.ts +2 -2
  426. package/dist/types/services/selection.store.connector.d.ts +2 -2
  427. package/dist/types/services/viewport.provider.d.ts +1 -1
  428. package/dist/types/stencil-public-runtime.d.ts +95 -20
  429. package/dist/types/store/dataSource/data.proxy.d.ts +1 -1
  430. package/dist/types/store/dataSource/data.store.d.ts +4 -4
  431. package/dist/types/store/dimension/dimension.helpers.d.ts +3 -3
  432. package/dist/types/store/selection/selection.store.d.ts +1 -1
  433. package/dist/types/store/viewPort/viewport.helpers.d.ts +2 -2
  434. package/loader/index.d.ts +10 -1
  435. package/loader/package.json +1 -0
  436. package/package.json +10 -10
  437. package/dist/cjs/css-shim-9f5bc84d.js +0 -9
  438. package/dist/cjs/dom-fcb646f0.js +0 -78
  439. package/dist/esm/css-shim-e1e1ea5e.js +0 -7
  440. package/dist/esm/dom-21bd1807.js +0 -76
  441. package/dist/esm/polyfills/css-shim.js +0 -1
  442. package/dist/esm-es5/css-shim-e1e1ea5e.js +0 -4
  443. package/dist/esm-es5/dom-21bd1807.js +0 -24
  444. package/dist/esm-es5/index-6f753b3c.js +0 -4
  445. package/dist/revo-grid/css-shim-bcf89cc0.system.js +0 -4
  446. package/dist/revo-grid/css-shim-e1e1ea5e.js +0 -4
  447. package/dist/revo-grid/debounce-726bdadb.js +0 -4
  448. package/dist/revo-grid/dom-21bd1807.js +0 -22
  449. package/dist/revo-grid/dom-726246e2.system.js +0 -24
  450. package/dist/revo-grid/index-f14b41a0.system.js +0 -5
  451. package/dist/revo-grid/index-f30d1de1.js +0 -5
  452. package/dist/revo-grid/resize-observer-00c48d78.js +0 -4
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Built by Revolist
3
3
  */
4
- import { Component, h, Host, Listen, Prop, State, Event, Method } from '@stencil/core';
5
- import { AndOrButton, isFilterBtn, TrashButton } from './filter.button';
6
- import { RevoButton } from '../../components/button/button';
7
- import '../../utils/closestPolifill';
8
- import debounce from 'lodash/debounce';
4
+ import { h, Host } from "@stencil/core";
5
+ import { AndOrButton, isFilterBtn, TrashButton } from "./filter.button";
6
+ import { RevoButton } from "../../components/button/button";
7
+ import "../../utils/closestPolifill";
8
+ import debounce from "lodash/debounce";
9
9
  const defaultType = 'none';
10
10
  const FILTER_LIST_CLASS = 'multi-filter-list';
11
11
  const FILTER_LIST_CLASS_ACTION = 'multi-filter-list-action';
@@ -17,18 +17,21 @@ export class FilterPanel {
17
17
  reset: 'Reset',
18
18
  cancel: 'Close',
19
19
  };
20
+ this.debouncedApplyFilter = debounce(() => {
21
+ this.filterChange.emit(this.filterItems);
22
+ }, 400);
20
23
  this.isFilterIdSet = false;
21
24
  this.filterId = 0;
22
25
  this.currentFilterId = -1;
23
26
  this.currentFilterType = defaultType;
27
+ this.changes = undefined;
28
+ this.uuid = undefined;
24
29
  this.filterItems = {};
25
30
  this.filterTypes = {};
26
31
  this.filterNames = {};
27
32
  this.filterEntities = {};
33
+ this.filterCaptions = undefined;
28
34
  this.disableDynamicFiltering = false;
29
- this.debouncedApplyFilter = debounce(() => {
30
- this.filterChange.emit(this.filterItems);
31
- }, 400);
32
35
  }
33
36
  onMouseDown(e) {
34
37
  if (this.changes && !e.defaultPrevented) {
@@ -84,23 +87,14 @@ export class FilterPanel {
84
87
  if (!(prop || prop === 0))
85
88
  return '';
86
89
  const propFilters = this.filterItems[prop] || [];
87
- return (h("div", { key: this.filterId },
88
- propFilters.map((d, index) => {
89
- let andOrButton;
90
- // hide toggle button if there is only one filter and the last one
91
- if (index !== this.filterItems[prop].length - 1) {
92
- andOrButton = (h("div", { onClick: () => this.toggleFilterAndOr(d.id) },
93
- h(AndOrButton, { isAnd: d.relation === 'and' })));
94
- }
95
- return (h("div", { key: d.id, class: FILTER_LIST_CLASS },
96
- h("div", { class: { 'select-input': true } },
97
- h("select", { class: "select-css select-filter", onChange: e => this.onFilterTypeChange(e, prop, index) }, this.renderSelectOptions(this.filterItems[prop][index].type, true)),
98
- h("div", { class: FILTER_LIST_CLASS_ACTION }, andOrButton),
99
- h("div", { onClick: () => this.onRemoveFilter(d.id) },
100
- h(TrashButton, null))),
101
- h("div", null, this.renderExtra(prop, index))));
102
- }),
103
- propFilters.length > 0 ? h("div", { class: "add-filter-divider" }) : ''));
90
+ return (h("div", { key: this.filterId }, propFilters.map((d, index) => {
91
+ let andOrButton;
92
+ // hide toggle button if there is only one filter and the last one
93
+ if (index !== this.filterItems[prop].length - 1) {
94
+ andOrButton = (h("div", { onClick: () => this.toggleFilterAndOr(d.id) }, h(AndOrButton, { isAnd: d.relation === 'and' })));
95
+ }
96
+ return (h("div", { key: d.id, class: FILTER_LIST_CLASS }, h("div", { class: { 'select-input': true } }, h("select", { class: "select-css select-filter", onChange: e => this.onFilterTypeChange(e, prop, index) }, this.renderSelectOptions(this.filterItems[prop][index].type, true)), h("div", { class: FILTER_LIST_CLASS_ACTION }, andOrButton), h("div", { onClick: () => this.onRemoveFilter(d.id) }, h(TrashButton, null))), h("div", null, this.renderExtra(prop, index))));
97
+ }), propFilters.length > 0 ? h("div", { class: "add-filter-divider" }) : ''));
104
98
  }
105
99
  render() {
106
100
  if (!this.changes) {
@@ -112,16 +106,8 @@ export class FilterPanel {
112
106
  top: `${this.changes.y}px`,
113
107
  };
114
108
  const capts = Object.assign(this.filterCaptionsInternal, this.filterCaptions);
115
- return (h(Host, { style: style },
116
- h("label", null, capts.title),
117
- h("div", { class: "filter-holder" }, this.getFilterItemsList()),
118
- h("div", { class: "add-filter" },
119
- h("select", { id: "add-filter", class: "select-css", onChange: e => this.onAddNewFilter(e) }, this.renderSelectOptions(this.currentFilterType))),
120
- h("div", { class: "filter-actions" },
121
- this.disableDynamicFiltering &&
122
- h(RevoButton, { class: { red: true, save: true }, onClick: () => this.onSave() }, capts.save),
123
- h(RevoButton, { class: { red: true, reset: true }, onClick: () => this.onReset() }, capts.reset),
124
- h(RevoButton, { class: { light: true, cancel: true }, onClick: () => this.onCancel() }, capts.cancel))));
109
+ return (h(Host, { style: style }, h("label", null, capts.title), h("div", { class: "filter-holder" }, this.getFilterItemsList()), h("div", { class: "add-filter" }, h("select", { id: "add-filter", class: "select-css", onChange: e => this.onAddNewFilter(e) }, this.renderSelectOptions(this.currentFilterType))), h("div", { class: "filter-actions" }, this.disableDynamicFiltering &&
110
+ h(RevoButton, { class: { red: true, save: true }, onClick: () => this.onSave() }, capts.save), h(RevoButton, { class: { red: true, reset: true }, onClick: () => this.onReset() }, capts.reset), h(RevoButton, { class: { light: true, cancel: true }, onClick: () => this.onCancel() }, capts.cancel))));
125
111
  }
126
112
  onFilterTypeChange(e, prop, index) {
127
113
  const el = e.target;
@@ -261,228 +247,258 @@ export class FilterPanel {
261
247
  return !(e === null || e === void 0 ? void 0 : e.closest(`[uuid="${this.uuid}"]`));
262
248
  }
263
249
  static get is() { return "revogr-filter-panel"; }
264
- static get originalStyleUrls() { return {
265
- "$": ["filter.style.scss"]
266
- }; }
267
- static get styleUrls() { return {
268
- "$": ["filter.style.css"]
269
- }; }
270
- static get properties() { return {
271
- "uuid": {
272
- "type": "string",
273
- "mutable": true,
274
- "complexType": {
275
- "original": "string",
276
- "resolved": "string",
277
- "references": {}
278
- },
279
- "required": false,
280
- "optional": false,
281
- "docs": {
282
- "tags": [],
283
- "text": ""
250
+ static get originalStyleUrls() {
251
+ return {
252
+ "$": ["filter.style.scss"]
253
+ };
254
+ }
255
+ static get styleUrls() {
256
+ return {
257
+ "$": ["filter.style.css"]
258
+ };
259
+ }
260
+ static get properties() {
261
+ return {
262
+ "uuid": {
263
+ "type": "string",
264
+ "mutable": true,
265
+ "complexType": {
266
+ "original": "string",
267
+ "resolved": "string",
268
+ "references": {}
269
+ },
270
+ "required": false,
271
+ "optional": false,
272
+ "docs": {
273
+ "tags": [],
274
+ "text": ""
275
+ },
276
+ "attribute": "uuid",
277
+ "reflect": true
284
278
  },
285
- "attribute": "uuid",
286
- "reflect": true
287
- },
288
- "filterItems": {
289
- "type": "unknown",
290
- "mutable": false,
291
- "complexType": {
292
- "original": "MultiFilterItem",
293
- "resolved": "{ [prop: string]: FilterData[]; }",
294
- "references": {
295
- "MultiFilterItem": {
296
- "location": "local"
279
+ "filterItems": {
280
+ "type": "unknown",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "MultiFilterItem",
284
+ "resolved": "{ [prop: string]: FilterData[]; }",
285
+ "references": {
286
+ "MultiFilterItem": {
287
+ "location": "local",
288
+ "path": "/Users/work/Projects/revogrid/src/plugins/filter/filter.pop.tsx",
289
+ "id": "src/plugins/filter/filter.pop.tsx::MultiFilterItem"
290
+ }
297
291
  }
298
- }
299
- },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [],
304
- "text": ""
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": ""
298
+ },
299
+ "defaultValue": "{}"
305
300
  },
306
- "defaultValue": "{}"
307
- },
308
- "filterTypes": {
309
- "type": "unknown",
310
- "mutable": false,
311
- "complexType": {
312
- "original": "Record<string, string[]>",
313
- "resolved": "{ [x: string]: string[]; }",
314
- "references": {
315
- "Record": {
316
- "location": "global"
301
+ "filterTypes": {
302
+ "type": "unknown",
303
+ "mutable": false,
304
+ "complexType": {
305
+ "original": "Record<string, string[]>",
306
+ "resolved": "{ [x: string]: string[]; }",
307
+ "references": {
308
+ "Record": {
309
+ "location": "global",
310
+ "id": "global::Record"
311
+ }
317
312
  }
318
- }
319
- },
320
- "required": false,
321
- "optional": false,
322
- "docs": {
323
- "tags": [],
324
- "text": ""
313
+ },
314
+ "required": false,
315
+ "optional": false,
316
+ "docs": {
317
+ "tags": [],
318
+ "text": ""
319
+ },
320
+ "defaultValue": "{}"
325
321
  },
326
- "defaultValue": "{}"
327
- },
328
- "filterNames": {
329
- "type": "unknown",
330
- "mutable": false,
331
- "complexType": {
332
- "original": "Record<string, string>",
333
- "resolved": "{ [x: string]: string; }",
334
- "references": {
335
- "Record": {
336
- "location": "global"
322
+ "filterNames": {
323
+ "type": "unknown",
324
+ "mutable": false,
325
+ "complexType": {
326
+ "original": "Record<string, string>",
327
+ "resolved": "{ [x: string]: string; }",
328
+ "references": {
329
+ "Record": {
330
+ "location": "global",
331
+ "id": "global::Record"
332
+ }
337
333
  }
338
- }
339
- },
340
- "required": false,
341
- "optional": false,
342
- "docs": {
343
- "tags": [],
344
- "text": ""
334
+ },
335
+ "required": false,
336
+ "optional": false,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": ""
340
+ },
341
+ "defaultValue": "{}"
345
342
  },
346
- "defaultValue": "{}"
347
- },
348
- "filterEntities": {
349
- "type": "unknown",
350
- "mutable": false,
351
- "complexType": {
352
- "original": "Record<string, LogicFunction>",
353
- "resolved": "{ [x: string]: LogicFunction; }",
354
- "references": {
355
- "Record": {
356
- "location": "global"
357
- },
358
- "LogicFunction": {
359
- "location": "import",
360
- "path": "./filter.types"
343
+ "filterEntities": {
344
+ "type": "unknown",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "Record<string, LogicFunction>",
348
+ "resolved": "{ [x: string]: LogicFunction; }",
349
+ "references": {
350
+ "Record": {
351
+ "location": "global",
352
+ "id": "global::Record"
353
+ },
354
+ "LogicFunction": {
355
+ "location": "import",
356
+ "path": "./filter.types",
357
+ "id": "src/plugins/filter/filter.types.ts::LogicFunction"
358
+ }
361
359
  }
362
- }
363
- },
364
- "required": false,
365
- "optional": false,
366
- "docs": {
367
- "tags": [],
368
- "text": ""
360
+ },
361
+ "required": false,
362
+ "optional": false,
363
+ "docs": {
364
+ "tags": [],
365
+ "text": ""
366
+ },
367
+ "defaultValue": "{}"
369
368
  },
370
- "defaultValue": "{}"
371
- },
372
- "filterCaptions": {
373
- "type": "unknown",
374
- "mutable": false,
375
- "complexType": {
376
- "original": "FilterCaptions | undefined",
377
- "resolved": "{ title: string; save: string; reset: string; cancel: string; }",
378
- "references": {
379
- "FilterCaptions": {
380
- "location": "import",
381
- "path": "./filter.plugin"
369
+ "filterCaptions": {
370
+ "type": "unknown",
371
+ "mutable": false,
372
+ "complexType": {
373
+ "original": "FilterCaptions | undefined",
374
+ "resolved": "{ title: string; save: string; reset: string; cancel: string; }",
375
+ "references": {
376
+ "FilterCaptions": {
377
+ "location": "import",
378
+ "path": "./filter.plugin",
379
+ "id": "src/plugins/filter/filter.plugin.tsx::FilterCaptions"
380
+ }
382
381
  }
382
+ },
383
+ "required": false,
384
+ "optional": false,
385
+ "docs": {
386
+ "tags": [],
387
+ "text": ""
383
388
  }
384
389
  },
385
- "required": false,
386
- "optional": false,
387
- "docs": {
388
- "tags": [],
389
- "text": ""
390
+ "disableDynamicFiltering": {
391
+ "type": "boolean",
392
+ "mutable": false,
393
+ "complexType": {
394
+ "original": "boolean",
395
+ "resolved": "boolean",
396
+ "references": {}
397
+ },
398
+ "required": false,
399
+ "optional": false,
400
+ "docs": {
401
+ "tags": [],
402
+ "text": ""
403
+ },
404
+ "attribute": "disable-dynamic-filtering",
405
+ "reflect": false,
406
+ "defaultValue": "false"
390
407
  }
391
- },
392
- "disableDynamicFiltering": {
393
- "type": "boolean",
394
- "mutable": false,
395
- "complexType": {
396
- "original": "boolean",
397
- "resolved": "boolean",
398
- "references": {}
399
- },
400
- "required": false,
401
- "optional": false,
402
- "docs": {
403
- "tags": [],
404
- "text": ""
405
- },
406
- "attribute": "disable-dynamic-filtering",
407
- "reflect": false,
408
- "defaultValue": "false"
409
- }
410
- }; }
411
- static get states() { return {
412
- "isFilterIdSet": {},
413
- "filterId": {},
414
- "currentFilterId": {},
415
- "currentFilterType": {},
416
- "changes": {}
417
- }; }
418
- static get events() { return [{
419
- "method": "filterChange",
420
- "name": "filterChange",
421
- "bubbles": true,
422
- "cancelable": true,
423
- "composed": true,
424
- "docs": {
425
- "tags": [],
426
- "text": ""
427
- },
428
- "complexType": {
429
- "original": "MultiFilterItem",
430
- "resolved": "{ [prop: string]: FilterData[]; }",
431
- "references": {
432
- "MultiFilterItem": {
433
- "location": "local"
408
+ };
409
+ }
410
+ static get states() {
411
+ return {
412
+ "isFilterIdSet": {},
413
+ "filterId": {},
414
+ "currentFilterId": {},
415
+ "currentFilterType": {},
416
+ "changes": {}
417
+ };
418
+ }
419
+ static get events() {
420
+ return [{
421
+ "method": "filterChange",
422
+ "name": "filterChange",
423
+ "bubbles": true,
424
+ "cancelable": true,
425
+ "composed": true,
426
+ "docs": {
427
+ "tags": [],
428
+ "text": ""
429
+ },
430
+ "complexType": {
431
+ "original": "MultiFilterItem",
432
+ "resolved": "{ [prop: string]: FilterData[]; }",
433
+ "references": {
434
+ "MultiFilterItem": {
435
+ "location": "local",
436
+ "path": "/Users/work/Projects/revogrid/src/plugins/filter/filter.pop.tsx",
437
+ "id": "src/plugins/filter/filter.pop.tsx::MultiFilterItem"
438
+ }
434
439
  }
435
440
  }
436
- }
437
- }]; }
438
- static get methods() { return {
439
- "show": {
440
- "complexType": {
441
- "signature": "(newEntity?: ShowData) => Promise<void>",
442
- "parameters": [{
443
- "tags": [],
444
- "text": ""
445
- }],
446
- "references": {
447
- "Promise": {
448
- "location": "global"
441
+ }];
442
+ }
443
+ static get methods() {
444
+ return {
445
+ "show": {
446
+ "complexType": {
447
+ "signature": "(newEntity?: ShowData) => Promise<void>",
448
+ "parameters": [{
449
+ "tags": [],
450
+ "text": ""
451
+ }],
452
+ "references": {
453
+ "Promise": {
454
+ "location": "global",
455
+ "id": "global::Promise"
456
+ },
457
+ "ShowData": {
458
+ "location": "local",
459
+ "path": "/Users/work/Projects/revogrid/src/plugins/filter/filter.pop.tsx",
460
+ "id": "src/plugins/filter/filter.pop.tsx::ShowData"
461
+ }
449
462
  },
450
- "ShowData": {
451
- "location": "local"
452
- }
463
+ "return": "Promise<void>"
453
464
  },
454
- "return": "Promise<void>"
465
+ "docs": {
466
+ "text": "",
467
+ "tags": []
468
+ }
455
469
  },
456
- "docs": {
457
- "text": "",
458
- "tags": []
459
- }
460
- },
461
- "getChanges": {
462
- "complexType": {
463
- "signature": "() => Promise<ShowData>",
464
- "parameters": [],
465
- "references": {
466
- "Promise": {
467
- "location": "global"
470
+ "getChanges": {
471
+ "complexType": {
472
+ "signature": "() => Promise<ShowData>",
473
+ "parameters": [],
474
+ "references": {
475
+ "Promise": {
476
+ "location": "global",
477
+ "id": "global::Promise"
478
+ },
479
+ "ShowData": {
480
+ "location": "local",
481
+ "path": "/Users/work/Projects/revogrid/src/plugins/filter/filter.pop.tsx",
482
+ "id": "src/plugins/filter/filter.pop.tsx::ShowData"
483
+ }
468
484
  },
469
- "ShowData": {
470
- "location": "local"
471
- }
485
+ "return": "Promise<ShowData>"
472
486
  },
473
- "return": "Promise<ShowData>"
474
- },
475
- "docs": {
476
- "text": "",
477
- "tags": []
487
+ "docs": {
488
+ "text": "",
489
+ "tags": []
490
+ }
478
491
  }
479
- }
480
- }; }
481
- static get listeners() { return [{
482
- "name": "mousedown",
483
- "method": "onMouseDown",
484
- "target": "document",
485
- "capture": false,
486
- "passive": true
487
- }]; }
492
+ };
493
+ }
494
+ static get listeners() {
495
+ return [{
496
+ "name": "mousedown",
497
+ "method": "onMouseDown",
498
+ "target": "document",
499
+ "capture": false,
500
+ "passive": true
501
+ }];
502
+ }
488
503
  }
504
+ //# sourceMappingURL=filter.pop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.pop.js","sourceRoot":"","sources":["../../../src/plugins/filter/filter.pop.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAuB,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,6BAA6B,CAAC;AAGrC,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AA+BvC,MAAM,WAAW,GAAe,MAAM,CAAC;AAEvC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAM5D,MAAM,OAAO,WAAW;;IACd,2BAAsB,GAAmB;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IAAI,CAAC,IAAI,IAAI,CAAC,CAAA,CAAC;EAC9C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Listen, Prop, State, Event, EventEmitter, VNode, Method } from '@stencil/core';\nimport { FilterType } from './filter.service';\nimport { RevoGrid } from '../../interfaces';\nimport { AndOrButton, isFilterBtn, TrashButton } from './filter.button';\nimport { RevoButton } from '../../components/button/button';\nimport '../../utils/closestPolifill';\nimport { LogicFunction } from './filter.types';\nimport { FilterCaptions } from './filter.plugin';\nimport debounce from 'lodash/debounce';\n\n/**\n * @typedef FilterItem\n * @type {object}\n * @property {ColumnProp} prop - column id\n * @property {FilterType} type - filter type definition\n * @property {any} value - value for additional filtering, text value or some id\n */\nexport type FilterItem = {\n prop?: RevoGrid.ColumnProp;\n type?: FilterType;\n value?: any;\n};\n\nexport type FilterData = {\n id: number;\n type: FilterType;\n value?: any;\n relation: 'and' | 'or';\n};\n\nexport type MultiFilterItem = {\n [prop: string]: FilterData[];\n};\n\nexport type ShowData = {\n x: number;\n y: number;\n} & FilterItem;\n\nconst defaultType: FilterType = 'none';\n\nconst FILTER_LIST_CLASS = 'multi-filter-list';\nconst FILTER_LIST_CLASS_ACTION = 'multi-filter-list-action';\n\n@Component({\n tag: 'revogr-filter-panel',\n styleUrl: 'filter.style.scss',\n})\nexport class FilterPanel {\n private filterCaptionsInternal: FilterCaptions = {\n title: 'Filter by condition',\n save: 'Save',\n reset: 'Reset',\n cancel: 'Close',\n };\n @State() isFilterIdSet = false;\n @State() filterId = 0;\n @State() currentFilterId: number = -1;\n @State() currentFilterType: FilterType = defaultType;\n @State() changes: ShowData | undefined;\n @Prop({ mutable: true, reflect: true }) uuid: string;\n @Prop() filterItems: MultiFilterItem = {};\n @Prop() filterTypes: Record<string, string[]> = {};\n @Prop() filterNames: Record<string, string> = {};\n @Prop() filterEntities: Record<string, LogicFunction> = {};\n @Prop() filterCaptions: FilterCaptions | undefined;\n @Prop() disableDynamicFiltering: boolean = false;\n @Event() filterChange: EventEmitter<MultiFilterItem>;\n @Listen('mousedown', { target: 'document' }) onMouseDown(e: MouseEvent): void {\n if (this.changes && !e.defaultPrevented) {\n const el = e.target as HTMLElement;\n if (this.isOutside(el) && !isFilterBtn(el)) {\n this.changes = undefined;\n }\n }\n }\n @Method() async show(newEntity?: ShowData) {\n this.changes = newEntity;\n if (this.changes) {\n this.changes.type = this.changes.type || defaultType;\n }\n }\n\n @Method() async getChanges() {\n return this.changes;\n }\n\n componentWillRender() {\n if (!this.isFilterIdSet) {\n this.isFilterIdSet = true;\n const filterItems = Object.keys(this.filterItems);\n for (const prop of filterItems) {\n // we set the proper filterId so there won't be any conflict when removing filters\n this.filterId += this.filterItems[prop].length;\n }\n }\n }\n\n renderSelectOptions(type: FilterType, isDefaultTypeRemoved = false) {\n const options: VNode[] = [];\n const prop = this.changes?.prop;\n\n if (!isDefaultTypeRemoved) {\n options.push(\n <option selected={this.currentFilterType === defaultType} value={defaultType}>\n {prop && this.filterItems[prop] && this.filterItems[prop].length > 0 ? 'Add more condition...' : this.filterNames[defaultType]}\n </option>,\n );\n }\n\n for (let gIndex in this.filterTypes) {\n options.push(\n ...this.filterTypes[gIndex].map(k => (\n <option value={k} selected={type === k}>\n {this.filterNames[k]}\n </option>\n )),\n );\n options.push(<option disabled></option>);\n }\n return options;\n }\n\n renderExtra(prop: RevoGrid.ColumnProp, index: number) {\n const currentFilter = this.filterItems[prop];\n\n if (!currentFilter) return '';\n\n if (this.filterEntities[currentFilter[index].type].extra !== 'input') return '';\n\n return (\n <input\n id={`filter-input-${currentFilter[index].id}`}\n placeholder=\"Enter value...\"\n type=\"text\"\n value={currentFilter[index].value}\n onInput={this.onUserInput.bind(this, index, prop)}\n onKeyDown={e => this.onKeyDown(e)}\n />\n );\n }\n\n getFilterItemsList() {\n const prop = this.changes?.prop;\n if (!(prop || prop === 0)) return '';\n\n const propFilters = this.filterItems[prop] || [];\n return (\n <div key={this.filterId}>\n {propFilters.map((d, index) => {\n let andOrButton;\n\n // hide toggle button if there is only one filter and the last one\n if (index !== this.filterItems[prop].length - 1) {\n andOrButton = (\n <div onClick={() => this.toggleFilterAndOr(d.id)}>\n <AndOrButton isAnd={d.relation === 'and'} />\n </div>\n );\n }\n\n return (\n <div key={d.id} class={FILTER_LIST_CLASS}>\n <div class={{ 'select-input': true }}>\n <select class=\"select-css select-filter\" onChange={e => this.onFilterTypeChange(e, prop, index)}>\n {this.renderSelectOptions(this.filterItems[prop][index].type, true)}\n </select>\n <div class={FILTER_LIST_CLASS_ACTION}>{andOrButton}</div>\n <div onClick={() => this.onRemoveFilter(d.id)}>\n <TrashButton />\n </div>\n </div>\n <div>{this.renderExtra(prop, index)}</div>\n </div>\n );\n })}\n\n {propFilters.length > 0 ? <div class=\"add-filter-divider\"></div> : ''}\n </div>\n );\n }\n\n render() {\n if (!this.changes) {\n return <Host style={{ display: 'none' }}></Host>;\n }\n const style = {\n display: 'block',\n left: `${this.changes.x}px`,\n top: `${this.changes.y}px`,\n };\n\n const capts = Object.assign(this.filterCaptionsInternal, this.filterCaptions);\n\n return (\n <Host style={style}>\n <label>{capts.title}</label>\n <div class=\"filter-holder\">{this.getFilterItemsList()}</div>\n\n <div class=\"add-filter\">\n <select id=\"add-filter\" class=\"select-css\" onChange={e => this.onAddNewFilter(e)}>\n {this.renderSelectOptions(this.currentFilterType)}\n </select>\n </div>\n <div class=\"filter-actions\">\n {this.disableDynamicFiltering &&\n <RevoButton class={{ red: true, save: true }} onClick={() => this.onSave()}>\n {capts.save}\n </RevoButton>\n }\n <RevoButton class={{ red: true, reset: true }} onClick={() => this.onReset()}>\n {capts.reset}\n </RevoButton>\n <RevoButton class={{ light: true, cancel: true }} onClick={() => this.onCancel()}>\n {capts.cancel}\n </RevoButton>\n </div>\n </Host>\n );\n }\n\n private onFilterTypeChange(e: Event, prop: RevoGrid.ColumnProp, index: number) {\n const el = e.target as HTMLSelectElement;\n const type = el.value as FilterType;\n\n this.filterItems[prop][index].type = type;\n\n // this re-renders the input to know if we need extra input\n this.filterId++;\n\n // adding setTimeout will wait for the next tick DOM update then focus on input\n setTimeout(() => {\n const input = document.getElementById('filter-input-' + this.filterItems[prop][index].id) as HTMLInputElement;\n if (input) input.focus();\n }, 0);\n\n if (!this.disableDynamicFiltering) this.debouncedApplyFilter();\n }\n\n private debouncedApplyFilter = debounce(() => {\n this.filterChange.emit(this.filterItems);\n }, 400);\n\n private onAddNewFilter(e: Event) {\n const el = e.target as HTMLSelectElement;\n const type = el.value as FilterType;\n\n this.currentFilterType = type;\n this.addNewFilterToProp();\n\n // reset value after adding new filter\n const select = document.getElementById('add-filter') as HTMLSelectElement;\n if (select) {\n select.value = defaultType;\n this.currentFilterType = defaultType;\n }\n\n if (!this.disableDynamicFiltering) this.debouncedApplyFilter();\n }\n\n private addNewFilterToProp() {\n const prop = this.changes?.prop;\n if (!(prop || prop === 0)) return;\n\n if (!this.filterItems[prop]) {\n this.filterItems[prop] = [];\n }\n\n if (this.currentFilterType === 'none') return;\n\n this.filterId++;\n this.currentFilterId = this.filterId;\n\n this.filterItems[prop].push({\n id: this.currentFilterId,\n type: this.currentFilterType,\n value: '',\n relation: 'and',\n });\n\n // adding setTimeout will wait for the next tick DOM update then focus on input\n setTimeout(() => {\n const input = document.getElementById('filter-input-' + this.currentFilterId) as HTMLInputElement;\n if (input) input.focus();\n }, 0);\n }\n\n private onUserInput(index: number, prop: RevoGrid.ColumnProp, event: Event) {\n // update the value of the filter item\n this.filterItems[prop][index].value = (event.target as HTMLInputElement).value;\n\n if (!this.disableDynamicFiltering) this.debouncedApplyFilter();\n }\n\n private onKeyDown(e: KeyboardEvent) {\n if (e.key.toLowerCase() === 'enter') {\n const select = document.getElementById('add-filter') as HTMLSelectElement;\n if (select) {\n select.value = defaultType;\n this.currentFilterType = defaultType;\n this.addNewFilterToProp();\n select.focus();\n }\n return;\n }\n // keep event local, don't escalate farther to dom\n e.stopPropagation();\n }\n\n private onSave() {\n this.filterChange.emit(this.filterItems);\n }\n\n private onCancel() {\n this.changes = undefined;\n }\n\n private onReset() {\n this.assertChanges();\n\n delete this.filterItems[this.changes.prop];\n\n // this updates the DOM which is used by getFilterItemsList() key\n this.filterId++;\n\n this.filterChange.emit(this.filterItems);\n }\n\n private onRemoveFilter(id: number) {\n this.assertChanges();\n\n // this is for reactivity issues for getFilterItemsList()\n this.filterId++;\n\n const prop = this.changes.prop;\n\n const items = this.filterItems[prop];\n if (!items) return;\n\n const index = items.findIndex(d => d.id === id);\n if (index === -1) return;\n items.splice(index, 1);\n\n // let's remove the prop if no more filters so the filter icon will be removed\n if (items.length === 0) delete this.filterItems[prop];\n\n if (!this.disableDynamicFiltering) this.debouncedApplyFilter();\n }\n\n private toggleFilterAndOr(id: number) {\n this.assertChanges();\n\n // this is for reactivity issues for getFilterItemsList()\n this.filterId++;\n\n const prop = this.changes.prop;\n\n const items = this.filterItems[prop];\n if (!items) return;\n\n const index = items.findIndex(d => d.id === id);\n if (index === -1) return;\n\n items[index].relation = items[index].relation === 'and' ? 'or' : 'and';\n if (!this.disableDynamicFiltering) this.debouncedApplyFilter();\n }\n\n private assertChanges() {\n if (!this.changes) {\n throw new Error('Changes required per edit');\n }\n }\n\n private isOutside(e: HTMLElement | null) {\n const select = document.getElementById('add-filter') as HTMLSelectElement;\n if (select) select.value = defaultType;\n\n this.currentFilterType = defaultType;\n this.changes.type = defaultType;\n this.currentFilterId = -1;\n if (e.classList.contains(`[uuid=\"${this.uuid}\"]`)) {\n return false;\n }\n return !e?.closest(`[uuid=\"${this.uuid}\"]`);\n }\n}\n"]}
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * Built by Revolist
3
3
  */
4
- import eq, { notEq } from './conditions/equal';
5
- import gtThan from './conditions/number/greaterThan';
6
- import gtThanEq from './conditions/number/greaterThanOrEqual';
7
- import lt from './conditions/number/lessThan';
8
- import lsEq from './conditions/number/lessThanOrEqual';
9
- import set, { notSet } from './conditions/set';
10
- import beginsWith from './conditions/string/beginswith';
11
- import contains, { notContains } from './conditions/string/contains';
4
+ import eq, { notEq } from "./conditions/equal";
5
+ import gtThan from "./conditions/number/greaterThan";
6
+ import gtThanEq from "./conditions/number/greaterThanOrEqual";
7
+ import lt from "./conditions/number/lessThan";
8
+ import lsEq from "./conditions/number/lessThanOrEqual";
9
+ import set, { notSet } from "./conditions/set";
10
+ import beginsWith from "./conditions/string/beginswith";
11
+ import contains, { notContains } from "./conditions/string/contains";
12
12
  export const filterNames = {
13
13
  none: 'None',
14
14
  empty: 'Not set',
@@ -45,3 +45,4 @@ export const filterTypes = {
45
45
  string: ['notEmpty', 'empty', 'eq', 'notEq', 'begins', 'contains', 'notContains'],
46
46
  number: ['notEmpty', 'empty', 'eqN', 'neqN', 'gt', 'gte', 'lt', 'lte'],
47
47
  };
48
+ //# sourceMappingURL=filter.service.js.map