@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.
- package/custom-element/index.js +455 -217
- package/custom-element/resize-observer.js +25 -11
- package/dist/cjs/css-shim-9f5bc84d.js +9 -0
- package/dist/cjs/{debounce-e9b040d9.js → debounce-6cea2774.js} +4 -1
- package/dist/cjs/{dom-c8b6d1a7.js → dom-fcb646f0.js} +4 -1
- package/dist/cjs/{index-d3f67f2e.js → index-cb904e00.js} +193 -91
- package/dist/cjs/index.cjs.js +3 -0
- package/dist/cjs/loader.cjs.js +7 -4
- package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-bf327d6a.js} +25 -10
- package/dist/cjs/revo-grid.cjs.js +13 -7
- package/dist/cjs/revo-grid_11.cjs.entry.js +244 -6
- package/dist/cjs/revogr-clipboard.cjs.entry.js +4 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +5 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/button/button.js +3 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +3 -0
- package/dist/collection/components/data/cellRenderer.js +3 -0
- package/dist/collection/components/data/columnService.js +3 -0
- package/dist/collection/components/data/revogr-data.js +3 -0
- package/dist/collection/components/data/rowRenderer.js +3 -0
- package/dist/collection/components/header/headerCellRenderer.js +11 -1
- package/dist/collection/components/header/headerRenderer.js +3 -0
- package/dist/collection/components/header/revogr-header.js +3 -0
- package/dist/collection/components/order/orderRenderer.js +3 -0
- package/dist/collection/components/order/revogr-order-editor.js +3 -0
- package/dist/collection/components/order/rowOrderService.js +3 -0
- package/dist/collection/components/overlay/autofill.service.js +3 -0
- package/dist/collection/components/overlay/clipboard.service.js +3 -0
- package/dist/collection/components/overlay/editors/edit.utils.js +3 -0
- package/dist/collection/components/overlay/editors/text.js +3 -0
- package/dist/collection/components/overlay/keyboard.service.js +3 -0
- package/dist/collection/components/overlay/revogr-edit.js +3 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +3 -0
- package/dist/collection/components/overlay/selection.utils.js +3 -0
- package/dist/collection/components/revo-grid/revo-grid-style.css +18 -1
- package/dist/collection/components/revo-grid/revo-grid.js +53 -15
- package/dist/collection/components/revo-grid/viewport.helpers.js +3 -0
- package/dist/collection/components/revo-grid/viewport.interfaces.js +3 -0
- package/dist/collection/components/revo-grid/viewport.js +3 -0
- package/dist/collection/components/revo-grid/viewport.resize.service.js +3 -0
- package/dist/collection/components/revo-grid/viewport.scrolling.service.js +3 -0
- package/dist/collection/components/revo-grid/viewport.section.js +3 -0
- package/dist/collection/components/revo-grid/viewport.service.js +3 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +3 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +3 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +5 -2
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +3 -0
- package/dist/collection/components/selection-focus/revogr-focus.js +3 -0
- package/dist/collection/components/selection-temp-range/revogr-temp-range.js +3 -0
- package/dist/collection/global/global.js +3 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/plugins/autoSizeColumn.js +3 -0
- package/dist/collection/plugins/basePlugin.js +3 -0
- package/dist/collection/plugins/dispatcher.js +22 -0
- package/dist/collection/plugins/export/csv.js +3 -0
- package/dist/collection/plugins/export/export.plugin.js +3 -0
- package/dist/collection/plugins/export/types.js +3 -0
- package/dist/collection/plugins/filter/conditions/equal.js +3 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +3 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +3 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +3 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +3 -0
- package/dist/collection/plugins/filter/conditions/set.js +3 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +3 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +3 -0
- package/dist/collection/plugins/filter/filter.button.js +3 -0
- package/dist/collection/plugins/filter/filter.plugin.js +3 -0
- package/dist/collection/plugins/filter/filter.pop.js +3 -0
- package/dist/collection/plugins/filter/filter.service.js +3 -0
- package/dist/collection/plugins/filter/filter.types.js +3 -0
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +3 -0
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +3 -0
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +3 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +3 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +3 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +3 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +3 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +3 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +3 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +3 -0
- package/dist/collection/plugins/moveColumn/columnDragPlugin.js +148 -0
- package/dist/collection/plugins/moveColumn/columnOrderHandler.js +63 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +3 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +3 -0
- package/dist/collection/plugins/stretchPlugin.js +3 -0
- package/dist/collection/plugins/trimmed/trimmed.plugin.js +3 -0
- package/dist/collection/services/cell.helpers.js +3 -0
- package/dist/collection/services/column.data.provider.js +3 -0
- package/dist/collection/services/data.provider.js +3 -0
- package/dist/collection/services/dimension.provider.js +3 -0
- package/dist/collection/services/localScrollService.js +3 -0
- package/dist/collection/services/resizable.directive.js +3 -0
- package/dist/collection/services/selection.store.connector.js +3 -0
- package/dist/collection/services/viewport.provider.js +3 -0
- package/dist/collection/store/dataSource/data.proxy.js +3 -0
- package/dist/collection/store/dataSource/data.store.js +3 -0
- package/dist/collection/store/dimension/dimension.helpers.js +3 -0
- package/dist/collection/store/dimension/dimension.store.js +3 -0
- package/dist/collection/store/selection/selection.helpers.js +3 -0
- package/dist/collection/store/selection/selection.store.js +3 -0
- package/dist/collection/store/selection/selection.store.service.js +3 -0
- package/dist/collection/store/storeTypes.js +3 -0
- package/dist/collection/store/viewPort/viewport.helpers.js +3 -0
- package/dist/collection/store/viewPort/viewport.store.js +3 -0
- package/dist/collection/themeManager/theme.compact.js +3 -0
- package/dist/collection/themeManager/theme.default.js +3 -0
- package/dist/collection/themeManager/theme.material.js +3 -0
- package/dist/collection/themeManager/themeService.js +3 -0
- package/dist/collection/utils/closestPolifill.js +3 -0
- package/dist/collection/utils/consts.js +3 -0
- package/dist/collection/utils/generateAlphabetHeader.js +3 -0
- package/dist/collection/utils/keyCodes.js +3 -0
- package/dist/collection/utils/keyCodes.utils.js +3 -0
- package/dist/collection/utils/platform.js +3 -0
- package/dist/collection/utils/resizeObserver.js +3 -0
- package/dist/collection/utils/store.utils.js +3 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/css-shim-e1e1ea5e.js +7 -0
- package/dist/esm/{debounce-8dadcda7.js → debounce-e4e6dd45.js} +5 -2
- package/dist/esm/{dom-1b195079.js → dom-21bd1807.js} +4 -1
- package/dist/esm/{index-42c84e7c.js → index-6f753b3c.js} +193 -91
- package/dist/esm/index.js +3 -1
- package/dist/esm/loader.js +7 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-00c48d78.js} +25 -11
- package/dist/esm/revo-grid.js +13 -7
- package/dist/esm/revo-grid_11.entry.js +244 -6
- package/dist/esm/revogr-clipboard.entry.js +4 -1
- package/dist/esm/revogr-filter-panel.entry.js +5 -2
- package/dist/esm-es5/css-shim-e1e1ea5e.js +4 -0
- package/dist/esm-es5/{debounce-8dadcda7.js → debounce-e4e6dd45.js} +4 -1
- package/dist/esm-es5/{dom-1b195079.js → dom-21bd1807.js} +3 -0
- package/dist/esm-es5/index-6f753b3c.js +5 -0
- package/dist/esm-es5/index.js +3 -0
- package/dist/esm-es5/loader.js +4 -1
- package/dist/esm-es5/resize-observer-00c48d78.js +4 -0
- package/dist/esm-es5/revo-grid.js +4 -1
- package/dist/esm-es5/revo-grid_11.entry.js +4 -1
- package/dist/esm-es5/revogr-clipboard.entry.js +4 -1
- package/dist/esm-es5/revogr-filter-panel.entry.js +4 -1
- package/dist/revo-grid/css-shim-bcf89cc0.system.js +4 -0
- package/dist/revo-grid/css-shim-e1e1ea5e.js +4 -0
- package/dist/revo-grid/{debounce-f40a88f6.system.js → debounce-5a33c710.system.js} +4 -1
- package/dist/revo-grid/{debounce-d097578d.js → debounce-726bdadb.js} +4 -1
- package/dist/revo-grid/{dom-1b195079.js → dom-21bd1807.js} +3 -0
- package/dist/revo-grid/{dom-ee2dd1b3.system.js → dom-726246e2.system.js} +3 -0
- package/dist/revo-grid/index-f14b41a0.system.js +5 -0
- package/dist/revo-grid/index-f30d1de1.js +5 -0
- package/dist/revo-grid/index.esm.js +3 -0
- package/dist/revo-grid/index.system.js +3 -0
- package/dist/revo-grid/resize-observer-00c48d78.js +4 -0
- package/dist/revo-grid/resize-observer-8af0bc0e.system.js +4 -0
- package/dist/revo-grid/revo-grid.esm.js +4 -1
- package/dist/revo-grid/revo-grid.js +3 -2
- package/dist/revo-grid/revo-grid.system.js +4 -1
- package/dist/revo-grid/revo-grid_11.entry.js +4 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +4 -1
- package/dist/revo-grid/revogr-clipboard.entry.js +4 -1
- package/dist/revo-grid/revogr-clipboard.system.entry.js +4 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +4 -1
- package/dist/revo-grid/revogr-filter-panel.system.entry.js +4 -1
- package/dist/types/components/revo-grid/revo-grid.d.ts +6 -0
- package/dist/types/components.d.ts +108 -56
- package/dist/types/plugins/dispatcher.d.ts +10 -0
- package/dist/types/plugins/moveColumn/columnDragPlugin.d.ts +66 -0
- package/dist/types/plugins/moveColumn/columnOrderHandler.d.ts +12 -0
- package/dist/types/services/resizable.directive.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- package/loader/cdn.js +3 -1
- package/loader/index.cjs.js +3 -1
- package/loader/index.d.ts +0 -1
- package/loader/index.es2017.js +3 -1
- package/loader/index.js +3 -1
- package/package.json +22 -20
- package/dist/cjs/css-shim-e33df79c.js +0 -6
- package/dist/esm/css-shim-8d75038b.js +0 -4
- package/dist/esm-es5/css-shim-8d75038b.js +0 -1
- package/dist/esm-es5/index-42c84e7c.js +0 -1
- package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
- package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
- package/dist/revo-grid/css-shim-8d75038b.js +0 -1
- package/dist/revo-grid/index-a15e7527.system.js +0 -1
- package/dist/revo-grid/index-a7f99799.js +0 -1
- package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
- package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
|
@@ -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
|
};
|
|
@@ -512,7 +512,24 @@ revo-grid .drag-position {
|
|
|
512
512
|
right: 0;
|
|
513
513
|
height: 1px;
|
|
514
514
|
z-index: 2;
|
|
515
|
-
background:
|
|
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
|
-
"
|
|
1013
|
-
"
|
|
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
|
-
"
|
|
1847
|
-
"
|
|
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
|
-
"
|
|
1876
|
-
"
|
|
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
|
-
"
|
|
1909
|
-
"
|
|
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
|
-
"
|
|
1942
|
-
"
|
|
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
|
-
"
|
|
1948
|
-
"
|
|
1985
|
+
"name": "param",
|
|
1986
|
+
"text": "index - virtual column index"
|
|
1949
1987
|
}],
|
|
1950
1988
|
"text": "- virtual column index"
|
|
1951
1989
|
}, {
|
|
1952
1990
|
"tags": [{
|
|
1953
|
-
"
|
|
1954
|
-
"
|
|
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
|
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
|
-
"
|
|
374
|
-
"
|
|
376
|
+
"name": "param",
|
|
377
|
+
"text": "e"
|
|
375
378
|
}],
|
|
376
379
|
"text": ""
|
|
377
380
|
}],
|
package/dist/collection/index.js
CHANGED
|
@@ -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
|
+
}
|