@revolist/revogrid 3.1.8 → 3.2.5

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 (185) hide show
  1. package/custom-element/index.js +455 -217
  2. package/custom-element/resize-observer.js +25 -11
  3. package/dist/cjs/css-shim-9f5bc84d.js +9 -0
  4. package/dist/cjs/{debounce-e9b040d9.js → debounce-6cea2774.js} +4 -1
  5. package/dist/cjs/{dom-c8b6d1a7.js → dom-fcb646f0.js} +4 -1
  6. package/dist/cjs/{index-d3f67f2e.js → index-cb904e00.js} +193 -91
  7. package/dist/cjs/index.cjs.js +3 -0
  8. package/dist/cjs/loader.cjs.js +7 -4
  9. package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-bf327d6a.js} +25 -10
  10. package/dist/cjs/revo-grid.cjs.js +13 -7
  11. package/dist/cjs/revo-grid_11.cjs.entry.js +244 -6
  12. package/dist/cjs/revogr-clipboard.cjs.entry.js +4 -1
  13. package/dist/cjs/revogr-filter-panel.cjs.entry.js +5 -2
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/button/button.js +3 -0
  16. package/dist/collection/components/clipboard/revogr-clipboard.js +3 -0
  17. package/dist/collection/components/data/cellRenderer.js +3 -0
  18. package/dist/collection/components/data/columnService.js +3 -0
  19. package/dist/collection/components/data/revogr-data.js +3 -0
  20. package/dist/collection/components/data/rowRenderer.js +3 -0
  21. package/dist/collection/components/header/headerCellRenderer.js +11 -1
  22. package/dist/collection/components/header/headerRenderer.js +3 -0
  23. package/dist/collection/components/header/revogr-header.js +3 -0
  24. package/dist/collection/components/order/orderRenderer.js +3 -0
  25. package/dist/collection/components/order/revogr-order-editor.js +3 -0
  26. package/dist/collection/components/order/rowOrderService.js +3 -0
  27. package/dist/collection/components/overlay/autofill.service.js +3 -0
  28. package/dist/collection/components/overlay/clipboard.service.js +3 -0
  29. package/dist/collection/components/overlay/editors/edit.utils.js +3 -0
  30. package/dist/collection/components/overlay/editors/text.js +3 -0
  31. package/dist/collection/components/overlay/keyboard.service.js +3 -0
  32. package/dist/collection/components/overlay/revogr-edit.js +3 -0
  33. package/dist/collection/components/overlay/revogr-overlay-selection.js +3 -0
  34. package/dist/collection/components/overlay/selection.utils.js +3 -0
  35. package/dist/collection/components/revo-grid/revo-grid-style.css +18 -1
  36. package/dist/collection/components/revo-grid/revo-grid.js +53 -15
  37. package/dist/collection/components/revo-grid/viewport.helpers.js +3 -0
  38. package/dist/collection/components/revo-grid/viewport.interfaces.js +3 -0
  39. package/dist/collection/components/revo-grid/viewport.js +3 -0
  40. package/dist/collection/components/revo-grid/viewport.resize.service.js +3 -0
  41. package/dist/collection/components/revo-grid/viewport.scrolling.service.js +3 -0
  42. package/dist/collection/components/revo-grid/viewport.section.js +3 -0
  43. package/dist/collection/components/revo-grid/viewport.service.js +3 -0
  44. package/dist/collection/components/rowHeaders/revogr-row-headers.js +3 -0
  45. package/dist/collection/components/rowHeaders/row-header-render.js +3 -0
  46. package/dist/collection/components/scroll/revogr-viewport-scroll.js +5 -2
  47. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +3 -0
  48. package/dist/collection/components/selection-focus/revogr-focus.js +3 -0
  49. package/dist/collection/components/selection-temp-range/revogr-temp-range.js +3 -0
  50. package/dist/collection/global/global.js +3 -0
  51. package/dist/collection/index.js +3 -0
  52. package/dist/collection/plugins/autoSizeColumn.js +3 -0
  53. package/dist/collection/plugins/basePlugin.js +3 -0
  54. package/dist/collection/plugins/dispatcher.js +22 -0
  55. package/dist/collection/plugins/export/csv.js +3 -0
  56. package/dist/collection/plugins/export/export.plugin.js +3 -0
  57. package/dist/collection/plugins/export/types.js +3 -0
  58. package/dist/collection/plugins/filter/conditions/equal.js +3 -0
  59. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +3 -0
  60. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +3 -0
  61. package/dist/collection/plugins/filter/conditions/number/lessThan.js +3 -0
  62. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +3 -0
  63. package/dist/collection/plugins/filter/conditions/set.js +3 -0
  64. package/dist/collection/plugins/filter/conditions/string/beginswith.js +3 -0
  65. package/dist/collection/plugins/filter/conditions/string/contains.js +3 -0
  66. package/dist/collection/plugins/filter/filter.button.js +3 -0
  67. package/dist/collection/plugins/filter/filter.plugin.js +3 -0
  68. package/dist/collection/plugins/filter/filter.pop.js +3 -0
  69. package/dist/collection/plugins/filter/filter.service.js +3 -0
  70. package/dist/collection/plugins/filter/filter.types.js +3 -0
  71. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +3 -0
  72. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +3 -0
  73. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +3 -0
  74. package/dist/collection/plugins/groupingRow/grouping.const.js +3 -0
  75. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +3 -0
  76. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +3 -0
  77. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +3 -0
  78. package/dist/collection/plugins/groupingRow/grouping.row.types.js +3 -0
  79. package/dist/collection/plugins/groupingRow/grouping.service.js +3 -0
  80. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +3 -0
  81. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +148 -0
  82. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +63 -0
  83. package/dist/collection/plugins/sorting/sorting.plugin.js +3 -0
  84. package/dist/collection/plugins/sorting/sorting.sign.js +3 -0
  85. package/dist/collection/plugins/stretchPlugin.js +3 -0
  86. package/dist/collection/plugins/trimmed/trimmed.plugin.js +3 -0
  87. package/dist/collection/services/cell.helpers.js +3 -0
  88. package/dist/collection/services/column.data.provider.js +3 -0
  89. package/dist/collection/services/data.provider.js +3 -0
  90. package/dist/collection/services/dimension.provider.js +3 -0
  91. package/dist/collection/services/localScrollService.js +3 -0
  92. package/dist/collection/services/resizable.directive.js +3 -0
  93. package/dist/collection/services/selection.store.connector.js +3 -0
  94. package/dist/collection/services/viewport.provider.js +3 -0
  95. package/dist/collection/store/dataSource/data.proxy.js +3 -0
  96. package/dist/collection/store/dataSource/data.store.js +3 -0
  97. package/dist/collection/store/dimension/dimension.helpers.js +3 -0
  98. package/dist/collection/store/dimension/dimension.store.js +3 -0
  99. package/dist/collection/store/selection/selection.helpers.js +3 -0
  100. package/dist/collection/store/selection/selection.store.js +3 -0
  101. package/dist/collection/store/selection/selection.store.service.js +3 -0
  102. package/dist/collection/store/storeTypes.js +3 -0
  103. package/dist/collection/store/viewPort/viewport.helpers.js +3 -0
  104. package/dist/collection/store/viewPort/viewport.store.js +3 -0
  105. package/dist/collection/themeManager/theme.compact.js +3 -0
  106. package/dist/collection/themeManager/theme.default.js +3 -0
  107. package/dist/collection/themeManager/theme.material.js +3 -0
  108. package/dist/collection/themeManager/themeService.js +3 -0
  109. package/dist/collection/utils/closestPolifill.js +3 -0
  110. package/dist/collection/utils/consts.js +3 -0
  111. package/dist/collection/utils/generateAlphabetHeader.js +3 -0
  112. package/dist/collection/utils/keyCodes.js +3 -0
  113. package/dist/collection/utils/keyCodes.utils.js +3 -0
  114. package/dist/collection/utils/platform.js +3 -0
  115. package/dist/collection/utils/resizeObserver.js +3 -0
  116. package/dist/collection/utils/store.utils.js +3 -0
  117. package/dist/collection/utils/utils.js +3 -0
  118. package/dist/esm/css-shim-e1e1ea5e.js +7 -0
  119. package/dist/esm/{debounce-8dadcda7.js → debounce-e4e6dd45.js} +5 -2
  120. package/dist/esm/{dom-1b195079.js → dom-21bd1807.js} +4 -1
  121. package/dist/esm/{index-42c84e7c.js → index-6f753b3c.js} +193 -91
  122. package/dist/esm/index.js +3 -1
  123. package/dist/esm/loader.js +7 -4
  124. package/dist/esm/polyfills/css-shim.js +1 -1
  125. package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-00c48d78.js} +25 -11
  126. package/dist/esm/revo-grid.js +13 -7
  127. package/dist/esm/revo-grid_11.entry.js +244 -6
  128. package/dist/esm/revogr-clipboard.entry.js +4 -1
  129. package/dist/esm/revogr-filter-panel.entry.js +5 -2
  130. package/dist/esm-es5/css-shim-e1e1ea5e.js +4 -0
  131. package/dist/esm-es5/{debounce-8dadcda7.js → debounce-e4e6dd45.js} +4 -1
  132. package/dist/esm-es5/{dom-1b195079.js → dom-21bd1807.js} +3 -0
  133. package/dist/esm-es5/index-6f753b3c.js +5 -0
  134. package/dist/esm-es5/index.js +3 -0
  135. package/dist/esm-es5/loader.js +4 -1
  136. package/dist/esm-es5/resize-observer-00c48d78.js +4 -0
  137. package/dist/esm-es5/revo-grid.js +4 -1
  138. package/dist/esm-es5/revo-grid_11.entry.js +4 -1
  139. package/dist/esm-es5/revogr-clipboard.entry.js +4 -1
  140. package/dist/esm-es5/revogr-filter-panel.entry.js +4 -1
  141. package/dist/revo-grid/css-shim-bcf89cc0.system.js +4 -0
  142. package/dist/revo-grid/css-shim-e1e1ea5e.js +4 -0
  143. package/dist/revo-grid/{debounce-f40a88f6.system.js → debounce-5a33c710.system.js} +4 -1
  144. package/dist/revo-grid/{debounce-d097578d.js → debounce-726bdadb.js} +4 -1
  145. package/dist/revo-grid/{dom-1b195079.js → dom-21bd1807.js} +3 -0
  146. package/dist/revo-grid/{dom-ee2dd1b3.system.js → dom-726246e2.system.js} +3 -0
  147. package/dist/revo-grid/index-f14b41a0.system.js +5 -0
  148. package/dist/revo-grid/index-f30d1de1.js +5 -0
  149. package/dist/revo-grid/index.esm.js +3 -0
  150. package/dist/revo-grid/index.system.js +3 -0
  151. package/dist/revo-grid/resize-observer-00c48d78.js +4 -0
  152. package/dist/revo-grid/resize-observer-8af0bc0e.system.js +4 -0
  153. package/dist/revo-grid/revo-grid.esm.js +4 -1
  154. package/dist/revo-grid/revo-grid.js +3 -2
  155. package/dist/revo-grid/revo-grid.system.js +4 -1
  156. package/dist/revo-grid/revo-grid_11.entry.js +4 -1
  157. package/dist/revo-grid/revo-grid_11.system.entry.js +4 -1
  158. package/dist/revo-grid/revogr-clipboard.entry.js +4 -1
  159. package/dist/revo-grid/revogr-clipboard.system.entry.js +4 -1
  160. package/dist/revo-grid/revogr-filter-panel.entry.js +4 -1
  161. package/dist/revo-grid/revogr-filter-panel.system.entry.js +4 -1
  162. package/dist/types/components/revo-grid/revo-grid.d.ts +6 -0
  163. package/dist/types/components.d.ts +108 -56
  164. package/dist/types/plugins/dispatcher.d.ts +10 -0
  165. package/dist/types/plugins/moveColumn/columnDragPlugin.d.ts +66 -0
  166. package/dist/types/plugins/moveColumn/columnOrderHandler.d.ts +12 -0
  167. package/dist/types/services/resizable.directive.d.ts +1 -1
  168. package/dist/types/stencil-public-runtime.d.ts +189 -186
  169. package/loader/cdn.js +3 -1
  170. package/loader/index.cjs.js +3 -1
  171. package/loader/index.d.ts +0 -1
  172. package/loader/index.es2017.js +3 -1
  173. package/loader/index.js +3 -1
  174. package/package.json +22 -20
  175. package/dist/cjs/css-shim-e33df79c.js +0 -6
  176. package/dist/esm/css-shim-8d75038b.js +0 -4
  177. package/dist/esm-es5/css-shim-8d75038b.js +0 -1
  178. package/dist/esm-es5/index-42c84e7c.js +0 -1
  179. package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
  180. package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
  181. package/dist/revo-grid/css-shim-8d75038b.js +0 -1
  182. package/dist/revo-grid/index-a15e7527.system.js +0 -1
  183. package/dist/revo-grid/index-a7f99799.js +0 -1
  184. package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
  185. package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  export const PADDING_DEPTH = 10;
3
6
  const RowRenderer = ({ rowClass, size, start, style, depth }, cells) => {
@@ -1,6 +1,11 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
5
+ import { dispatch } from '../../plugins/dispatcher';
2
6
  import { ResizableElement } from '../../services/resizable.directive';
3
7
  import ColumnService from '../data/columnService';
8
+ const ON_COLUMN_CLICK = 'column-click';
4
9
  export const HeaderCellRenderer = ({ data, props }, children) => {
5
10
  let colTemplate = (data === null || data === void 0 ? void 0 : data.name) || '';
6
11
  let cellProps = props;
@@ -13,7 +18,12 @@ export const HeaderCellRenderer = ({ data, props }, children) => {
13
18
  cellProps = ColumnService.doMerge(props, extra);
14
19
  }
15
20
  }
16
- return (h(ResizableElement, Object.assign({}, cellProps),
21
+ return (h(ResizableElement, Object.assign({}, cellProps, { onMouseDown: (e) => {
22
+ dispatch(e.currentTarget, ON_COLUMN_CLICK, {
23
+ data,
24
+ event: e,
25
+ });
26
+ } }),
17
27
  h("div", { class: "header-content" }, colTemplate),
18
28
  children));
19
29
  };
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { FilterButton } from '../../plugins/filter/filter.button';
3
6
  import { SortingSign } from '../../plugins/sorting/sorting.sign';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Element, Event, h, Prop } from '@stencil/core';
2
5
  import keyBy from 'lodash/keyBy';
3
6
  import { HEADER_ACTUAL_ROW_CLASS, HEADER_ROW_CLASS } from '../../utils/consts';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  /**
3
6
  * Draw drag
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Method, Event, Prop, Listen } from '@stencil/core';
2
5
  import debounce from 'lodash/debounce';
3
6
  import { setItems } from '../../store/dataSource/data.store';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getItemByPosition } from '../../store/dimension/dimension.helpers';
2
5
  export default class RowOrderService {
3
6
  constructor(config) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import debounce from 'lodash/debounce';
2
5
  import each from 'lodash/each';
3
6
  import slice from 'lodash/slice';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import slice from 'lodash/slice';
2
5
  import { h } from '@stencil/core';
3
6
  import { getRange } from '../../store/selection/selection.helpers';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { EDIT_INPUT_WR } from '../../../utils/consts';
2
5
  // is edit input
3
6
  export function isEditInput(el) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { isEnterKey, isTab } from '../../../utils/keyCodes.utils';
3
6
  import { timeout } from '../../../utils/utils';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getRange } from '../../store/selection/selection.helpers';
2
5
  import { codesLetter } from '../../utils/keyCodes';
3
6
  import { isClear, isCtrlKey, isEnterKey, isLetterKey } from '../../utils/keyCodes.utils';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Event, Prop, h, Element, Host } from '@stencil/core';
2
5
  import { EDIT_INPUT_WR } from '../../utils/consts';
3
6
  import { TextEditor } from './editors/text';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Event, h, Host, Listen, Prop, Element, Watch } from '@stencil/core';
2
5
  import ColumnService from '../data/columnService';
3
6
  import SelectionStoreService from '../../store/selection/selection.store.service';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getItemByIndex, getItemByPosition } from '../../store/dimension/dimension.helpers';
2
5
  /** Calculate cell based on x, y position */
3
6
  export function getCurrentCell({ x, y }, { el, rows, cols }) {
@@ -512,7 +512,24 @@ revo-grid .drag-position {
512
512
  right: 0;
513
513
  height: 1px;
514
514
  z-index: 2;
515
- background: red;
515
+ background: gray;
516
+ }
517
+ revo-grid .drag-position-y {
518
+ position: absolute;
519
+ top: 0;
520
+ left: 0;
521
+ bottom: 0;
522
+ width: 1px;
523
+ z-index: 2;
524
+ background: gray;
525
+ }
526
+ revo-grid .drag-auto-scroll-y {
527
+ pointer-events: none;
528
+ position: absolute;
529
+ left: 0;
530
+ top: 0;
531
+ height: 50px;
532
+ width: 1px;
516
533
  }
517
534
  revo-grid .clipboard {
518
535
  position: absolute;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Prop, h, Watch, Element, Listen, Event, Method, State, Host } from '@stencil/core';
2
5
  import reduce from 'lodash/reduce';
3
6
  import each from 'lodash/each';
@@ -21,6 +24,7 @@ import GridScrollingService from './viewport.scrolling.service';
21
24
  import { UUID } from '../../utils/consts';
22
25
  import SelectionStoreConnector from '../../services/selection.store.connector';
23
26
  import StretchColumn, { isStretchPlugin } from '../../plugins/stretchPlugin';
27
+ import ColumnPlugin from '../../plugins/moveColumn/columnDragPlugin';
24
28
  export class RevoGridComponent {
25
29
  constructor() {
26
30
  /**
@@ -89,6 +93,12 @@ export class RevoGridComponent {
89
93
  * Can be filter collection
90
94
  */
91
95
  this.filter = false;
96
+ /**
97
+ * Enables column move plugin
98
+ * Can be boolean
99
+ * Can be filter collection
100
+ */
101
+ this.canMoveColumns = false;
92
102
  /**
93
103
  * Trimmed rows
94
104
  * Functionality which allows to hide rows from main data set
@@ -482,6 +492,13 @@ export class RevoGridComponent {
482
492
  this.columnProvider = new ColumnDataProvider();
483
493
  this.dataProvider = new DataProvider(this.dimensionProvider);
484
494
  this.uuid = `${new Date().getTime()}-rvgrid`;
495
+ const pluginData = {
496
+ data: this.dataProvider,
497
+ column: this.columnProvider,
498
+ dimension: this.dimensionProvider,
499
+ viewport: this.viewportProvider,
500
+ selection: this.selectionStoreConnector,
501
+ };
485
502
  if (this.autoSizeColumn) {
486
503
  this.internalPlugins.push(new AutoSize(this.element, {
487
504
  dataProvider: this.dataProvider,
@@ -498,9 +515,12 @@ export class RevoGridComponent {
498
515
  this.internalPlugins.push(new SortingPlugin(this.element));
499
516
  if (this.plugins) {
500
517
  this.plugins.forEach(p => {
501
- this.internalPlugins.push(new p(this.element));
518
+ this.internalPlugins.push(new p(this.element, pluginData));
502
519
  });
503
520
  }
521
+ if (this.canMoveColumns) {
522
+ this.internalPlugins.push(new ColumnPlugin(this.element, pluginData));
523
+ }
504
524
  this.internalPlugins.push(new GroupingRowPlugin(this.element, {
505
525
  dataProvider: this.dataProvider,
506
526
  columnProvider: this.columnProvider,
@@ -993,6 +1013,24 @@ export class RevoGridComponent {
993
1013
  "reflect": false,
994
1014
  "defaultValue": "false"
995
1015
  },
1016
+ "canMoveColumns": {
1017
+ "type": "boolean",
1018
+ "mutable": false,
1019
+ "complexType": {
1020
+ "original": "boolean",
1021
+ "resolved": "boolean",
1022
+ "references": {}
1023
+ },
1024
+ "required": false,
1025
+ "optional": false,
1026
+ "docs": {
1027
+ "tags": [],
1028
+ "text": "Enables column move plugin\nCan be boolean\nCan be filter collection"
1029
+ },
1030
+ "attribute": "can-move-columns",
1031
+ "reflect": false,
1032
+ "defaultValue": "false"
1033
+ },
996
1034
  "trimmedRows": {
997
1035
  "type": "unknown",
998
1036
  "mutable": false,
@@ -1009,8 +1047,8 @@ export class RevoGridComponent {
1009
1047
  "optional": false,
1010
1048
  "docs": {
1011
1049
  "tags": [{
1012
- "text": "are physical rgRow indexes to hide",
1013
- "name": "trimmedRows"
1050
+ "name": "trimmedRows",
1051
+ "text": "are physical rgRow indexes to hide"
1014
1052
  }],
1015
1053
  "text": "Trimmed rows\nFunctionality which allows to hide rows from main data set"
1016
1054
  },
@@ -1843,8 +1881,8 @@ export class RevoGridComponent {
1843
1881
  "signature": "(type?: RevoGrid.DimensionRows) => Promise<any[]>",
1844
1882
  "parameters": [{
1845
1883
  "tags": [{
1846
- "text": "type - type of source",
1847
- "name": "param"
1884
+ "name": "param",
1885
+ "text": "type - type of source"
1848
1886
  }],
1849
1887
  "text": "- type of source"
1850
1888
  }],
@@ -1872,8 +1910,8 @@ export class RevoGridComponent {
1872
1910
  "signature": "(type?: RevoGrid.DimensionRows) => Promise<RowSource>",
1873
1911
  "parameters": [{
1874
1912
  "tags": [{
1875
- "text": "type - type of source",
1876
- "name": "param"
1913
+ "name": "param",
1914
+ "text": "type - type of source"
1877
1915
  }],
1878
1916
  "text": "- type of source"
1879
1917
  }],
@@ -1905,8 +1943,8 @@ export class RevoGridComponent {
1905
1943
  "signature": "(type?: RevoGrid.DimensionCols) => Promise<ColumnSource>",
1906
1944
  "parameters": [{
1907
1945
  "tags": [{
1908
- "text": "type - type of column",
1909
- "name": "param"
1946
+ "name": "param",
1947
+ "text": "type - type of column"
1910
1948
  }],
1911
1949
  "text": "- type of column"
1912
1950
  }],
@@ -1938,20 +1976,20 @@ export class RevoGridComponent {
1938
1976
  "signature": "(column: RevoGrid.ColumnRegular, index: number, order: 'asc' | 'desc', additive: boolean) => Promise<RevoGrid.ColumnRegular>",
1939
1977
  "parameters": [{
1940
1978
  "tags": [{
1941
- "text": "column - full column details to update",
1942
- "name": "param"
1979
+ "name": "param",
1980
+ "text": "column - full column details to update"
1943
1981
  }],
1944
1982
  "text": "- full column details to update"
1945
1983
  }, {
1946
1984
  "tags": [{
1947
- "text": "index - virtual column index",
1948
- "name": "param"
1985
+ "name": "param",
1986
+ "text": "index - virtual column index"
1949
1987
  }],
1950
1988
  "text": "- virtual column index"
1951
1989
  }, {
1952
1990
  "tags": [{
1953
- "text": "order - order to apply",
1954
- "name": "param"
1991
+ "name": "param",
1992
+ "text": "order - order to apply"
1955
1993
  }],
1956
1994
  "text": "- order to apply"
1957
1995
  }, {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export const HEADER_SLOT = 'header';
2
5
  export const FOOTER_SLOT = 'footer';
3
6
  export const CONTENT_SLOT = 'content';
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export {};
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import OrderRenderer from '../order/orderRenderer';
3
6
  export const RevoViewPort = ({ viewports, dimensions, orderRef, nakedClick, registerElement, onScroll }, children) => {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import throttle from 'lodash/throttle';
2
5
  import { resizeObserver } from '../../utils/resizeObserver';
3
6
  export default class GridResizeService {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export default class GridScrollingService {
2
5
  constructor(setViewport) {
3
6
  this.setViewport = setViewport;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { UUID } from '../../utils/consts';
3
6
  import { DATA_SLOT, HEADER_SLOT } from './viewport.helpers';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { EMPTY_INDEX } from '../../services/selection.store.connector';
2
5
  import { getSourceItem, getVisibleSourceItem } from '../../store/dataSource/data.store';
3
6
  import { columnTypes, rowTypes } from '../../store/storeTypes';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h, Host } from '@stencil/core';
2
5
  import { Component, Prop, Event } from '@stencil/core';
3
6
  import DataStore from '../../store/dataSource/data.store';
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export const RowHeaderRender = s => (__, { rowIndex: i }) => s + i;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Event, h, Method, Element, Prop, Host } from '@stencil/core';
2
5
  import each from 'lodash/each';
3
6
  import GridResizeService from '../revo-grid/viewport.resize.service';
@@ -370,8 +373,8 @@ export class RevogrViewportScroll {
370
373
  "signature": "(e: RevoGrid.ViewPortScrollEvent) => Promise<RevoGrid.ViewPortScrollEvent>",
371
374
  "parameters": [{
372
375
  "tags": [{
373
- "text": "e",
374
- "name": "param"
376
+ "name": "param",
377
+ "text": "e"
375
378
  }],
376
379
  "text": ""
377
380
  }],
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Element, Event, h, Host, Method, Prop } from '@stencil/core';
2
5
  import { getScrollbarWidth } from '../../utils/utils';
3
6
  import LocalScrollService from '../../services/localScrollService';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Prop, h, Host, Element } from '@stencil/core';
2
5
  import { FOCUS_CLASS } from '../../utils/consts';
3
6
  import { getElStyle } from '../overlay/selection.utils';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, Prop, h, Host } from '@stencil/core';
2
5
  import { throttle } from 'lodash';
3
6
  import { TMP_SELECTION_BG_CLASS } from '../../utils/consts';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { setMode } from '@stencil/core';
2
5
  import ThemeService from '../themeManager/themeService';
3
6
  setMode(elm => {
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export * from './components';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  /**
2
5
  * Plugin module for revo-grid grid system
3
6
  * Add support for automatic column resize
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export default class BasePlugin {
2
5
  constructor(revogrid) {
3
6
  this.revogrid = revogrid;
@@ -0,0 +1,22 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
4
+ /**
5
+ * Dispatch custom event to element
6
+ */
7
+ export function dispatch(target, eventName, detail) {
8
+ const event = new CustomEvent(eventName, {
9
+ detail,
10
+ cancelable: true,
11
+ bubbles: true,
12
+ });
13
+ target === null || target === void 0 ? void 0 : target.dispatchEvent(event);
14
+ return event;
15
+ }
16
+ /**
17
+ * Dispatch event by other event target
18
+ */
19
+ export function dispatchOnEvent(e, eventName, detail) {
20
+ e.preventDefault();
21
+ return dispatch(e.target, eventName, detail);
22
+ }
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { getGroupingName, isGrouping } from '../groupingRow/grouping.service';
2
5
  const INITIAL = {
3
6
  mime: 'text/csv',
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import fill from 'lodash/fill';
2
5
  import { columnTypes, rowTypes } from '../../store/storeTypes';
3
6
  import { timeout } from '../../utils/utils';
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export {};
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  const eq = (value, extra) => {
2
5
  if (typeof value === 'undefined' || (value === null && !extra)) {
3
6
  return true;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  const gtThan = function (value, extra) {
2
5
  let conditionValue;
3
6
  if (typeof value === 'number') {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import eq from '../equal';
2
5
  import gt from './greaterThan';
3
6
  const gtThanEq = function (value, extra) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  const lt = function (value, extra) {
2
5
  let conditionValue;
3
6
  if (typeof value === 'number') {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import eq from '../equal';
2
5
  import lt from './lessThan';
3
6
  const lsEq = function (value, extra) {
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  const set = (value) => !(value === '' || value === null || value === void 0);
2
5
  export const notSet = (value) => !set(value);
3
6
  export default set;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  const beginsWith = (value, extra) => {
2
5
  if (!value) {
3
6
  return false;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  const contains = (value, extra) => {
2
5
  if (!value) {
3
6
  return false;
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  export const FILTER_BUTTON_CLASS = 'rv-filter';
3
6
  export const FILTER_BUTTON_ACTIVE = 'active';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import BasePlugin from '../basePlugin';
3
6
  import { FILTER_PROP, isFilterBtn } from './filter.button';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { Component, h, Host, Listen, Prop, State, Event, Method } from '@stencil/core';
2
5
  import { AndOrButton, isFilterBtn, TrashButton } from './filter.button';
3
6
  import { RevoButton } from '../../components/button/button';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import eq, { notEq } from './conditions/equal';
2
5
  import gtThan from './conditions/number/greaterThan';
3
6
  import gtThanEq from './conditions/number/greaterThanOrEqual';
@@ -1 +1,4 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  export {};
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import findIndex from 'lodash/findIndex';
3
6
  import { getItemByIndex } from '../../store/dimension/dimension.helpers';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import isArray from 'lodash/isArray';
2
5
  import map from 'lodash/map';
3
6
  import BasePlugin from '../basePlugin';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { h } from '@stencil/core';
2
5
  import { HEADER_CLASS, MIN_COL_SIZE } from '../../utils/consts';
3
6
  import { HeaderCellRenderer } from '../../components/header/headerCellRenderer';
@@ -1,3 +1,6 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
1
4
  import { GRID_INTERNALS } from '../../utils/consts';
2
5
  export const GROUP_DEPTH = `${GRID_INTERNALS}-depth`;
3
6
  export const PSEUDO_GROUP_ITEM = `${GRID_INTERNALS}-name`;