@revolist/revogrid 4.22.0 → 4.23.0
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-uZmDBXz7.js → cell-renderer-DWJ9Px9f.js} +9 -3
- package/dist/cjs/{column.drag.plugin-CM_5mKV3.js → column.drag.plugin-CaEBDG-Q.js} +409 -267
- package/dist/cjs/{column.service-DvQDqxxx.js → column.service-f612L4ql.js} +1 -1
- package/dist/cjs/{dimension.helpers-CaIsYC99.js → dimension.helpers-B9HgANnM.js} +14 -146
- package/dist/cjs/{edit.utils-CwMzSIVF.js → edit.utils-pKeiYFLJ.js} +22 -1
- package/dist/cjs/{header-cell-renderer-B1dJwgTO.js → header-cell-renderer-4yq9_WbM.js} +1 -1
- package/dist/cjs/index-DxaSE5uZ.js +136 -0
- package/dist/cjs/index.cjs.js +45 -31
- package/dist/cjs/revo-grid.cjs.entry.js +35 -15
- package/dist/cjs/revogr-attribution_7.cjs.entry.js +44 -26
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +11 -9
- package/dist/cjs/revogr-data_4.cjs.entry.js +132 -178
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +2 -1
- package/dist/cjs/{text-editor-BTnGaIl3.js → text-editor-B4W-m-r-.js} +3 -3
- package/dist/cjs/{throttle-CI4MsAqs.js → throttle-BCwEuJJq.js} +59 -24
- package/dist/cjs/viewport.helpers-BND76K2j.js +140 -0
- package/dist/cjs/{viewport.store-Dcjud-a-.js → viewport.store-BlKQ4x9H.js} +16 -16
- package/dist/collection/components/clipboard/revogr-clipboard.js +1 -1
- package/dist/collection/components/data/revogr-data.js +5 -3
- package/dist/collection/components/header/header-group-renderer.js +2 -1
- package/dist/collection/components/header/header-renderer.js +6 -5
- package/dist/collection/components/header/revogr-header-style.css +13 -3
- package/dist/collection/components/header/revogr-header.js +105 -42
- package/dist/collection/components/order/order-row.service.js +6 -5
- package/dist/collection/components/overlay/keyboard.service.js +25 -3
- package/dist/collection/components/overlay/selection.utils.js +8 -6
- package/dist/collection/components/revoGrid/revo-grid.js +6 -5
- package/dist/collection/components/revoGrid/viewport.service.js +2 -1
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +10 -6
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +4 -10
- package/dist/collection/plugins/filter/filter.panel.js +2 -1
- package/dist/collection/plugins/filter/filter.plugin.js +11 -4
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +25 -1
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +18 -15
- package/dist/collection/plugins/sorting/sorting.func.js +173 -15
- package/dist/collection/plugins/sorting/sorting.plugin.js +167 -84
- package/dist/collection/plugins/sorting/sorting.sign.js +7 -1
- package/dist/collection/serve/controller.js +98 -37
- package/dist/collection/serve/data.js +273 -144
- package/dist/collection/services/dimension.provider.js +16 -1
- package/dist/collection/services/local.scroll.service.js +59 -24
- package/dist/collection/services/scroll.dimension.helpers.js +83 -0
- package/dist/collection/services/selection.store.connector.js +4 -1
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js +22 -9
- package/dist/collection/store/dimension/dimension.store.js +4 -2
- package/dist/collection/store/vp/viewport.helpers.js +9 -0
- package/dist/collection/store/vp/viewport.store.js +5 -16
- package/dist/collection/types/events.js +4 -0
- package/dist/collection/utils/key.utils.js +20 -0
- package/dist/collection/utils/store.utils.js +3 -3
- package/dist/{revo-grid/cell-renderer-K_BKH7Kx.js → esm/cell-renderer-8UiGd-s7.js} +9 -3
- package/dist/esm/{column.drag.plugin-DEqZ2qXJ.js → column.drag.plugin-BsfhsfmB.js} +402 -266
- package/dist/esm/{column.service-Cdz3dYqZ.js → column.service-DbpulTog.js} +1 -1
- package/dist/{revo-grid/debounce-BfO9dz9v.js → esm/debounce-PCRWZliA.js} +1 -1
- package/dist/{revo-grid/dimension.helpers-DzxqJQqN.js → esm/dimension.helpers-CGKwSvw6.js} +7 -128
- package/dist/esm/{edit.utils-CzfeG98N.js → edit.utils-Dnnbd0xG.js} +22 -2
- package/dist/{revo-grid/header-cell-renderer-DXhxZMly.js → esm/header-cell-renderer-DGI2FAD8.js} +1 -1
- package/dist/esm/index-Db3qZoW5.js +127 -0
- package/dist/esm/index.js +15 -10
- package/dist/esm/revo-grid.entry.js +34 -14
- package/dist/esm/revogr-attribution_7.entry.js +43 -25
- package/dist/esm/revogr-clipboard_3.entry.js +12 -10
- package/dist/esm/revogr-data_4.entry.js +133 -179
- package/dist/esm/revogr-filter-panel.entry.js +3 -2
- package/dist/esm/{text-editor-C1ks5eQ4.js → text-editor-C3RUSwH5.js} +2 -2
- package/dist/esm/{throttle-BEjFQa2l.js → throttle-CaUDyxyU.js} +60 -25
- package/dist/esm/viewport.helpers-CoCAvmZs.js +133 -0
- package/dist/{revo-grid/viewport.store-saAZJHRo.js → esm/viewport.store-COAfzAyu.js} +15 -17
- package/dist/{esm/cell-renderer-K_BKH7Kx.js → revo-grid/cell-renderer-8UiGd-s7.js} +9 -3
- package/dist/revo-grid/{column.drag.plugin-DEqZ2qXJ.js → column.drag.plugin-BsfhsfmB.js} +402 -266
- package/dist/revo-grid/{column.service-Cdz3dYqZ.js → column.service-DbpulTog.js} +1 -1
- package/dist/{esm/debounce-BfO9dz9v.js → revo-grid/debounce-PCRWZliA.js} +1 -1
- package/dist/{esm/dimension.helpers-DzxqJQqN.js → revo-grid/dimension.helpers-CGKwSvw6.js} +7 -128
- package/dist/revo-grid/{edit.utils-CzfeG98N.js → edit.utils-Dnnbd0xG.js} +22 -2
- package/dist/{esm/header-cell-renderer-DXhxZMly.js → revo-grid/header-cell-renderer-DGI2FAD8.js} +1 -1
- package/dist/revo-grid/index-Db3qZoW5.js +127 -0
- package/dist/revo-grid/index.esm.js +15 -10
- package/dist/revo-grid/revo-grid.entry.js +34 -14
- package/dist/revo-grid/revogr-attribution_7.entry.js +43 -25
- package/dist/revo-grid/revogr-clipboard_3.entry.js +12 -10
- package/dist/revo-grid/revogr-data_4.entry.js +133 -179
- package/dist/revo-grid/revogr-filter-panel.entry.js +3 -2
- package/dist/revo-grid/{text-editor-C1ks5eQ4.js → text-editor-C3RUSwH5.js} +2 -2
- package/dist/revo-grid/{throttle-BEjFQa2l.js → throttle-CaUDyxyU.js} +60 -25
- package/dist/revo-grid/viewport.helpers-CoCAvmZs.js +133 -0
- package/dist/{esm/viewport.store-saAZJHRo.js → revo-grid/viewport.store-COAfzAyu.js} +15 -17
- package/dist/types/components/header/header-group-renderer.d.ts +1 -0
- package/dist/types/components/header/header-renderer.d.ts +1 -0
- package/dist/types/components/header/revogr-header.d.ts +6 -0
- package/dist/types/components/overlay/keyboard.service.d.ts +5 -0
- package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +8 -0
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +29 -3
- package/dist/types/plugins/sorting/sorting.func.d.ts +25 -2
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +84 -9
- package/dist/types/plugins/sorting/sorting.sign.d.ts +5 -1
- package/dist/types/plugins/sorting/sorting.types.d.ts +46 -1
- package/dist/types/services/local.scroll.service.d.ts +10 -2
- package/dist/types/services/scroll.dimension.helpers.d.ts +20 -0
- package/dist/types/store/vp/viewport.helpers.d.ts +2 -0
- package/dist/types/types/events.d.ts +1 -1
- package/dist/types/types/interfaces.d.ts +11 -0
- package/dist/types/utils/key.utils.d.ts +8 -0
- package/hydrate/index.js +791 -539
- package/hydrate/index.mjs +791 -539
- package/package.json +1 -1
- package/standalone/column.service.js +1 -1
- package/standalone/data.store.js +1 -1
- package/standalone/debounce.js +1 -1
- package/standalone/dimension.helpers.js +1 -1
- package/standalone/index.js +1 -1
- package/standalone/local.scroll.timer.js +1 -1
- package/standalone/revo-grid.js +1 -1
- package/standalone/revogr-clipboard2.js +1 -1
- package/standalone/revogr-data2.js +1 -1
- package/standalone/revogr-edit.js +1 -1
- package/standalone/revogr-edit2.js +1 -1
- package/standalone/revogr-filter-panel.js +1 -1
- package/standalone/revogr-header2.js +1 -1
- package/standalone/revogr-order-editor2.js +1 -1
- package/standalone/revogr-overlay-selection2.js +1 -1
- package/standalone/revogr-row-headers.js +1 -1
- package/standalone/revogr-row-headers2.js +1 -1
- package/standalone/revogr-scroll-virtual2.js +1 -1
- package/standalone/revogr-viewport-scroll2.js +1 -1
- package/standalone/selection.utils.js +1 -1
- package/standalone/throttle.js +1 -1
- package/standalone/toNumber.js +1 -1
- package/dist/cjs/viewport.helpers-BAovztDd.js +0 -58
- package/dist/esm/viewport.helpers-VXhsJZtn.js +0 -52
- package/dist/revo-grid/viewport.helpers-VXhsJZtn.js +0 -52
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by Revolist OU ❤️
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Collects data for pinned columns in the required @ViewportProps format.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Represents the slot names for the viewport slots.
|
|
11
|
-
*/
|
|
12
|
-
const HEADER_SLOT = 'header'; // Slot name for the header slot
|
|
13
|
-
const FOOTER_SLOT = 'footer'; // Slot name for the footer slot
|
|
14
|
-
const CONTENT_SLOT = 'content'; // Slot name for the content slot
|
|
15
|
-
const DATA_SLOT = 'data'; // Slot name for the data slot
|
|
16
|
-
/**
|
|
17
|
-
* Returns the last visible cell in the viewport for a given row type.
|
|
18
|
-
* Coordinates are not zero-based and are relative to the viewport.
|
|
19
|
-
* If needed to be zero-based they can be adjusted by subtracting 1.
|
|
20
|
-
*/
|
|
21
|
-
function getLastCell(data, rowType) {
|
|
22
|
-
// Get the last visible column count from the viewport column data.
|
|
23
|
-
const lastVisibleColumnCount = data.viewports[data.colType].store.get('realCount');
|
|
24
|
-
// Get the last visible row count for the given row type from the viewport column data.
|
|
25
|
-
const lastVisibleRowCount = data.viewports[rowType].store.get('realCount');
|
|
26
|
-
// Return the last visible cell with the last visible column count and row count.
|
|
27
|
-
return {
|
|
28
|
-
x: lastVisibleColumnCount,
|
|
29
|
-
y: lastVisibleRowCount,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function viewportDataPartition(data, type, slot, fixed) {
|
|
33
|
-
return {
|
|
34
|
-
colData: data.colStore,
|
|
35
|
-
viewportCol: data.viewports[data.colType].store,
|
|
36
|
-
viewportRow: data.viewports[type].store,
|
|
37
|
-
/**
|
|
38
|
-
* lastCell is the last real coordinate + 1, saved to selection store
|
|
39
|
-
*/
|
|
40
|
-
lastCell: getLastCell(data, type),
|
|
41
|
-
slot,
|
|
42
|
-
type,
|
|
43
|
-
canDrag: !fixed,
|
|
44
|
-
position: data.position,
|
|
45
|
-
dataStore: data.rowStores[type].store,
|
|
46
|
-
dimensionCol: data.dimensions[data.colType].store,
|
|
47
|
-
dimensionRow: data.dimensions[type].store,
|
|
48
|
-
style: fixed
|
|
49
|
-
? { height: `${data.dimensions[type].store.get('realSize')}px` }
|
|
50
|
-
: undefined,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exports.CONTENT_SLOT = CONTENT_SLOT;
|
|
55
|
-
exports.DATA_SLOT = DATA_SLOT;
|
|
56
|
-
exports.FOOTER_SLOT = FOOTER_SLOT;
|
|
57
|
-
exports.HEADER_SLOT = HEADER_SLOT;
|
|
58
|
-
exports.viewportDataPartition = viewportDataPartition;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by Revolist OU ❤️
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Collects data for pinned columns in the required @ViewportProps format.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Represents the slot names for the viewport slots.
|
|
9
|
-
*/
|
|
10
|
-
const HEADER_SLOT = 'header'; // Slot name for the header slot
|
|
11
|
-
const FOOTER_SLOT = 'footer'; // Slot name for the footer slot
|
|
12
|
-
const CONTENT_SLOT = 'content'; // Slot name for the content slot
|
|
13
|
-
const DATA_SLOT = 'data'; // Slot name for the data slot
|
|
14
|
-
/**
|
|
15
|
-
* Returns the last visible cell in the viewport for a given row type.
|
|
16
|
-
* Coordinates are not zero-based and are relative to the viewport.
|
|
17
|
-
* If needed to be zero-based they can be adjusted by subtracting 1.
|
|
18
|
-
*/
|
|
19
|
-
function getLastCell(data, rowType) {
|
|
20
|
-
// Get the last visible column count from the viewport column data.
|
|
21
|
-
const lastVisibleColumnCount = data.viewports[data.colType].store.get('realCount');
|
|
22
|
-
// Get the last visible row count for the given row type from the viewport column data.
|
|
23
|
-
const lastVisibleRowCount = data.viewports[rowType].store.get('realCount');
|
|
24
|
-
// Return the last visible cell with the last visible column count and row count.
|
|
25
|
-
return {
|
|
26
|
-
x: lastVisibleColumnCount,
|
|
27
|
-
y: lastVisibleRowCount,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function viewportDataPartition(data, type, slot, fixed) {
|
|
31
|
-
return {
|
|
32
|
-
colData: data.colStore,
|
|
33
|
-
viewportCol: data.viewports[data.colType].store,
|
|
34
|
-
viewportRow: data.viewports[type].store,
|
|
35
|
-
/**
|
|
36
|
-
* lastCell is the last real coordinate + 1, saved to selection store
|
|
37
|
-
*/
|
|
38
|
-
lastCell: getLastCell(data, type),
|
|
39
|
-
slot,
|
|
40
|
-
type,
|
|
41
|
-
canDrag: !fixed,
|
|
42
|
-
position: data.position,
|
|
43
|
-
dataStore: data.rowStores[type].store,
|
|
44
|
-
dimensionCol: data.dimensions[data.colType].store,
|
|
45
|
-
dimensionRow: data.dimensions[type].store,
|
|
46
|
-
style: fixed
|
|
47
|
-
? { height: `${data.dimensions[type].store.get('realSize')}px` }
|
|
48
|
-
: undefined,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { CONTENT_SLOT as C, DATA_SLOT as D, FOOTER_SLOT as F, HEADER_SLOT as H, viewportDataPartition as v };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by Revolist OU ❤️
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Collects data for pinned columns in the required @ViewportProps format.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Represents the slot names for the viewport slots.
|
|
9
|
-
*/
|
|
10
|
-
const HEADER_SLOT = 'header'; // Slot name for the header slot
|
|
11
|
-
const FOOTER_SLOT = 'footer'; // Slot name for the footer slot
|
|
12
|
-
const CONTENT_SLOT = 'content'; // Slot name for the content slot
|
|
13
|
-
const DATA_SLOT = 'data'; // Slot name for the data slot
|
|
14
|
-
/**
|
|
15
|
-
* Returns the last visible cell in the viewport for a given row type.
|
|
16
|
-
* Coordinates are not zero-based and are relative to the viewport.
|
|
17
|
-
* If needed to be zero-based they can be adjusted by subtracting 1.
|
|
18
|
-
*/
|
|
19
|
-
function getLastCell(data, rowType) {
|
|
20
|
-
// Get the last visible column count from the viewport column data.
|
|
21
|
-
const lastVisibleColumnCount = data.viewports[data.colType].store.get('realCount');
|
|
22
|
-
// Get the last visible row count for the given row type from the viewport column data.
|
|
23
|
-
const lastVisibleRowCount = data.viewports[rowType].store.get('realCount');
|
|
24
|
-
// Return the last visible cell with the last visible column count and row count.
|
|
25
|
-
return {
|
|
26
|
-
x: lastVisibleColumnCount,
|
|
27
|
-
y: lastVisibleRowCount,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function viewportDataPartition(data, type, slot, fixed) {
|
|
31
|
-
return {
|
|
32
|
-
colData: data.colStore,
|
|
33
|
-
viewportCol: data.viewports[data.colType].store,
|
|
34
|
-
viewportRow: data.viewports[type].store,
|
|
35
|
-
/**
|
|
36
|
-
* lastCell is the last real coordinate + 1, saved to selection store
|
|
37
|
-
*/
|
|
38
|
-
lastCell: getLastCell(data, type),
|
|
39
|
-
slot,
|
|
40
|
-
type,
|
|
41
|
-
canDrag: !fixed,
|
|
42
|
-
position: data.position,
|
|
43
|
-
dataStore: data.rowStores[type].store,
|
|
44
|
-
dimensionCol: data.dimensions[data.colType].store,
|
|
45
|
-
dimensionRow: data.dimensions[type].store,
|
|
46
|
-
style: fixed
|
|
47
|
-
? { height: `${data.dimensions[type].store.get('realSize')}px` }
|
|
48
|
-
: undefined,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { CONTENT_SLOT as C, DATA_SLOT as D, FOOTER_SLOT as F, HEADER_SLOT as H, viewportDataPartition as v };
|