@vnejs/plugins.views.screens.gallery.full.contract 0.0.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.
- package/dist/events.d.ts +6 -0
- package/dist/events.js +5 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +6 -0
- package/dist/params.d.ts +44 -0
- package/dist/params.js +9 -0
- package/package.json +34 -0
- package/src/events.ts +7 -0
- package/src/index.ts +15 -0
- package/src/params.ts +16 -0
- package/tsconfig.json +9 -0
package/dist/events.d.ts
ADDED
package/dist/events.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "@vnejs/shared";
|
|
2
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
3
|
+
import { PARAMS } from "./params.js";
|
|
4
|
+
export declare const PLUGIN_NAME: "GALLERY_FULL_VIEW";
|
|
5
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
6
|
+
export { SUBSCRIBE_EVENTS };
|
|
7
|
+
export type { SubscribeEvents } from "./events.js";
|
|
8
|
+
export { PARAMS };
|
|
9
|
+
export type { Params, ViewProps } from "./params.js";
|
|
10
|
+
declare module "@vnejs/shared" {
|
|
11
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
|
|
12
|
+
}
|
|
13
|
+
interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {
|
|
14
|
+
}
|
|
15
|
+
}
|
package/dist/index.js
ADDED
package/dist/params.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Widen } from "@vnejs/shared";
|
|
2
|
+
export declare const TRANSITION: number;
|
|
3
|
+
export declare const ZINDEX: number;
|
|
4
|
+
declare const VIEW_PROPS_DEFAULT: {
|
|
5
|
+
readonly screen: {
|
|
6
|
+
readonly isIgnoreOnScreenshot: true;
|
|
7
|
+
readonly zIndex: number;
|
|
8
|
+
readonly transition: number;
|
|
9
|
+
};
|
|
10
|
+
readonly close: {
|
|
11
|
+
readonly position: {
|
|
12
|
+
readonly right: 120;
|
|
13
|
+
readonly top: 90;
|
|
14
|
+
};
|
|
15
|
+
readonly props: {
|
|
16
|
+
readonly size: 60;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type ViewProps = Widen<typeof VIEW_PROPS_DEFAULT>;
|
|
21
|
+
export declare const VIEW_PROPS: ViewProps;
|
|
22
|
+
declare const PARAMS_DEFAULT: {
|
|
23
|
+
TRANSITION: number;
|
|
24
|
+
ZINDEX: number;
|
|
25
|
+
VIEW_PROPS: {
|
|
26
|
+
screen: {
|
|
27
|
+
isIgnoreOnScreenshot: boolean;
|
|
28
|
+
zIndex: number;
|
|
29
|
+
transition: number;
|
|
30
|
+
};
|
|
31
|
+
close: {
|
|
32
|
+
position: {
|
|
33
|
+
right: number;
|
|
34
|
+
top: number;
|
|
35
|
+
};
|
|
36
|
+
props: {
|
|
37
|
+
size: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type Params = Widen<typeof PARAMS_DEFAULT>;
|
|
43
|
+
export declare const PARAMS: Params;
|
|
44
|
+
export {};
|
package/dist/params.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const TRANSITION = 500;
|
|
2
|
+
export const ZINDEX = 9000;
|
|
3
|
+
const VIEW_PROPS_DEFAULT = {
|
|
4
|
+
screen: { isIgnoreOnScreenshot: true, zIndex: ZINDEX, transition: TRANSITION },
|
|
5
|
+
close: { position: { right: 120, top: 90 }, props: { size: 60 } },
|
|
6
|
+
};
|
|
7
|
+
export const VIEW_PROPS = VIEW_PROPS_DEFAULT;
|
|
8
|
+
const PARAMS_DEFAULT = { TRANSITION, ZINDEX, VIEW_PROPS };
|
|
9
|
+
export const PARAMS = PARAMS_DEFAULT;
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnejs/plugins.views.screens.gallery.full.contract",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Contracts for @vnejs/plugins.views.screens.gallery.full",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src",
|
|
18
|
+
"tsconfig.json"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "npx @vnejs/monorepo package",
|
|
22
|
+
"publish:major": "npx @vnejs/monorepo publish major --access public",
|
|
23
|
+
"publish:minor": "npx @vnejs/monorepo publish minor --access public",
|
|
24
|
+
"publish:patch": "npx @vnejs/monorepo publish patch --access public"
|
|
25
|
+
},
|
|
26
|
+
"author": "",
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@vnejs/shared": "~0.0.9"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@vnejs/configs.ts-common": "~0.0.1"
|
|
33
|
+
}
|
|
34
|
+
}
|
package/src/events.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "@vnejs/shared";
|
|
2
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
3
|
+
import { PARAMS } from "./params.js";
|
|
4
|
+
|
|
5
|
+
export const PLUGIN_NAME = "GALLERY_FULL_VIEW" as const;
|
|
6
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
7
|
+
export { SUBSCRIBE_EVENTS };
|
|
8
|
+
export type { SubscribeEvents } from "./events.js";
|
|
9
|
+
export { PARAMS };
|
|
10
|
+
export type { Params, ViewProps } from "./params.js";
|
|
11
|
+
|
|
12
|
+
declare module "@vnejs/shared" {
|
|
13
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
|
|
14
|
+
interface VnePluginParamsMap extends Record<typeof PLUGIN_NAME, typeof PARAMS> {}
|
|
15
|
+
}
|
package/src/params.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Widen } from "@vnejs/shared";
|
|
2
|
+
|
|
3
|
+
export const TRANSITION: number = 500;
|
|
4
|
+
export const ZINDEX: number = 9000;
|
|
5
|
+
|
|
6
|
+
const VIEW_PROPS_DEFAULT = {
|
|
7
|
+
screen: { isIgnoreOnScreenshot: true, zIndex: ZINDEX, transition: TRANSITION },
|
|
8
|
+
close: { position: { right: 120, top: 90 }, props: { size: 60 } },
|
|
9
|
+
} as const;
|
|
10
|
+
|
|
11
|
+
export type ViewProps = Widen<typeof VIEW_PROPS_DEFAULT>;
|
|
12
|
+
export const VIEW_PROPS: ViewProps = VIEW_PROPS_DEFAULT;
|
|
13
|
+
|
|
14
|
+
const PARAMS_DEFAULT = { TRANSITION, ZINDEX, VIEW_PROPS };
|
|
15
|
+
export type Params = Widen<typeof PARAMS_DEFAULT>;
|
|
16
|
+
export const PARAMS: Params = PARAMS_DEFAULT;
|