@vnejs/plugins.views.screens.loading 0.1.12 → 0.1.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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/modules/loading.js +2 -2
- package/dist/types.d.ts +5 -5
- package/package.json +3 -3
- package/src/index.ts +2 -2
- package/src/modules/loading.ts +2 -2
- package/src/types.ts +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.views.screens.loading";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.views.screens.loading";
|
|
2
2
|
import { regPlugin } from "@vnejs/shared";
|
|
3
|
-
import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/
|
|
3
|
+
import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.views.screens.loading";
|
|
4
4
|
import { LoadingController } from "./modules/controller.js";
|
|
5
5
|
import { Loading } from "./modules/loading.js";
|
|
6
6
|
import { LoadingView } from "./modules/view.js";
|
package/dist/modules/loading.js
CHANGED
|
@@ -5,10 +5,10 @@ export class Loading extends ModuleCore {
|
|
|
5
5
|
this.on(this.EVENTS.LOADING.EMIT, this.onLoadingEmit);
|
|
6
6
|
};
|
|
7
7
|
onLoadingEmit = async ({ promiseFunc } = {}) => {
|
|
8
|
-
this.
|
|
8
|
+
this.emitLog({ action: "start" });
|
|
9
9
|
await this.emit(this.EVENTS.LOADING.SHOW);
|
|
10
10
|
await Promise.all([promiseFunc?.(), this.waitTimeout(this.PARAMS.LOADING.MIN_SHOW_TIME)]);
|
|
11
11
|
await this.emit(this.EVENTS.LOADING.HIDE);
|
|
12
|
-
this.
|
|
12
|
+
this.emitLog({ action: "finish" });
|
|
13
13
|
};
|
|
14
14
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ModuleComponentsConstants, ModuleComponentsEvents, ModuleComponentsParams, ModuleComponentsSettings } from "@vnejs/module.components";
|
|
2
|
-
import type { PluginName as LogsPluginName, SubscribeEvents as LogsSubscribeEvents } from "@vnejs/
|
|
3
|
-
import type { PluginName as MemoryPluginName, SubscribeEvents as MemorySubscribeEvents } from "@vnejs/
|
|
4
|
-
import type { PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/
|
|
5
|
-
import type { PluginName as LocsPluginName, SubscribeEvents as LocsSubscribeEvents } from "@vnejs/
|
|
6
|
-
import type { Params, PluginName, SubscribeEvents } from "@vnejs/
|
|
2
|
+
import type { PluginName as LogsPluginName, SubscribeEvents as LogsSubscribeEvents } from "@vnejs/contracts.core.logs";
|
|
3
|
+
import type { PluginName as MemoryPluginName, SubscribeEvents as MemorySubscribeEvents } from "@vnejs/contracts.core.memory";
|
|
4
|
+
import type { PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/contracts.core.system";
|
|
5
|
+
import type { PluginName as LocsPluginName, SubscribeEvents as LocsSubscribeEvents } from "@vnejs/contracts.text.locs";
|
|
6
|
+
import type { Params, PluginName, SubscribeEvents } from "@vnejs/contracts.views.screens.loading";
|
|
7
7
|
export type LoadingPluginEvents = ModuleComponentsEvents & Record<PluginName, SubscribeEvents> & Record<LogsPluginName, LogsSubscribeEvents> & Record<MemoryPluginName, MemorySubscribeEvents> & Record<SystemPluginName, SystemSubscribeEvents> & Record<LocsPluginName, LocsSubscribeEvents>;
|
|
8
8
|
export type LoadingPluginConstants = ModuleComponentsConstants;
|
|
9
9
|
export type LoadingPluginSettings = ModuleComponentsSettings;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/plugins.views.screens.loading",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vnejs/
|
|
33
|
+
"@vnejs/contracts.views.screens.loading": "~0.1.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@vnejs/module.core": "~0.1.0",
|
|
37
37
|
"@vnejs/module.components": "~0.1.0",
|
|
38
|
-
"@vnejs/
|
|
38
|
+
"@vnejs/contracts.text.locs": "~0.1.0",
|
|
39
39
|
"@vnejs/shared": "~0.1.0",
|
|
40
40
|
"@vnejs/uis.react": "~0.1.0"
|
|
41
41
|
},
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "@vnejs/
|
|
1
|
+
import "@vnejs/contracts.views.screens.loading";
|
|
2
2
|
|
|
3
3
|
import { regPlugin } from "@vnejs/shared";
|
|
4
|
-
import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/
|
|
4
|
+
import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/contracts.views.screens.loading";
|
|
5
5
|
|
|
6
6
|
import { LoadingController } from "./modules/controller.js";
|
|
7
7
|
import { Loading } from "./modules/loading.js";
|
package/src/modules/loading.ts
CHANGED
|
@@ -17,10 +17,10 @@ export class Loading extends ModuleCore<
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
onLoadingEmit = async ({ promiseFunc }: LoadingEmitPayload = {}) => {
|
|
20
|
-
this.
|
|
20
|
+
this.emitLog({ action: "start" });
|
|
21
21
|
await this.emit(this.EVENTS.LOADING.SHOW);
|
|
22
22
|
await Promise.all([promiseFunc?.(), this.waitTimeout(this.PARAMS.LOADING.MIN_SHOW_TIME)]);
|
|
23
23
|
await this.emit(this.EVENTS.LOADING.HIDE);
|
|
24
|
-
this.
|
|
24
|
+
this.emitLog({ action: "finish" });
|
|
25
25
|
};
|
|
26
26
|
}
|
package/src/types.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ModuleComponentsConstants, ModuleComponentsEvents, ModuleComponentsParams, ModuleComponentsSettings } from "@vnejs/module.components";
|
|
2
|
-
import type { PluginName as LogsPluginName, SubscribeEvents as LogsSubscribeEvents } from "@vnejs/
|
|
3
|
-
import type { PluginName as MemoryPluginName, SubscribeEvents as MemorySubscribeEvents } from "@vnejs/
|
|
4
|
-
import type { PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/
|
|
5
|
-
import type { PluginName as LocsPluginName, SubscribeEvents as LocsSubscribeEvents } from "@vnejs/
|
|
6
|
-
import type { Params, PluginName, SubscribeEvents } from "@vnejs/
|
|
2
|
+
import type { PluginName as LogsPluginName, SubscribeEvents as LogsSubscribeEvents } from "@vnejs/contracts.core.logs";
|
|
3
|
+
import type { PluginName as MemoryPluginName, SubscribeEvents as MemorySubscribeEvents } from "@vnejs/contracts.core.memory";
|
|
4
|
+
import type { PluginName as SystemPluginName, SubscribeEvents as SystemSubscribeEvents } from "@vnejs/contracts.core.system";
|
|
5
|
+
import type { PluginName as LocsPluginName, SubscribeEvents as LocsSubscribeEvents } from "@vnejs/contracts.text.locs";
|
|
6
|
+
import type { Params, PluginName, SubscribeEvents } from "@vnejs/contracts.views.screens.loading";
|
|
7
7
|
|
|
8
8
|
export type LoadingPluginEvents = ModuleComponentsEvents &
|
|
9
9
|
Record<PluginName, SubscribeEvents> &
|