@vnejs/plugins.views.screens.loading 0.2.1 → 0.2.2
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.
|
@@ -3,10 +3,10 @@ import type { LoadingPluginConstants, LoadingPluginEvents, LoadingPluginParams,
|
|
|
3
3
|
import type { LoadingPluginState } from "../utils/loading.js";
|
|
4
4
|
export declare class LoadingController extends ModuleController<LoadingPluginEvents, LoadingPluginConstants, LoadingPluginSettings, LoadingPluginParams, LoadingPluginState> {
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
EVENT_UPDATE_VIEW: "vne:loading:update";
|
|
7
|
+
BGNAME: string;
|
|
8
|
+
CONTROLS: {};
|
|
9
|
+
CONTROLS_INDEX: number;
|
|
10
10
|
subscribe: () => void;
|
|
11
11
|
beforeShow: () => Promise<void>;
|
|
12
12
|
onMemoryCleared: () => Promise<unknown[] | undefined>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ModuleController } from "@vnejs/module.components";
|
|
2
2
|
export class LoadingController extends ModuleController {
|
|
3
3
|
name = "loading.controller";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
EVENT_UPDATE_VIEW = this.EVENTS.LOADING.UPDATE;
|
|
5
|
+
BGNAME = this.PARAMS.LOADING.BACKGROUND;
|
|
6
|
+
CONTROLS = {};
|
|
7
|
+
CONTROLS_INDEX = this.PARAMS.LOADING.ZINDEX;
|
|
8
8
|
subscribe = () => {
|
|
9
9
|
this.on(this.EVENTS.LOADING.SHOW, this.onShow);
|
|
10
10
|
this.on(this.EVENTS.LOADING.HIDE, this.onHide);
|
package/dist/modules/view.d.ts
CHANGED
|
@@ -3,9 +3,8 @@ import type { LoadingPluginConstants, LoadingPluginEvents, LoadingPluginParams,
|
|
|
3
3
|
import type { LoadingPluginState } from "../utils/loading.js";
|
|
4
4
|
export declare class LoadingView extends ModuleView<LoadingPluginEvents, LoadingPluginConstants, LoadingPluginSettings, LoadingPluginParams, LoadingPluginState> {
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
EVENT_UPDATE_VIEW: "vne:loading:update";
|
|
7
|
+
LOC_LABEL: string;
|
|
8
|
+
TRANSITION: number;
|
|
9
9
|
renderFunc: import("@vnejs/module.components").ViewRenderFunc<LoadingPluginState>;
|
|
10
|
-
updateHandler: (state?: LoadingPluginState | undefined) => Promise<void>;
|
|
11
10
|
}
|
package/dist/modules/view.js
CHANGED
|
@@ -2,9 +2,8 @@ import { ModuleView } from "@vnejs/module.components";
|
|
|
2
2
|
import { render } from "../view/index.js";
|
|
3
3
|
export class LoadingView extends ModuleView {
|
|
4
4
|
name = "loading.view";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
EVENT_UPDATE_VIEW = this.EVENTS.LOADING.UPDATE;
|
|
6
|
+
LOC_LABEL = this.PARAMS.LOADING.LOC_LABEL;
|
|
7
|
+
TRANSITION = this.PARAMS.LOADING.TRANSITION;
|
|
8
8
|
renderFunc = render;
|
|
9
|
-
updateHandler = this.onUpdateStoreComponent;
|
|
10
9
|
}
|
package/package.json
CHANGED
|
@@ -12,10 +12,12 @@ export class LoadingController extends ModuleController<
|
|
|
12
12
|
> {
|
|
13
13
|
name = "loading.controller";
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
EVENT_UPDATE_VIEW = this.EVENTS.LOADING.UPDATE;
|
|
16
|
+
|
|
17
|
+
BGNAME = this.PARAMS.LOADING.BACKGROUND;
|
|
18
|
+
|
|
19
|
+
CONTROLS = {};
|
|
20
|
+
CONTROLS_INDEX = this.PARAMS.LOADING.ZINDEX;
|
|
19
21
|
|
|
20
22
|
subscribe = () => {
|
|
21
23
|
this.on(this.EVENTS.LOADING.SHOW, this.onShow);
|
package/src/modules/view.ts
CHANGED
|
@@ -7,10 +7,11 @@ import type { LoadingPluginState } from "../utils/loading.js";
|
|
|
7
7
|
export class LoadingView extends ModuleView<LoadingPluginEvents, LoadingPluginConstants, LoadingPluginSettings, LoadingPluginParams, LoadingPluginState> {
|
|
8
8
|
name = "loading.view";
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
EVENT_UPDATE_VIEW = this.EVENTS.LOADING.UPDATE;
|
|
11
|
+
|
|
12
|
+
LOC_LABEL = this.PARAMS.LOADING.LOC_LABEL;
|
|
13
|
+
|
|
14
|
+
TRANSITION = this.PARAMS.LOADING.TRANSITION;
|
|
13
15
|
|
|
14
16
|
renderFunc = render;
|
|
15
|
-
updateHandler = this.onUpdateStoreComponent;
|
|
16
17
|
}
|