@egjs/vue3-flicking 4.4.1 → 4.5.1
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/declaration/Flicking.d.ts +3 -107
- package/declaration/FlickingProps.d.ts +37 -10
- package/declaration/VueElementProvider.d.ts +2 -2
- package/declaration/VuePanel.d.ts +4 -3
- package/declaration/types.d.ts +44 -0
- package/dist/flicking.cjs.js +155 -195
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +157 -197
- package/dist/flicking.esm.js.map +1 -1
- package/package.json +4 -5
- package/src/Flicking.ts +136 -147
- package/src/FlickingProps.ts +37 -18
- package/src/VueElementProvider.ts +2 -2
- package/src/VuePanel.ts +13 -7
- package/src/types.ts +75 -0
|
@@ -1,110 +1,6 @@
|
|
|
1
|
-
import { VNode } from "vue";
|
|
2
|
-
import { Vue, VueConstructor } from "vue-class-component";
|
|
3
|
-
import Component from "@egjs/component";
|
|
4
1
|
import VanillaFlicking from "@egjs/flicking";
|
|
5
|
-
import
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
$data: {};
|
|
9
|
-
$props: Partial<{}> & Omit<import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
10
|
-
$attrs: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
$refs: {
|
|
14
|
-
[x: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
$slots: Readonly<{
|
|
17
|
-
[name: string]: import("vue").Slot;
|
|
18
|
-
}>;
|
|
19
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
20
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
21
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
22
|
-
$el: any;
|
|
23
|
-
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}> & {
|
|
24
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
25
|
-
created?: (() => void) | (() => void)[];
|
|
26
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
27
|
-
mounted?: (() => void) | (() => void)[];
|
|
28
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
29
|
-
updated?: (() => void) | (() => void)[];
|
|
30
|
-
activated?: (() => void) | (() => void)[];
|
|
31
|
-
deactivated?: (() => void) | (() => void)[];
|
|
32
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
33
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
34
|
-
destroyed?: (() => void) | (() => void)[];
|
|
35
|
-
unmounted?: (() => void) | (() => void)[];
|
|
36
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
37
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
38
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
39
|
-
};
|
|
40
|
-
$forceUpdate: () => void;
|
|
41
|
-
$nextTick: typeof import("vue").nextTick;
|
|
42
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
43
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & {} & import("vue").ComponentCustomProperties & import("vue-class-component").ClassComponentHooks & {
|
|
44
|
-
$: import("vue").ComponentInternalInstance;
|
|
45
|
-
$data: {};
|
|
46
|
-
$props: Partial<import("vue-class-component").ExtractDefaultProps<FlickingProps>> & Omit<import("vue-class-component").ExtractProps<FlickingProps> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, import("vue-class-component").DefaultKeys<FlickingProps>>;
|
|
47
|
-
$attrs: {
|
|
48
|
-
[x: string]: unknown;
|
|
49
|
-
};
|
|
50
|
-
$refs: {
|
|
51
|
-
[x: string]: unknown;
|
|
52
|
-
};
|
|
53
|
-
$slots: Readonly<{
|
|
54
|
-
[name: string]: import("vue").Slot;
|
|
55
|
-
}>;
|
|
56
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
57
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
58
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
59
|
-
$el: any;
|
|
60
|
-
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}> & {
|
|
61
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
62
|
-
created?: (() => void) | (() => void)[];
|
|
63
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
64
|
-
mounted?: (() => void) | (() => void)[];
|
|
65
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
66
|
-
updated?: (() => void) | (() => void)[];
|
|
67
|
-
activated?: (() => void) | (() => void)[];
|
|
68
|
-
deactivated?: (() => void) | (() => void)[];
|
|
69
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
70
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
71
|
-
destroyed?: (() => void) | (() => void)[];
|
|
72
|
-
unmounted?: (() => void) | (() => void)[];
|
|
73
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
74
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
75
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
76
|
-
};
|
|
77
|
-
$forceUpdate: () => void;
|
|
78
|
-
$nextTick: typeof import("vue").nextTick;
|
|
79
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
80
|
-
} & import("vue-class-component").ExtractProps<FlickingProps>>;
|
|
81
|
-
declare class Flicking extends Flicking_base {
|
|
82
|
-
readonly renderEmitter: Component<{
|
|
83
|
-
render: void;
|
|
84
|
-
}>;
|
|
85
|
-
private vanillaFlicking;
|
|
86
|
-
private pluginsDiffer;
|
|
87
|
-
private slotDiffer;
|
|
88
|
-
private diffResult?;
|
|
89
|
-
mounted(): void;
|
|
90
|
-
beforeDestroy(): void;
|
|
91
|
-
beforeMount(): void;
|
|
92
|
-
beforeUpdate(): void;
|
|
93
|
-
updated(): void;
|
|
94
|
-
render(): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
}>;
|
|
97
|
-
getSlots(): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
98
|
-
[key: string]: any;
|
|
99
|
-
}>[];
|
|
100
|
-
getElementVNodes(slot: VNode, childSlots?: VNode[]): VNode[];
|
|
101
|
-
private bindEvents;
|
|
102
|
-
private checkPlugins;
|
|
103
|
-
private fillKeys;
|
|
104
|
-
private getChildren;
|
|
105
|
-
private getPanels;
|
|
106
|
-
private getVirtualPanels;
|
|
107
|
-
}
|
|
108
|
-
interface Flicking extends VanillaFlicking, VueConstructor<Vue & FlickingProps> {
|
|
2
|
+
import { VueFlicking } from "./types";
|
|
3
|
+
declare const Flicking: VueFlicking;
|
|
4
|
+
interface Flicking extends VueFlicking, VanillaFlicking {
|
|
109
5
|
}
|
|
110
6
|
export default Flicking;
|
|
@@ -1,11 +1,38 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
1
2
|
import { FlickingOptions, Plugin, Status } from "@egjs/flicking";
|
|
2
|
-
declare
|
|
3
|
-
viewportTag:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
declare const _default: {
|
|
4
|
+
viewportTag: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
cameraTag: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
hideBeforeInit: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
firstPanelSize: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
options: {
|
|
24
|
+
type: () => Partial<FlickingOptions>;
|
|
25
|
+
default: () => {};
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
plugins: {
|
|
29
|
+
type: PropType<Plugin[]>;
|
|
30
|
+
default: () => any[];
|
|
31
|
+
required: boolean;
|
|
32
|
+
};
|
|
33
|
+
status: {
|
|
34
|
+
type: PropType<Status>;
|
|
35
|
+
required: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementProvider } from "@egjs/flicking";
|
|
2
2
|
import VuePanel from "./VuePanel";
|
|
3
|
-
declare class VueElementProvider implements
|
|
3
|
+
declare class VueElementProvider implements ElementProvider {
|
|
4
4
|
private _el;
|
|
5
5
|
private _cachedElement;
|
|
6
6
|
get rendered(): boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
declare class VuePanel extends Vue {
|
|
1
|
+
declare const VuePanel: import("vue").DefineComponent<{}, {}, {
|
|
3
2
|
hide: boolean;
|
|
4
|
-
|
|
3
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4
|
+
declare type VuePanelType = InstanceType<typeof VuePanel>;
|
|
5
|
+
interface VuePanel extends VuePanelType {
|
|
5
6
|
}
|
|
6
7
|
export default VuePanel;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComponentOptionsMixin, DefineComponent, VNode } from "vue";
|
|
2
|
+
import VanillaFlicking, { Plugin, Status, FlickingOptions, FlickingEvents } from "@egjs/flicking";
|
|
3
|
+
import Component from "@egjs/component";
|
|
4
|
+
import ListDiffer, { DiffResult } from "@egjs/list-differ";
|
|
5
|
+
import FlickingProps from "./FlickingProps";
|
|
6
|
+
export interface FlickingData {
|
|
7
|
+
renderEmitter: Component<{
|
|
8
|
+
render: void;
|
|
9
|
+
}>;
|
|
10
|
+
vanillaFlicking: VanillaFlicking;
|
|
11
|
+
pluginsDiffer: ListDiffer<Plugin>;
|
|
12
|
+
slotDiffer: ListDiffer<VNode>;
|
|
13
|
+
diffResult: DiffResult<VNode> | null;
|
|
14
|
+
}
|
|
15
|
+
declare type VueFlickingEmits = {
|
|
16
|
+
[key in keyof FlickingEvents]: (evt: FlickingEvents[key]) => any;
|
|
17
|
+
};
|
|
18
|
+
export declare type VueFlicking = DefineComponent<typeof FlickingProps, unknown, FlickingData, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, VueFlickingEmits, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
19
|
+
viewportTag?: unknown;
|
|
20
|
+
cameraTag?: unknown;
|
|
21
|
+
hideBeforeInit?: unknown;
|
|
22
|
+
firstPanelSize?: unknown;
|
|
23
|
+
options?: unknown;
|
|
24
|
+
plugins?: unknown;
|
|
25
|
+
status?: unknown;
|
|
26
|
+
} & {
|
|
27
|
+
viewportTag: string;
|
|
28
|
+
cameraTag: string;
|
|
29
|
+
hideBeforeInit: boolean;
|
|
30
|
+
options: Partial<FlickingOptions>;
|
|
31
|
+
plugins: Plugin[];
|
|
32
|
+
} & {
|
|
33
|
+
firstPanelSize?: string;
|
|
34
|
+
status?: Status;
|
|
35
|
+
} & {
|
|
36
|
+
[K in keyof VueFlickingEmits as `on${Capitalize<K>}`]?: VueFlickingEmits[K];
|
|
37
|
+
}>, {
|
|
38
|
+
viewportTag: string;
|
|
39
|
+
cameraTag: string;
|
|
40
|
+
hideBeforeInit: boolean;
|
|
41
|
+
options: Partial<FlickingOptions>;
|
|
42
|
+
plugins: Plugin[];
|
|
43
|
+
}>;
|
|
44
|
+
export {};
|