@revolist/revogrid 3.7.2 → 3.7.3
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/columnService.js +44 -22
- package/custom-element/revo-grid.js +4 -1
- package/custom-element/revogr-data2.js +4 -1
- package/custom-element/revogr-overlay-selection2.js +28 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/revo-grid.cjs.js +1 -1
- package/dist/cjs/revo-grid_11.cjs.entry.js +79 -33
- package/dist/collection/components/data/revogr-data.js +23 -1
- package/dist/collection/components/overlay/keyboard.service.js +1 -1
- package/dist/collection/components/overlay/revogr-overlay-selection.js +44 -7
- package/dist/collection/components/revo-grid/revo-grid.js +9 -0
- package/dist/collection/services/selection.store.connector.js +40 -22
- package/dist/collection/store/selection/selection.store.js +4 -0
- package/dist/collection/store/selection/selection.store.service.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/revo-grid.js +1 -1
- package/dist/esm/revo-grid_11.entry.js +79 -33
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/revo-grid.js +1 -1
- package/dist/esm-es5/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid.esm.js +1 -1
- package/dist/revo-grid/revo-grid.system.js +1 -1
- package/dist/revo-grid/revo-grid_11.entry.js +1 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +1 -1
- package/dist/types/components/data/revogr-data.d.ts +5 -0
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +3 -0
- package/dist/types/components/revo-grid/revo-grid.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/interfaces.d.ts +1 -0
- package/dist/types/services/selection.store.connector.d.ts +6 -0
- package/dist/types/store/selection/selection.store.d.ts +1 -0
- package/dist/types/store/selection/selection.store.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -17,6 +17,11 @@ export declare class RevogrData {
|
|
|
17
17
|
colData: ColumnSource;
|
|
18
18
|
dataStore: RowSource;
|
|
19
19
|
dragStartCell: EventEmitter<MouseEvent>;
|
|
20
|
+
beforerowrender: EventEmitter<{
|
|
21
|
+
row: VNode;
|
|
22
|
+
rowIndex: number;
|
|
23
|
+
model: any;
|
|
24
|
+
}>;
|
|
20
25
|
onStoreChange(): void;
|
|
21
26
|
connectedCallback(): void;
|
|
22
27
|
disconnectedCallback(): void;
|
|
@@ -30,6 +30,7 @@ export declare class OverlaySelection {
|
|
|
30
30
|
internalPaste: EventEmitter;
|
|
31
31
|
internalCellEdit: EventEmitter<Edition.BeforeSaveDataDetails>;
|
|
32
32
|
internalFocusCell: EventEmitter<Edition.BeforeSaveDataDetails>;
|
|
33
|
+
internalNextStoreFocus: EventEmitter<Selection.Cell>;
|
|
33
34
|
setEdit: EventEmitter<Edition.BeforeEdit>;
|
|
34
35
|
/**
|
|
35
36
|
* Used for editors support when close requested
|
|
@@ -53,7 +54,9 @@ export declare class OverlaySelection {
|
|
|
53
54
|
onKeyUp(e: KeyboardEvent): void;
|
|
54
55
|
/** Recived keyboard down from element */
|
|
55
56
|
onKeyDown(e: KeyboardEvent): void;
|
|
57
|
+
private focusCurrent;
|
|
56
58
|
/** Create selection store */
|
|
59
|
+
private unsubscribeSelectionStore;
|
|
57
60
|
selectionServiceSet(s: Observable<Selection.SelectionStoreState>): void;
|
|
58
61
|
createAutoFillService(): void;
|
|
59
62
|
columnServiceSet(): void;
|
|
@@ -381,6 +381,7 @@ export declare class RevoGridComponent {
|
|
|
381
381
|
}>): void;
|
|
382
382
|
onHeaderClick(e: CustomEvent<RevoGrid.InitialHeaderClick>): void;
|
|
383
383
|
onCellFocus(e: CustomEvent<Edition.BeforeSaveDataDetails>): void;
|
|
384
|
+
onCellStoreFocus(e: CustomEvent<Selection.Cell>): void;
|
|
384
385
|
extraElements: VNode[];
|
|
385
386
|
uuid: string | null;
|
|
386
387
|
columnProvider: ColumnDataProvider;
|
|
@@ -736,6 +736,7 @@ declare namespace LocalJSX {
|
|
|
736
736
|
"colData"?: ColumnSource;
|
|
737
737
|
"dataStore"?: RowSource;
|
|
738
738
|
"dimensionRow"?: Observable<RevoGrid.DimensionSettingsState>;
|
|
739
|
+
"onBeforerowrender"?: (event: RevogrDataCustomEvent<{ row: VNode; rowIndex: number; model: any }>) => void;
|
|
739
740
|
"onDragStartCell"?: (event: RevogrDataCustomEvent<MouseEvent>) => void;
|
|
740
741
|
"range"?: boolean;
|
|
741
742
|
"readonly"?: boolean;
|
|
@@ -854,6 +855,7 @@ declare namespace LocalJSX {
|
|
|
854
855
|
"onInternalCellEdit"?: (event: RevogrOverlaySelectionCustomEvent<Edition.BeforeSaveDataDetails>) => void;
|
|
855
856
|
"onInternalCopy"?: (event: RevogrOverlaySelectionCustomEvent<any>) => void;
|
|
856
857
|
"onInternalFocusCell"?: (event: RevogrOverlaySelectionCustomEvent<Edition.BeforeSaveDataDetails>) => void;
|
|
858
|
+
"onInternalNextStoreFocus"?: (event: RevogrOverlaySelectionCustomEvent<Selection.Cell>) => void;
|
|
857
859
|
"onInternalPaste"?: (event: RevogrOverlaySelectionCustomEvent<any>) => void;
|
|
858
860
|
/**
|
|
859
861
|
* Range data apply
|
|
@@ -30,6 +30,12 @@ export default class SelectionStoreConnector {
|
|
|
30
30
|
*/
|
|
31
31
|
register({ x, y }: Selection.Cell): SelectionStore;
|
|
32
32
|
setEditByCell({ x, y }: Selection.Cell, editCell: Selection.Cell): void;
|
|
33
|
+
beforeNextFocusCell(focus: Selection.Cell): void;
|
|
34
|
+
checkNextStore(focus: Selection.Cell, currentStorePointer: Selection.Cell, lastCell: Selection.Cell): {
|
|
35
|
+
store: SelectionStore;
|
|
36
|
+
item: Partial<Selection.Cell>;
|
|
37
|
+
};
|
|
38
|
+
getCurrentStorePointer(store: SelectionStore): Selection.Cell;
|
|
33
39
|
focus(store: SelectionStore, { focus, end }: {
|
|
34
40
|
focus: Cell;
|
|
35
41
|
end: Cell;
|
|
@@ -7,6 +7,7 @@ export declare class SelectionStore {
|
|
|
7
7
|
onChange<Key extends keyof StoreState>(propName: Key, cb: (newValue: StoreState[Key]) => void): void;
|
|
8
8
|
clearFocus(): void;
|
|
9
9
|
setFocus(focus: Selection.Cell, end: Selection.Cell): void;
|
|
10
|
+
nextFocus(focus: Selection.Cell): void;
|
|
10
11
|
setTempArea(range: Selection.TempRange | null): void;
|
|
11
12
|
clearTemp(): void;
|
|
12
13
|
/** Can be applied from selection change or from simple keyboard change clicks */
|
|
@@ -3,7 +3,7 @@ import Cell = Selection.Cell;
|
|
|
3
3
|
import Range = Selection.RangeArea;
|
|
4
4
|
interface Config {
|
|
5
5
|
changeRange(range: Range): boolean;
|
|
6
|
-
focus(focus: Cell, end: Cell): boolean;
|
|
6
|
+
focus(focus: Cell, end: Cell, focusNextStore?: number): boolean;
|
|
7
7
|
}
|
|
8
8
|
export default class SelectionStoreService {
|
|
9
9
|
store: Observable<Selection.SelectionStoreState>;
|
|
@@ -13,6 +13,6 @@ export default class SelectionStoreService {
|
|
|
13
13
|
get focused(): Cell | null;
|
|
14
14
|
get ranged(): Range | null;
|
|
15
15
|
changeRange(range: Range): boolean;
|
|
16
|
-
focus(cell?: Cell, isMulti?: boolean): boolean;
|
|
16
|
+
focus(cell?: Cell, isMulti?: boolean, focusNextStore?: number): boolean;
|
|
17
17
|
}
|
|
18
18
|
export {};
|