@vnejs/module.controller.arrows.grid 0.2.4 → 0.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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -5
- package/dist/types.d.ts +0 -1
- package/package.json +1 -1
- package/src/index.ts +0 -6
- package/src/types.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ export declare abstract class ModuleControllerArrowsGrid<TEvents extends ModuleC
|
|
|
36
36
|
onArrowBottom: () => void | Promise<void>;
|
|
37
37
|
onArrowLeft: () => void | Promise<void>;
|
|
38
38
|
subscribe: () => void;
|
|
39
|
-
getDefaultState: () => TState;
|
|
40
39
|
getGridItems: () => Promise<unknown[]>;
|
|
41
40
|
onGridClear: () => Promise<import("@vnejs/shared").EmitResults<string>> | undefined;
|
|
42
41
|
onGridUpdateItems: () => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,6 @@ export class ModuleControllerArrowsGrid extends ModuleCore {
|
|
|
31
31
|
if (this.EVENT_GRID_UPDATE_ITEMS)
|
|
32
32
|
this.on(this.EVENT_GRID_UPDATE_ITEMS, this.onGridUpdateItems);
|
|
33
33
|
};
|
|
34
|
-
getDefaultState = () => ({ isShow: false });
|
|
35
34
|
getGridItems = async () => [];
|
|
36
35
|
onGridClear = () => {
|
|
37
36
|
this.gridRow = null;
|
|
@@ -84,7 +83,6 @@ export class ModuleControllerArrowsGrid extends ModuleCore {
|
|
|
84
83
|
this.emitPosition();
|
|
85
84
|
};
|
|
86
85
|
onShow = () => {
|
|
87
|
-
this.updateState({ isShow: true });
|
|
88
86
|
this.gridRow = null;
|
|
89
87
|
this.gridColumn = null;
|
|
90
88
|
return this.emit(this.EVENTS.CONTROLS.PUSH, {
|
|
@@ -95,9 +93,6 @@ export class ModuleControllerArrowsGrid extends ModuleCore {
|
|
|
95
93
|
});
|
|
96
94
|
};
|
|
97
95
|
onHide = () => {
|
|
98
|
-
if (!this.state.isShow)
|
|
99
|
-
return;
|
|
100
|
-
this.updateState({ isShow: false });
|
|
101
96
|
this.gridRow = null;
|
|
102
97
|
this.gridColumn = null;
|
|
103
98
|
return this.emit(this.EVENTS.CONTROLS.POP, { key: this.name });
|
package/dist/types.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export type ModuleControllerArrowsGridConstants = ModuleCoreConstants & Record<C
|
|
|
5
5
|
export type ModuleControllerArrowsGridSettings = ModuleCoreSettings;
|
|
6
6
|
export type ModuleControllerArrowsGridParams = ModuleCoreParams;
|
|
7
7
|
export type ModuleControllerArrowsGridState = {
|
|
8
|
-
isShow: boolean;
|
|
9
8
|
gridRow?: number | null;
|
|
10
9
|
gridColumn?: number | null;
|
|
11
10
|
gridIndex?: number;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -78,8 +78,6 @@ export abstract class ModuleControllerArrowsGrid<
|
|
|
78
78
|
if (this.EVENT_GRID_UPDATE_ITEMS) this.on(this.EVENT_GRID_UPDATE_ITEMS, this.onGridUpdateItems);
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
getDefaultState = (): TState => ({ isShow: false }) as TState;
|
|
82
|
-
|
|
83
81
|
getGridItems = async (): Promise<unknown[]> => [];
|
|
84
82
|
|
|
85
83
|
onGridClear = () => {
|
|
@@ -141,7 +139,6 @@ export abstract class ModuleControllerArrowsGrid<
|
|
|
141
139
|
};
|
|
142
140
|
|
|
143
141
|
onShow = () => {
|
|
144
|
-
this.updateState({ isShow: true } as Partial<TState>);
|
|
145
142
|
this.gridRow = null;
|
|
146
143
|
this.gridColumn = null;
|
|
147
144
|
|
|
@@ -154,9 +151,6 @@ export abstract class ModuleControllerArrowsGrid<
|
|
|
154
151
|
};
|
|
155
152
|
|
|
156
153
|
onHide = () => {
|
|
157
|
-
if (!this.state.isShow) return;
|
|
158
|
-
|
|
159
|
-
this.updateState({ isShow: false } as Partial<TState>);
|
|
160
154
|
this.gridRow = null;
|
|
161
155
|
this.gridColumn = null;
|
|
162
156
|
|
package/src/types.ts
CHANGED
|
@@ -10,7 +10,6 @@ export type ModuleControllerArrowsGridSettings = ModuleCoreSettings;
|
|
|
10
10
|
export type ModuleControllerArrowsGridParams = ModuleCoreParams;
|
|
11
11
|
|
|
12
12
|
export type ModuleControllerArrowsGridState = {
|
|
13
|
-
isShow: boolean;
|
|
14
13
|
gridRow?: number | null;
|
|
15
14
|
gridColumn?: number | null;
|
|
16
15
|
gridIndex?: number;
|