@revolist/revogrid 4.23.12 → 4.23.14
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/dist/cjs/{cell-renderer-DfUCisis.js → cell-renderer-Dcz022q7.js} +5 -23
- package/dist/cjs/{column.drag.plugin-BRraLvz3.js → column.drag.plugin-BGLbi1zS.js} +8 -37
- package/dist/cjs/{column.service-BNWNiJW3.js → column.service-C1Qvcf5l.js} +23 -62
- package/dist/cjs/{header-cell-renderer-DyjOxArm.js → header-cell-renderer-vVr4IWNV.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -5
- package/dist/cjs/revo-grid.cjs.entry.js +5 -5
- package/dist/cjs/revogr-attribution_7.cjs.entry.js +4 -40
- package/dist/cjs/revogr-data_4.cjs.entry.js +5 -13
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +67 -32
- package/dist/collection/components/data/column.service.js +23 -62
- package/dist/collection/components/data/row-renderer.js +2 -15
- package/dist/collection/components/overlay/revogr-overlay-selection.js +7 -27
- package/dist/collection/components/revoGrid/revo-grid.js +7 -14
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +2 -10
- package/dist/collection/plugins/filter/filter.panel.js +66 -31
- package/dist/collection/plugins/filter/filter.plugin.js +4 -4
- package/dist/collection/plugins/filter/filter.style.css +18 -34
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +2 -7
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +2 -30
- package/dist/collection/serve/controller.js +0 -1
- package/dist/esm/{cell-renderer-CLTRlCa5.js → cell-renderer-BtN-NGCk.js} +5 -23
- package/dist/esm/{column.drag.plugin-V9DDE3mU.js → column.drag.plugin-4Ixr4ijU.js} +9 -37
- package/dist/esm/{column.service-C6hByxPy.js → column.service-CC_SD8W3.js} +23 -62
- package/dist/esm/{header-cell-renderer-BMmXRsd_.js → header-cell-renderer-B-LX2sgu.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/revo-grid.entry.js +5 -5
- package/dist/esm/revogr-attribution_7.entry.js +4 -40
- package/dist/esm/revogr-data_4.entry.js +5 -13
- package/dist/esm/revogr-filter-panel.entry.js +67 -32
- package/dist/revo-grid/{cell-renderer-CLTRlCa5.js → cell-renderer-BtN-NGCk.js} +5 -23
- package/dist/revo-grid/{column.drag.plugin-V9DDE3mU.js → column.drag.plugin-4Ixr4ijU.js} +9 -37
- package/dist/revo-grid/{column.service-C6hByxPy.js → column.service-CC_SD8W3.js} +23 -62
- package/dist/revo-grid/{header-cell-renderer-BMmXRsd_.js → header-cell-renderer-B-LX2sgu.js} +1 -1
- package/dist/revo-grid/index.esm.js +5 -5
- package/dist/revo-grid/revo-grid.entry.js +5 -5
- package/dist/revo-grid/revogr-attribution_7.entry.js +4 -40
- package/dist/revo-grid/revogr-data_4.entry.js +5 -13
- package/dist/revo-grid/revogr-filter-panel.entry.js +67 -32
- package/dist/types/components/data/column.service.d.ts +1 -10
- package/dist/types/components/data/row-renderer.d.ts +1 -1
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +3 -4
- package/dist/types/components/revoGrid/revo-grid.d.ts +4 -4
- package/dist/types/components.d.ts +14 -14
- package/dist/types/plugins/filter/filter.panel.d.ts +4 -0
- package/dist/types/plugins/filter/filter.plugin.d.ts +0 -1
- package/dist/types/plugins/filter/filter.types.d.ts +0 -1
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +0 -4
- package/dist/types/types/interfaces.d.ts +0 -8
- package/hydrate/index.js +107 -201
- package/hydrate/index.mjs +107 -201
- package/package.json +1 -1
- package/readme.md +1 -20
- package/standalone/column.service.js +1 -1
- package/standalone/index.js +1 -1
- package/standalone/revo-grid.js +1 -1
- package/standalone/revogr-data2.js +1 -1
- package/standalone/revogr-filter-panel.js +1 -1
- package/standalone/revogr-overlay-selection2.js +1 -1
- package/standalone/revogr-viewport-scroll2.js +1 -1
- package/dist/collection/components/overlay/clipboard.utils.js +0 -26
- package/dist/types/components/overlay/clipboard.utils.d.ts +0 -3
|
@@ -36,12 +36,15 @@ revo-grid[theme^=dark] .revo-button.outline {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
revogr-filter-panel {
|
|
39
|
-
position: absolute;
|
|
40
39
|
display: block;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
revogr-filter-panel .filter-panel-dialog {
|
|
43
|
+
position: fixed;
|
|
41
44
|
top: 0;
|
|
42
45
|
left: 0;
|
|
43
46
|
z-index: 100;
|
|
44
|
-
max-height: calc(
|
|
47
|
+
max-height: calc(100vh - 16px);
|
|
45
48
|
overflow: auto;
|
|
46
49
|
opacity: 1;
|
|
47
50
|
transform: none;
|
|
@@ -51,23 +54,27 @@ revogr-filter-panel {
|
|
|
51
54
|
box-shadow: 0 5px 18px -2px var(--revo-grid-filter-panel-shadow, rgba(0, 0, 0, 0.15));
|
|
52
55
|
padding: 10px;
|
|
53
56
|
border-radius: 8px;
|
|
57
|
+
margin: 0;
|
|
54
58
|
min-width: 220px;
|
|
55
59
|
text-align: left;
|
|
56
60
|
animation: revogr-filter-panel-open 140ms cubic-bezier(0.2, 0, 0, 1);
|
|
57
61
|
}
|
|
58
|
-
revogr-filter-panel .filter-
|
|
62
|
+
revogr-filter-panel .filter-panel-dialog::backdrop {
|
|
63
|
+
background: transparent;
|
|
64
|
+
}
|
|
65
|
+
revogr-filter-panel .filter-panel-dialog .filter-holder > div {
|
|
59
66
|
display: flex;
|
|
60
67
|
flex-direction: column;
|
|
61
68
|
}
|
|
62
|
-
revogr-filter-panel label {
|
|
69
|
+
revogr-filter-panel .filter-panel-dialog label {
|
|
63
70
|
font-size: 13px;
|
|
64
71
|
display: block;
|
|
65
72
|
padding: 8px 0;
|
|
66
73
|
}
|
|
67
|
-
revogr-filter-panel select {
|
|
74
|
+
revogr-filter-panel .filter-panel-dialog select {
|
|
68
75
|
width: 100%;
|
|
69
76
|
}
|
|
70
|
-
revogr-filter-panel input[type=text] {
|
|
77
|
+
revogr-filter-panel .filter-panel-dialog input[type=text] {
|
|
71
78
|
border: 0;
|
|
72
79
|
min-height: 34px;
|
|
73
80
|
margin: 5px 0;
|
|
@@ -77,11 +84,11 @@ revogr-filter-panel input[type=text] {
|
|
|
77
84
|
box-sizing: border-box;
|
|
78
85
|
width: 100%;
|
|
79
86
|
}
|
|
80
|
-
revogr-filter-panel .filter-actions {
|
|
87
|
+
revogr-filter-panel .filter-panel-dialog .filter-actions {
|
|
81
88
|
text-align: right;
|
|
82
89
|
margin-right: -5px;
|
|
83
90
|
}
|
|
84
|
-
revogr-filter-panel .filter-actions button {
|
|
91
|
+
revogr-filter-panel .filter-panel-dialog .filter-actions button {
|
|
85
92
|
margin-top: 10px;
|
|
86
93
|
margin-right: 5px;
|
|
87
94
|
}
|
|
@@ -97,7 +104,7 @@ revogr-filter-panel .filter-actions button {
|
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
106
|
@media (prefers-reduced-motion: reduce) {
|
|
100
|
-
revogr-filter-panel {
|
|
107
|
+
revogr-filter-panel .filter-panel-dialog {
|
|
101
108
|
animation: none;
|
|
102
109
|
}
|
|
103
110
|
}
|
|
@@ -182,15 +189,9 @@ revogr-filter-panel .filter-actions button {
|
|
|
182
189
|
.multi-filter-list div {
|
|
183
190
|
white-space: nowrap;
|
|
184
191
|
}
|
|
185
|
-
.multi-filter-list .multi-filter-list-row {
|
|
186
|
-
display: flex;
|
|
187
|
-
align-items: center;
|
|
188
|
-
gap: 6px;
|
|
189
|
-
}
|
|
190
192
|
.multi-filter-list .multi-filter-list-action {
|
|
191
193
|
display: flex;
|
|
192
|
-
|
|
193
|
-
justify-content: flex-end;
|
|
194
|
+
justify-content: space-between;
|
|
194
195
|
align-items: center;
|
|
195
196
|
}
|
|
196
197
|
.multi-filter-list .and-or-button {
|
|
@@ -218,23 +219,6 @@ revogr-filter-panel .filter-actions button {
|
|
|
218
219
|
|
|
219
220
|
.select-input {
|
|
220
221
|
display: flex;
|
|
222
|
+
justify-content: space-between;
|
|
221
223
|
align-items: center;
|
|
222
|
-
flex: 1 1 auto;
|
|
223
|
-
gap: 6px;
|
|
224
|
-
min-width: 0;
|
|
225
|
-
}
|
|
226
|
-
.select-input .select-filter,
|
|
227
|
-
.select-input .filter-extra {
|
|
228
|
-
flex: 1 1 0;
|
|
229
|
-
min-width: 0;
|
|
230
|
-
}
|
|
231
|
-
.select-input .filter-extra {
|
|
232
|
-
display: flex;
|
|
233
|
-
}
|
|
234
|
-
.select-input .filter-extra > * {
|
|
235
|
-
width: 100%;
|
|
236
|
-
}
|
|
237
|
-
.select-input input[type=text],
|
|
238
|
-
.select-input input[type=date] {
|
|
239
|
-
margin: 0;
|
|
240
224
|
}
|
|
@@ -21,17 +21,12 @@ export const GroupingRowRenderer = (props) => {
|
|
|
21
21
|
const name = model[PSEUDO_GROUP_ITEM];
|
|
22
22
|
const expanded = model[GROUP_EXPANDED];
|
|
23
23
|
const depth = parseInt(model[GROUP_DEPTH], 10) || 0;
|
|
24
|
-
const groupRowAttrs = {
|
|
25
|
-
rowClass: 'groupingRow',
|
|
26
|
-
depth,
|
|
27
|
-
expanded,
|
|
28
|
-
};
|
|
29
24
|
if (groupingCustomRenderer) {
|
|
30
|
-
return (h(RowRenderer, Object.assign({}, props,
|
|
25
|
+
return (h(RowRenderer, Object.assign({}, props, { rowClass: "groupingRow", depth: depth }), h("div", { onClick: e => expandEvent(e, model, itemIndex) }, groupingCustomRenderer(h, Object.assign(Object.assign({}, props), { colType: props.providers.colType, name,
|
|
31
26
|
expanded,
|
|
32
27
|
depth })))));
|
|
33
28
|
}
|
|
34
|
-
return (h(RowRenderer, Object.assign({}, props,
|
|
29
|
+
return (h(RowRenderer, Object.assign({}, props, { rowClass: "groupingRow", depth: depth }), hasExpand && [
|
|
35
30
|
h("button", { class: { [GROUP_EXPAND_BTN]: true }, onClick: e => expandEvent(e, model, itemIndex) }, expandSvgIconVNode(expanded)),
|
|
36
31
|
name,
|
|
37
32
|
]));
|
|
@@ -22,17 +22,8 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
22
22
|
constructor(revogrid, providers) {
|
|
23
23
|
super(revogrid, providers);
|
|
24
24
|
this.moveFunc = debounce((e) => this.doMove(e), 5);
|
|
25
|
-
this.preventHeaderClickAfterDrag = (event) => {
|
|
26
|
-
if (!this.preventNextHeaderClick) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
this.preventNextHeaderClick = false;
|
|
30
|
-
event.preventDefault();
|
|
31
|
-
};
|
|
32
25
|
this.staticDragData = null;
|
|
33
26
|
this.dragData = null;
|
|
34
|
-
this.columnDragMoved = false;
|
|
35
|
-
this.preventNextHeaderClick = false;
|
|
36
27
|
this.localSubscriptions = {};
|
|
37
28
|
this.orderUi = new ColumnOrderHandler();
|
|
38
29
|
revogrid.appendChild(this.orderUi.render());
|
|
@@ -51,13 +42,11 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
51
42
|
callback: (e) => this.move(e),
|
|
52
43
|
};
|
|
53
44
|
this.addEventListener(COLUMN_CLICK, ({ detail }) => this.dragStart(detail));
|
|
54
|
-
this.revogrid.addEventListener('beforeheaderclick', this.preventHeaderClickAfterDrag, { capture: true });
|
|
55
45
|
}
|
|
56
46
|
dragStart({ event, data }) {
|
|
57
47
|
if (event.defaultPrevented) {
|
|
58
48
|
return;
|
|
59
49
|
}
|
|
60
|
-
this.preventNextHeaderClick = false;
|
|
61
50
|
const { defaultPrevented } = dispatch(this.revogrid, COLUMN_DRAG_START_EVENT, data);
|
|
62
51
|
// check if allowed to drag particulat column
|
|
63
52
|
if (defaultPrevented) {
|
|
@@ -79,8 +68,7 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
79
68
|
const cols = this.getDimension(data.pin || 'rgCol');
|
|
80
69
|
const gridRect = this.revogrid.getBoundingClientRect();
|
|
81
70
|
const elRect = dataEl.getBoundingClientRect();
|
|
82
|
-
const startItem = getItemByPosition(cols, getLeftRelative(event.x, gridRect.left, elRect.left - gridRect.left) +
|
|
83
|
-
(cols.renderOffset || 0));
|
|
71
|
+
const startItem = getItemByPosition(cols, getLeftRelative(event.x, gridRect.left, elRect.left - gridRect.left) + (cols.renderOffset || 0));
|
|
84
72
|
this.staticDragData = {
|
|
85
73
|
startPos: event.x,
|
|
86
74
|
startItem,
|
|
@@ -111,14 +99,10 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
111
99
|
if (rgCol.itemIndex >= this.staticDragData.cols.count) {
|
|
112
100
|
return;
|
|
113
101
|
}
|
|
114
|
-
this.orderUi.showHandler(
|
|
102
|
+
this.orderUi.showHandler(rgCol.end - (this.staticDragData.cols.renderOffset || 0) + dragData.scrollOffset, dragData.gridRect.width);
|
|
115
103
|
}
|
|
116
104
|
}
|
|
117
105
|
move(e) {
|
|
118
|
-
if (this.staticDragData &&
|
|
119
|
-
Math.abs(this.staticDragData.startPos - e.x) > 10) {
|
|
120
|
-
this.columnDragMoved = true;
|
|
121
|
-
}
|
|
122
106
|
dispatch(this.revogrid, COLUMN_DRAG_MOVE_EVENT, e);
|
|
123
107
|
// then do move
|
|
124
108
|
this.moveFunc(e);
|
|
@@ -127,7 +111,6 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
127
111
|
this.clearOrder();
|
|
128
112
|
}
|
|
129
113
|
onMouseUp(e) {
|
|
130
|
-
const suppressClick = this.columnDragMoved;
|
|
131
114
|
// apply new positions
|
|
132
115
|
if (this.dragData && this.staticDragData) {
|
|
133
116
|
let relativePos = getLeftRelative(e.x, this.dragData.gridRect.left, this.dragData.scrollOffset);
|
|
@@ -150,9 +133,6 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
150
133
|
}
|
|
151
134
|
dispatch(this.revogrid, COLUMN_DRAG_END_EVENT, this.getData(this.staticDragData, newItems, source));
|
|
152
135
|
}
|
|
153
|
-
if (suppressClick) {
|
|
154
|
-
this.preventNextHeaderClick = !!e.target.closest('revogr-header');
|
|
155
|
-
}
|
|
156
136
|
this.clearOrder();
|
|
157
137
|
}
|
|
158
138
|
clearLocalSubscriptions() {
|
|
@@ -161,7 +141,6 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
161
141
|
clearOrder() {
|
|
162
142
|
this.staticDragData = null;
|
|
163
143
|
this.dragData = null;
|
|
164
|
-
this.columnDragMoved = false;
|
|
165
144
|
this.clearLocalSubscriptions();
|
|
166
145
|
this.orderUi.stop(this.revogrid);
|
|
167
146
|
}
|
|
@@ -171,7 +150,6 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
171
150
|
clearSubscriptions() {
|
|
172
151
|
super.clearSubscriptions();
|
|
173
152
|
this.clearLocalSubscriptions();
|
|
174
|
-
this.revogrid.removeEventListener('beforeheaderclick', this.preventHeaderClickAfterDrag, { capture: true });
|
|
175
153
|
}
|
|
176
154
|
getData({ gridEl, dataEl, pin }, order, source = []) {
|
|
177
155
|
const gridRect = gridEl.getBoundingClientRect();
|
|
@@ -193,9 +171,3 @@ export class ColumnMovePlugin extends BasePlugin {
|
|
|
193
171
|
export function getLeftRelative(absoluteX, gridPos, offset) {
|
|
194
172
|
return absoluteX - gridPos - offset;
|
|
195
173
|
}
|
|
196
|
-
export function getColumnDragPosition(targetItem, startItem, renderOffset, scrollOffset) {
|
|
197
|
-
const insertionEdge = startItem.itemIndex > targetItem.itemIndex
|
|
198
|
-
? targetItem.start
|
|
199
|
-
: targetItem.end;
|
|
200
|
-
return insertionEdge - renderOffset + scrollOffset;
|
|
201
|
-
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h, f as Build } from './index-Chp_81rd.js';
|
|
5
5
|
import { n as DATA_ROW, w as DRAG_ICON_CLASS, x as DRAGGABLE_CLASS } from './dimension.helpers-CGKwSvw6.js';
|
|
6
|
-
import { l as GROUP_EXPAND_BTN, m as GROUP_EXPAND_EVENT, G as GROUP_DEPTH, h as GROUP_EXPANDED, P as PSEUDO_GROUP_ITEM, O as isRowDragService, B as getCellDataParsed } from './column.service-
|
|
6
|
+
import { l as GROUP_EXPAND_BTN, m as GROUP_EXPAND_EVENT, G as GROUP_DEPTH, h as GROUP_EXPANDED, P as PSEUDO_GROUP_ITEM, O as isRowDragService, B as getCellDataParsed } from './column.service-CC_SD8W3.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Renders sorting direction and optional additive sorting rank.
|
|
@@ -16,22 +16,9 @@ const SortingSign = ({ column }) => {
|
|
|
16
16
|
return (h("span", Object.assign({}, indicatorAttrs), h("i", Object.assign({}, iconAttrs)), (column === null || column === void 0 ? void 0 : column.sortIndex) ? (h("sup", Object.assign({}, orderIndexAttrs), column.sortIndex)) : null));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
20
|
-
var t = {};
|
|
21
|
-
for (var p in s)
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
23
|
-
t[p] = s[p];
|
|
24
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
25
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
26
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
27
|
-
t[p[i]] = s[p[i]];
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
};
|
|
31
19
|
const PADDING_DEPTH = 10;
|
|
32
|
-
const RowRenderer = (
|
|
33
|
-
|
|
34
|
-
const props = Object.assign(Object.assign(Object.assign({}, attrs), { [DATA_ROW]: index }), (typeof groupingLevel === 'number'
|
|
20
|
+
const RowRenderer = ({ rowClass, index, size, start, depth, groupingLevel }, cells) => {
|
|
21
|
+
const props = Object.assign({ [DATA_ROW]: index }, (typeof groupingLevel === 'number'
|
|
35
22
|
? { 'data-level': groupingLevel }
|
|
36
23
|
: {}));
|
|
37
24
|
return (h("div", Object.assign({}, props, { class: `rgRow ${rowClass || ''}`, style: {
|
|
@@ -58,17 +45,12 @@ const GroupingRowRenderer = (props) => {
|
|
|
58
45
|
const name = model[PSEUDO_GROUP_ITEM];
|
|
59
46
|
const expanded = model[GROUP_EXPANDED];
|
|
60
47
|
const depth = parseInt(model[GROUP_DEPTH], 10) || 0;
|
|
61
|
-
const groupRowAttrs = {
|
|
62
|
-
rowClass: 'groupingRow',
|
|
63
|
-
depth,
|
|
64
|
-
expanded,
|
|
65
|
-
};
|
|
66
48
|
if (groupingCustomRenderer) {
|
|
67
|
-
return (h(RowRenderer, Object.assign({}, props,
|
|
49
|
+
return (h(RowRenderer, Object.assign({}, props, { rowClass: "groupingRow", depth: depth }), h("div", { onClick: e => expandEvent(e, model, itemIndex) }, groupingCustomRenderer(h, Object.assign(Object.assign({}, props), { colType: props.providers.colType, name,
|
|
68
50
|
expanded,
|
|
69
51
|
depth })))));
|
|
70
52
|
}
|
|
71
|
-
return (h(RowRenderer, Object.assign({}, props,
|
|
53
|
+
return (h(RowRenderer, Object.assign({}, props, { rowClass: "groupingRow", depth: depth }), hasExpand && [
|
|
72
54
|
h("button", { class: { [GROUP_EXPAND_BTN]: true }, onClick: e => expandEvent(e, model, itemIndex) }, expandSvgIconVNode(expanded)),
|
|
73
55
|
name,
|
|
74
56
|
]));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist OU ❤️
|
|
3
3
|
*/
|
|
4
|
-
import { J as reduce, g as getRange, K as baseEach, C as getColumnType, c as columnTypes, L as toInteger, u as isGrouping, t as getGroupingName, r as rowTypes, B as getCellDataParsed, A as getCellRaw, j as GROUP_COLUMN_PROP, I as getColumnByProp, h as GROUP_EXPANDED, x as getParsedGroup, y as isSameGroup, G as GROUP_DEPTH, e as PSEUDO_GROUP_ITEM_VALUE, d as PSEUDO_GROUP_ITEM_ID, o as GROUPING_ROW_TYPE, p as getSource, f as PSEUDO_GROUP_COLUMN, s as gatherGrouping, m as GROUP_EXPAND_EVENT, v as isGroupingColumn, q as getExpanded, E as isColGrouping } from './column.service-
|
|
4
|
+
import { J as reduce, g as getRange, K as baseEach, C as getColumnType, c as columnTypes, L as toInteger, u as isGrouping, t as getGroupingName, r as rowTypes, B as getCellDataParsed, A as getCellRaw, j as GROUP_COLUMN_PROP, I as getColumnByProp, h as GROUP_EXPANDED, x as getParsedGroup, y as isSameGroup, G as GROUP_DEPTH, e as PSEUDO_GROUP_ITEM_VALUE, d as PSEUDO_GROUP_ITEM_ID, o as GROUPING_ROW_TYPE, p as getSource, f as PSEUDO_GROUP_COLUMN, s as gatherGrouping, m as GROUP_EXPAND_EVENT, v as isGroupingColumn, q as getExpanded, E as isColGrouping } from './column.service-CC_SD8W3.js';
|
|
5
5
|
import { K as createStore, l as setStore, i as calculateDimensionData, L as identity, N as isArray, b as getSourceItem, g as getPhysical, e as setItems, j as getItemByPosition } from './dimension.helpers-CGKwSvw6.js';
|
|
6
6
|
import { j as calculateRowHeaderSize } from './viewport.store-_c579YyM.js';
|
|
7
7
|
import { g as getScrollbarSize, t as timeout } from './index-Db3qZoW5.js';
|
|
8
8
|
import { h } from './index-Chp_81rd.js';
|
|
9
9
|
import { b as FILTER_PROP, i as isFilterBtn } from './filter.button-C8XTWPU2.js';
|
|
10
10
|
import { d as debounce } from './debounce-PCRWZliA.js';
|
|
11
|
-
import { O as ON_COLUMN_CLICK, d as dispatch } from './header-cell-renderer-
|
|
11
|
+
import { O as ON_COLUMN_CLICK, d as dispatch } from './header-cell-renderer-B-LX2sgu.js';
|
|
12
12
|
|
|
13
13
|
function calculateRealSize({ count, originItemSize, sizes, }) {
|
|
14
14
|
const safeCount = Math.max(0, count);
|
|
@@ -1400,7 +1400,8 @@ class FilterPlugin extends BasePlugin {
|
|
|
1400
1400
|
async headerclick(e) {
|
|
1401
1401
|
var _a, _b;
|
|
1402
1402
|
const el = (_a = e.detail.originalEvent) === null || _a === void 0 ? void 0 : _a.target;
|
|
1403
|
-
|
|
1403
|
+
const filterButton = isFilterBtn(el);
|
|
1404
|
+
if (!filterButton) {
|
|
1404
1405
|
return;
|
|
1405
1406
|
}
|
|
1406
1407
|
e.preventDefault();
|
|
@@ -1414,9 +1415,8 @@ class FilterPlugin extends BasePlugin {
|
|
|
1414
1415
|
return;
|
|
1415
1416
|
}
|
|
1416
1417
|
// filter button clicked, open filter dialog
|
|
1417
|
-
const
|
|
1418
|
-
const
|
|
1419
|
-
const data = Object.assign(Object.assign(Object.assign({}, e.detail), this.filterCollection[prop]), { x: buttonPos.x - gridPos.x, y: buttonPos.y - gridPos.y + buttonPos.height, autoCorrect: true, filterTypes: this.getColumnFilter(e.detail.filter), filterItems: this.multiFilterItems, extraContent: this.extraHyperContent, extraBottomContent: this.extraBottomHyperContent });
|
|
1418
|
+
const buttonPos = (filterButton instanceof HTMLElement ? filterButton : el).getBoundingClientRect();
|
|
1419
|
+
const data = Object.assign(Object.assign(Object.assign({}, e.detail), this.filterCollection[prop]), { x: buttonPos.x, y: buttonPos.y + buttonPos.height, autoCorrect: true, filterTypes: this.getColumnFilter(e.detail.filter), filterItems: this.multiFilterItems, extraContent: this.extraHyperContent });
|
|
1420
1420
|
(_b = this.beforeshow) === null || _b === void 0 ? void 0 : _b.call(this, data);
|
|
1421
1421
|
this.pop.show(data);
|
|
1422
1422
|
}
|
|
@@ -2670,17 +2670,8 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2670
2670
|
constructor(revogrid, providers) {
|
|
2671
2671
|
super(revogrid, providers);
|
|
2672
2672
|
this.moveFunc = debounce((e) => this.doMove(e), 5);
|
|
2673
|
-
this.preventHeaderClickAfterDrag = (event) => {
|
|
2674
|
-
if (!this.preventNextHeaderClick) {
|
|
2675
|
-
return;
|
|
2676
|
-
}
|
|
2677
|
-
this.preventNextHeaderClick = false;
|
|
2678
|
-
event.preventDefault();
|
|
2679
|
-
};
|
|
2680
2673
|
this.staticDragData = null;
|
|
2681
2674
|
this.dragData = null;
|
|
2682
|
-
this.columnDragMoved = false;
|
|
2683
|
-
this.preventNextHeaderClick = false;
|
|
2684
2675
|
this.localSubscriptions = {};
|
|
2685
2676
|
this.orderUi = new ColumnOrderHandler();
|
|
2686
2677
|
revogrid.appendChild(this.orderUi.render());
|
|
@@ -2699,13 +2690,11 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2699
2690
|
callback: (e) => this.move(e),
|
|
2700
2691
|
};
|
|
2701
2692
|
this.addEventListener(COLUMN_CLICK, ({ detail }) => this.dragStart(detail));
|
|
2702
|
-
this.revogrid.addEventListener('beforeheaderclick', this.preventHeaderClickAfterDrag, { capture: true });
|
|
2703
2693
|
}
|
|
2704
2694
|
dragStart({ event, data }) {
|
|
2705
2695
|
if (event.defaultPrevented) {
|
|
2706
2696
|
return;
|
|
2707
2697
|
}
|
|
2708
|
-
this.preventNextHeaderClick = false;
|
|
2709
2698
|
const { defaultPrevented } = dispatch(this.revogrid, COLUMN_DRAG_START_EVENT, data);
|
|
2710
2699
|
// check if allowed to drag particulat column
|
|
2711
2700
|
if (defaultPrevented) {
|
|
@@ -2727,8 +2716,7 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2727
2716
|
const cols = this.getDimension(data.pin || 'rgCol');
|
|
2728
2717
|
const gridRect = this.revogrid.getBoundingClientRect();
|
|
2729
2718
|
const elRect = dataEl.getBoundingClientRect();
|
|
2730
|
-
const startItem = getItemByPosition(cols, getLeftRelative(event.x, gridRect.left, elRect.left - gridRect.left) +
|
|
2731
|
-
(cols.renderOffset || 0));
|
|
2719
|
+
const startItem = getItemByPosition(cols, getLeftRelative(event.x, gridRect.left, elRect.left - gridRect.left) + (cols.renderOffset || 0));
|
|
2732
2720
|
this.staticDragData = {
|
|
2733
2721
|
startPos: event.x,
|
|
2734
2722
|
startItem,
|
|
@@ -2759,14 +2747,10 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2759
2747
|
if (rgCol.itemIndex >= this.staticDragData.cols.count) {
|
|
2760
2748
|
return;
|
|
2761
2749
|
}
|
|
2762
|
-
this.orderUi.showHandler(
|
|
2750
|
+
this.orderUi.showHandler(rgCol.end - (this.staticDragData.cols.renderOffset || 0) + dragData.scrollOffset, dragData.gridRect.width);
|
|
2763
2751
|
}
|
|
2764
2752
|
}
|
|
2765
2753
|
move(e) {
|
|
2766
|
-
if (this.staticDragData &&
|
|
2767
|
-
Math.abs(this.staticDragData.startPos - e.x) > 10) {
|
|
2768
|
-
this.columnDragMoved = true;
|
|
2769
|
-
}
|
|
2770
2754
|
dispatch(this.revogrid, COLUMN_DRAG_MOVE_EVENT, e);
|
|
2771
2755
|
// then do move
|
|
2772
2756
|
this.moveFunc(e);
|
|
@@ -2775,7 +2759,6 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2775
2759
|
this.clearOrder();
|
|
2776
2760
|
}
|
|
2777
2761
|
onMouseUp(e) {
|
|
2778
|
-
const suppressClick = this.columnDragMoved;
|
|
2779
2762
|
// apply new positions
|
|
2780
2763
|
if (this.dragData && this.staticDragData) {
|
|
2781
2764
|
let relativePos = getLeftRelative(e.x, this.dragData.gridRect.left, this.dragData.scrollOffset);
|
|
@@ -2798,9 +2781,6 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2798
2781
|
}
|
|
2799
2782
|
dispatch(this.revogrid, COLUMN_DRAG_END_EVENT, this.getData(this.staticDragData, newItems, source));
|
|
2800
2783
|
}
|
|
2801
|
-
if (suppressClick) {
|
|
2802
|
-
this.preventNextHeaderClick = !!e.target.closest('revogr-header');
|
|
2803
|
-
}
|
|
2804
2784
|
this.clearOrder();
|
|
2805
2785
|
}
|
|
2806
2786
|
clearLocalSubscriptions() {
|
|
@@ -2809,7 +2789,6 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2809
2789
|
clearOrder() {
|
|
2810
2790
|
this.staticDragData = null;
|
|
2811
2791
|
this.dragData = null;
|
|
2812
|
-
this.columnDragMoved = false;
|
|
2813
2792
|
this.clearLocalSubscriptions();
|
|
2814
2793
|
this.orderUi.stop(this.revogrid);
|
|
2815
2794
|
}
|
|
@@ -2819,7 +2798,6 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2819
2798
|
clearSubscriptions() {
|
|
2820
2799
|
super.clearSubscriptions();
|
|
2821
2800
|
this.clearLocalSubscriptions();
|
|
2822
|
-
this.revogrid.removeEventListener('beforeheaderclick', this.preventHeaderClickAfterDrag, { capture: true });
|
|
2823
2801
|
}
|
|
2824
2802
|
getData({ gridEl, dataEl, pin }, order, source = []) {
|
|
2825
2803
|
const gridRect = gridEl.getBoundingClientRect();
|
|
@@ -2841,11 +2819,5 @@ class ColumnMovePlugin extends BasePlugin {
|
|
|
2841
2819
|
function getLeftRelative(absoluteX, gridPos, offset) {
|
|
2842
2820
|
return absoluteX - gridPos - offset;
|
|
2843
2821
|
}
|
|
2844
|
-
function getColumnDragPosition(targetItem, startItem, renderOffset, scrollOffset) {
|
|
2845
|
-
const insertionEdge = startItem.itemIndex > targetItem.itemIndex
|
|
2846
|
-
? targetItem.start
|
|
2847
|
-
: targetItem.end;
|
|
2848
|
-
return insertionEdge - renderOffset + scrollOffset;
|
|
2849
|
-
}
|
|
2850
2822
|
|
|
2851
|
-
export { AutoSizeColumnPlugin as A, BasePlugin as B, ColumnAutoSizeMode as C, DimensionStore as D, ExportFilePlugin as E, FILTER_TRIMMED_TYPE as F, GroupingRowPlugin as G, SelectionStore as S, StretchColumn as a, ExportCsv as b, FILTER_CONFIG_CHANGED_EVENT as c, FILTE_PANEL as d, FilterPlugin as e, filterCoreFunctionsIndexedByType as f, filterTypes as g, filterNames as h, isStretchPlugin as i, doCollapse as j, doExpand as k, COLUMN_DRAG_MOVE_EVENT as l, COLUMN_DRAG_END_EVENT as m, BEFORE_COLUMN_DRAG_END_EVENT as n, COLUMN_DRAG_START_EVENT as o, ColumnMovePlugin as p, getLeftRelative as q,
|
|
2823
|
+
export { AutoSizeColumnPlugin as A, BasePlugin as B, ColumnAutoSizeMode as C, DimensionStore as D, ExportFilePlugin as E, FILTER_TRIMMED_TYPE as F, GroupingRowPlugin as G, SelectionStore as S, StretchColumn as a, ExportCsv as b, FILTER_CONFIG_CHANGED_EVENT as c, FILTE_PANEL as d, FilterPlugin as e, filterCoreFunctionsIndexedByType as f, filterTypes as g, filterNames as h, isStretchPlugin as i, doCollapse as j, doExpand as k, COLUMN_DRAG_MOVE_EVENT as l, COLUMN_DRAG_END_EVENT as m, BEFORE_COLUMN_DRAG_END_EVENT as n, COLUMN_DRAG_START_EVENT as o, ColumnMovePlugin as p, getLeftRelative as q, SortingPlugin as r, hasActiveSorting as s, getSortingIndex as t, sortIndexByItems as u, defaultCellCompare as v, descCellCompare as w, getNextOrder as x, getComparer as y };
|
|
@@ -817,82 +817,43 @@ class ColumnService {
|
|
|
817
817
|
mapping,
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
|
-
getTransformedDataToApply(
|
|
820
|
+
getTransformedDataToApply(start, data) {
|
|
821
821
|
const changed = {};
|
|
822
822
|
const copyRowLength = data.length;
|
|
823
|
-
if (!copyRowLength) {
|
|
824
|
-
return {
|
|
825
|
-
changed,
|
|
826
|
-
range: null,
|
|
827
|
-
};
|
|
828
|
-
}
|
|
829
823
|
const colLength = this.columns.length;
|
|
830
824
|
const rowLength = this.dataStore.get('items').length;
|
|
831
|
-
const bounds = this.getDataApplyBounds(start, targetRange, copyRowLength, rowLength, colLength);
|
|
832
|
-
if (!bounds) {
|
|
833
|
-
return {
|
|
834
|
-
changed,
|
|
835
|
-
range: null,
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
const { startRow, startCol, endRow } = bounds;
|
|
839
|
-
let maxCol = startCol - 1;
|
|
840
|
-
let lastRow = startRow - 1;
|
|
841
825
|
// rows
|
|
842
|
-
|
|
826
|
+
let rowIndex = start.y;
|
|
827
|
+
let maxCol = 0;
|
|
828
|
+
for (let i = 0; rowIndex < rowLength && i < copyRowLength; rowIndex++, i++) {
|
|
843
829
|
// copy original data link
|
|
844
830
|
const copyRow = data[i % copyRowLength];
|
|
845
831
|
const copyColLength = (copyRow === null || copyRow === void 0 ? void 0 : copyRow.length) || 0;
|
|
846
|
-
|
|
847
|
-
|
|
832
|
+
// columns
|
|
833
|
+
let colIndex = start.x;
|
|
834
|
+
for (let j = 0; colIndex < colLength && j < copyColLength; colIndex++, j++) {
|
|
835
|
+
const p = this.columns[colIndex].prop;
|
|
836
|
+
const currentCol = j % colLength;
|
|
837
|
+
/** if can write */
|
|
838
|
+
if (!this.isReadOnly(rowIndex, colIndex)) {
|
|
839
|
+
/** to show before save */
|
|
840
|
+
if (!changed[rowIndex]) {
|
|
841
|
+
changed[rowIndex] = {};
|
|
842
|
+
}
|
|
843
|
+
changed[rowIndex][p] = copyRow[currentCol];
|
|
844
|
+
}
|
|
848
845
|
}
|
|
849
|
-
maxCol = Math.max(maxCol,
|
|
850
|
-
bounds,
|
|
851
|
-
copyColLength,
|
|
852
|
-
copyRow,
|
|
853
|
-
rowIndex,
|
|
854
|
-
start,
|
|
855
|
-
targetRange,
|
|
856
|
-
}));
|
|
857
|
-
lastRow = rowIndex;
|
|
846
|
+
maxCol = Math.max(maxCol, colIndex - 1);
|
|
858
847
|
}
|
|
848
|
+
const range = getRange(start, {
|
|
849
|
+
y: rowIndex - 1,
|
|
850
|
+
x: maxCol,
|
|
851
|
+
});
|
|
859
852
|
return {
|
|
860
853
|
changed,
|
|
861
|
-
range
|
|
854
|
+
range,
|
|
862
855
|
};
|
|
863
856
|
}
|
|
864
|
-
getDataApplyBounds(start, targetRange, copyRowLength, rowLength, colLength) {
|
|
865
|
-
var _a, _b, _c;
|
|
866
|
-
const startRow = (_a = targetRange === null || targetRange === void 0 ? void 0 : targetRange.y) !== null && _a !== void 0 ? _a : start.y;
|
|
867
|
-
const startCol = (_b = targetRange === null || targetRange === void 0 ? void 0 : targetRange.x) !== null && _b !== void 0 ? _b : start.x;
|
|
868
|
-
const endRow = Math.min(rowLength - 1, (_c = targetRange === null || targetRange === void 0 ? void 0 : targetRange.y1) !== null && _c !== void 0 ? _c : start.y + copyRowLength - 1);
|
|
869
|
-
if (endRow < startRow || startCol >= colLength) {
|
|
870
|
-
return null;
|
|
871
|
-
}
|
|
872
|
-
return { startRow, startCol, endRow, colLength };
|
|
873
|
-
}
|
|
874
|
-
applyClipboardRow(changed, { bounds, copyColLength, copyRow, rowIndex, start, targetRange, }) {
|
|
875
|
-
var _a;
|
|
876
|
-
const endCol = Math.min(bounds.colLength - 1, (_a = targetRange === null || targetRange === void 0 ? void 0 : targetRange.x1) !== null && _a !== void 0 ? _a : start.x + copyColLength - 1);
|
|
877
|
-
for (let colIndex = bounds.startCol, j = 0; colIndex <= endCol; colIndex++, j++) {
|
|
878
|
-
if (this.isReadOnly(rowIndex, colIndex)) {
|
|
879
|
-
continue;
|
|
880
|
-
}
|
|
881
|
-
const prop = this.columns[colIndex].prop;
|
|
882
|
-
changed[rowIndex] = changed[rowIndex] || {};
|
|
883
|
-
changed[rowIndex][prop] = copyRow[j % copyColLength];
|
|
884
|
-
}
|
|
885
|
-
return endCol;
|
|
886
|
-
}
|
|
887
|
-
getAppliedRange({ startRow, startCol }, lastRow, maxCol) {
|
|
888
|
-
if (lastRow < startRow || maxCol < startCol) {
|
|
889
|
-
return null;
|
|
890
|
-
}
|
|
891
|
-
return getRange({ x: startCol, y: startRow }, {
|
|
892
|
-
y: lastRow,
|
|
893
|
-
x: maxCol,
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
857
|
getRangeStaticData(d, value) {
|
|
897
858
|
const changed = {};
|
|
898
859
|
// rows
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built by Revolist OU ❤️
|
|
3
3
|
*/
|
|
4
4
|
import { h } from './index-Chp_81rd.js';
|
|
5
|
-
import { Q as doPropMerge } from './column.service-
|
|
5
|
+
import { Q as doPropMerge } from './column.service-CC_SD8W3.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Dispatches a custom event to a specified target element.
|
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist OU ❤️
|
|
3
3
|
*/
|
|
4
|
-
export { o as GROUPING_ROW_TYPE, j as GROUP_COLUMN_PROP, G as GROUP_DEPTH, h as GROUP_EXPANDED, l as GROUP_EXPAND_BTN, m as GROUP_EXPAND_EVENT, k as GROUP_ORIGINAL_INDEX, f as PSEUDO_GROUP_COLUMN, P as PSEUDO_GROUP_ITEM, d as PSEUDO_GROUP_ITEM_ID, e as PSEUDO_GROUP_ITEM_VALUE, c as columnTypes, a as cropCellToMax, H as gatherGroup, s as gatherGrouping, z as getCellData, B as getCellDataParsed, A as getCellRaw, I as getColumnByProp, D as getColumnSizes, C as getColumnType, F as getColumns, q as getExpanded, t as getGroupingName, x as getParsedGroup, g as getRange, p as getSource, E as isColGrouping, u as isGrouping, v as isGroupingColumn, b as isRangeSingleCell, i as isRowType, y as isSameGroup, w as measureEqualDepth, n as nextCell, r as rowTypes } from './column.service-
|
|
5
|
-
import { B as BasePlugin } from './column.drag.plugin-
|
|
6
|
-
export { A as AutoSizeColumnPlugin, n as BEFORE_COLUMN_DRAG_END_EVENT, m as COLUMN_DRAG_END_EVENT, l as COLUMN_DRAG_MOVE_EVENT, o as COLUMN_DRAG_START_EVENT, C as ColumnAutoSizeMode, p as ColumnMovePlugin, D as DimensionStore, b as ExportCsv, E as ExportFilePlugin, c as FILTER_CONFIG_CHANGED_EVENT, F as FILTER_TRIMMED_TYPE, d as FILTE_PANEL, e as FilterPlugin, G as GroupingRowPlugin, S as SelectionStore,
|
|
7
|
-
export { d as dispatch, a as dispatchByEvent } from './header-cell-renderer-
|
|
8
|
-
export { C as CellRenderer, G as GroupingRowRenderer, S as SortingSign, e as expandEvent, a as expandSvgIconVNode } from './cell-renderer-
|
|
4
|
+
export { o as GROUPING_ROW_TYPE, j as GROUP_COLUMN_PROP, G as GROUP_DEPTH, h as GROUP_EXPANDED, l as GROUP_EXPAND_BTN, m as GROUP_EXPAND_EVENT, k as GROUP_ORIGINAL_INDEX, f as PSEUDO_GROUP_COLUMN, P as PSEUDO_GROUP_ITEM, d as PSEUDO_GROUP_ITEM_ID, e as PSEUDO_GROUP_ITEM_VALUE, c as columnTypes, a as cropCellToMax, H as gatherGroup, s as gatherGrouping, z as getCellData, B as getCellDataParsed, A as getCellRaw, I as getColumnByProp, D as getColumnSizes, C as getColumnType, F as getColumns, q as getExpanded, t as getGroupingName, x as getParsedGroup, g as getRange, p as getSource, E as isColGrouping, u as isGrouping, v as isGroupingColumn, b as isRangeSingleCell, i as isRowType, y as isSameGroup, w as measureEqualDepth, n as nextCell, r as rowTypes } from './column.service-CC_SD8W3.js';
|
|
5
|
+
import { B as BasePlugin } from './column.drag.plugin-4Ixr4ijU.js';
|
|
6
|
+
export { A as AutoSizeColumnPlugin, n as BEFORE_COLUMN_DRAG_END_EVENT, m as COLUMN_DRAG_END_EVENT, l as COLUMN_DRAG_MOVE_EVENT, o as COLUMN_DRAG_START_EVENT, C as ColumnAutoSizeMode, p as ColumnMovePlugin, D as DimensionStore, b as ExportCsv, E as ExportFilePlugin, c as FILTER_CONFIG_CHANGED_EVENT, F as FILTER_TRIMMED_TYPE, d as FILTE_PANEL, e as FilterPlugin, G as GroupingRowPlugin, S as SelectionStore, r as SortingPlugin, a as StretchColumn, v as defaultCellCompare, w as descCellCompare, j as doCollapse, k as doExpand, f as filterCoreFunctionsIndexedByType, h as filterNames, g as filterTypes, y as getComparer, q as getLeftRelative, x as getNextOrder, t as getSortingIndex, s as hasActiveSorting, i as isStretchPlugin, u as sortIndexByItems } from './column.drag.plugin-4Ixr4ijU.js';
|
|
7
|
+
export { d as dispatch, a as dispatchByEvent } from './header-cell-renderer-B-LX2sgu.js';
|
|
8
|
+
export { C as CellRenderer, G as GroupingRowRenderer, S as SortingSign, e as expandEvent, a as expandSvgIconVNode } from './cell-renderer-BtN-NGCk.js';
|
|
9
9
|
export { a as applyMixins, f as findPositionInArray, g as getScrollbarSize, m as mergeSortedArray, p as pushSorted, r as range, s as scaleValue, t as timeout } from './index-Db3qZoW5.js';
|
|
10
10
|
export { T as TextEditor } from './text-editor-C3RUSwH5.js';
|
|
11
11
|
export { k as isAll, c as isClear, h as isCopy, a as isCtrlKey, b as isCtrlMetaKey, g as isCut, m as isEditInput, n as isEditorCtrConstructible, f as isEnterKeyValue, i as isMetaKey, j as isPaste, l as isShortcutModifier, d as isTab, e as isTabKeyValue } from './edit.utils-Dnnbd0xG.js';
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Built by Revolist OU ❤️
|
|
3
3
|
*/
|
|
4
4
|
import { h, r as registerInstance, d as createEvent, e as Host, g as getElement } from './index-Chp_81rd.js';
|
|
5
|
-
import { c as columnTypes, J as reduce, C as getColumnType, r as rowTypes, i as isRowType, D as getColumnSizes, a as cropCellToMax, n as nextCell, I as getColumnByProp, F as getColumns } from './column.service-
|
|
5
|
+
import { c as columnTypes, J as reduce, C as getColumnType, r as rowTypes, i as isRowType, D as getColumnSizes, a as cropCellToMax, n as nextCell, I as getColumnByProp, F as getColumns } from './column.service-CC_SD8W3.js';
|
|
6
6
|
import { D as DataStore, b as getSourceItem, f as getSourceItemVirtualIndexByProp, d as setSourceByPhysicalIndex, s as setSourceByVirtualIndex, a as getVisibleSourceItem, h as gatherTrimmedItems, k as getItemByIndex, R as RESIZE_INTERVAL } from './dimension.helpers-CGKwSvw6.js';
|
|
7
7
|
import { d as debounce } from './debounce-PCRWZliA.js';
|
|
8
8
|
import { g as getScrollDimension, v as viewportDataPartition, F as FOOTER_SLOT, C as CONTENT_SLOT, H as HEADER_SLOT, D as DATA_SLOT } from './viewport.helpers-CoCAvmZs.js';
|
|
9
|
-
import { D as DimensionStore, S as SelectionStore, B as BasePlugin, G as GroupingRowPlugin, a as StretchColumn, i as isStretchPlugin, A as AutoSizeColumnPlugin, e as FilterPlugin, E as ExportFilePlugin,
|
|
9
|
+
import { D as DimensionStore, S as SelectionStore, B as BasePlugin, G as GroupingRowPlugin, a as StretchColumn, i as isStretchPlugin, A as AutoSizeColumnPlugin, e as FilterPlugin, E as ExportFilePlugin, r as SortingPlugin, p as ColumnMovePlugin } from './column.drag.plugin-4Ixr4ijU.js';
|
|
10
10
|
import { V as ViewportStore } from './viewport.store-_c579YyM.js';
|
|
11
11
|
import { T as ThemeService } from './theme.service-BmnDvr6P.js';
|
|
12
12
|
import { t as timeout } from './index-Db3qZoW5.js';
|
|
13
13
|
import { g as getPropertyFromEvent } from './events-BvSmBueA.js';
|
|
14
14
|
import './filter.button-C8XTWPU2.js';
|
|
15
|
-
import './header-cell-renderer-
|
|
15
|
+
import './header-cell-renderer-B-LX2sgu.js';
|
|
16
16
|
|
|
17
17
|
class ColumnDataProvider {
|
|
18
18
|
get stores() {
|
|
@@ -1445,7 +1445,7 @@ const RevoGridComponent = class {
|
|
|
1445
1445
|
this.rowSize = 0;
|
|
1446
1446
|
/** Indicates default column size. */
|
|
1447
1447
|
this.colSize = 100;
|
|
1448
|
-
/** When true, user can
|
|
1448
|
+
/** When true, user can range selection. */
|
|
1449
1449
|
this.range = false;
|
|
1450
1450
|
/** When true, grid in read only mode. */
|
|
1451
1451
|
this.readonly = false;
|
|
@@ -1457,7 +1457,7 @@ const RevoGridComponent = class {
|
|
|
1457
1457
|
this.noHorizontalScrollTransfer = false;
|
|
1458
1458
|
/** When true cell focus appear. */
|
|
1459
1459
|
this.canFocus = true;
|
|
1460
|
-
/** When true enable clipboard.
|
|
1460
|
+
/** When true enable clipboard. */
|
|
1461
1461
|
this.useClipboard = true;
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Columns - defines an array of grid columns.
|