@quicktvui/quicktvui3 1.2.0-beta.37 → 1.2.0-beta.39
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.js +5 -5
- package/dist/src/animation/QTIAnimation.d.ts +12 -12
- package/dist/src/animation/QtAnimationAPI.d.ts +6 -6
- package/dist/src/animation/types.d.ts +39 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/utils/functions.d.ts +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/make-installer.d.ts +5 -0
- package/dist/src/utils/objects.d.ts +2 -0
- package/dist/src/utils/types.d.ts +9 -0
- package/dist/src/utils/vue/index.d.ts +3 -0
- package/dist/src/utils/vue/install.d.ts +6 -0
- package/dist/src/utils/vue/props/index.d.ts +3 -0
- package/dist/src/utils/vue/props/runtime.d.ts +9 -0
- package/dist/src/utils/vue/props/types.d.ts +38 -0
- package/dist/src/utils/vue/props/util.d.ts +8 -0
- package/dist/src/utils/vue/typescript.d.ts +6 -0
- package/package.json +1 -1
|
@@ -4,22 +4,22 @@ export interface QTIAnimation extends QTIView {
|
|
|
4
4
|
animator(id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, values: number[], duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
5
5
|
animatorSet(animatorId: QTAnimatorId, duration: number, listenAnimator: boolean): any;
|
|
6
6
|
reset(): any;
|
|
7
|
-
start(animatorId
|
|
8
|
-
startDelay(animatorId
|
|
9
|
-
pause(animatorId
|
|
10
|
-
resume(animatorId
|
|
11
|
-
cancel(animatorId
|
|
12
|
-
reverse(animatorId
|
|
7
|
+
start(animatorId?: QTAnimatorId): any;
|
|
8
|
+
startDelay(animatorId?: QTAnimatorId, delay?: number): any;
|
|
9
|
+
pause(animatorId?: QTAnimatorId): any;
|
|
10
|
+
resume(animatorId?: QTAnimatorId): any;
|
|
11
|
+
cancel(animatorId?: QTAnimatorId): any;
|
|
12
|
+
reverse(animatorId?: QTAnimatorId): any;
|
|
13
13
|
setPivotX(pivotX: number): any;
|
|
14
14
|
setPivotY(pivotY: number): any;
|
|
15
15
|
resetPivot(): any;
|
|
16
16
|
resetAnimators(): any;
|
|
17
|
-
startAnimator(animatorId
|
|
18
|
-
startAnimatorDelay(animatorId
|
|
19
|
-
pauseAnimator(animatorId
|
|
20
|
-
resumeAnimator(animatorId
|
|
21
|
-
cancelAnimator(animatorId
|
|
22
|
-
reverseAnimator(animatorId
|
|
17
|
+
startAnimator(animatorId?: QTAnimatorId): any;
|
|
18
|
+
startAnimatorDelay(animatorId?: QTAnimatorId, delay?: number): any;
|
|
19
|
+
pauseAnimator(animatorId?: QTAnimatorId): any;
|
|
20
|
+
resumeAnimator(animatorId?: QTAnimatorId): any;
|
|
21
|
+
cancelAnimator(animatorId?: QTAnimatorId): any;
|
|
22
|
+
reverseAnimator(animatorId?: QTAnimatorId): any;
|
|
23
23
|
play(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
24
24
|
playWith(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
25
25
|
playBefore(animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
@@ -9,12 +9,12 @@ export interface QtAnimationAPI extends QtBaseViewAPI {
|
|
|
9
9
|
animator(instance: string | Ref<QTIAnimation | undefined>, id: QTAnimatorId, valueType: QTAnimationValueType, propertyName: QTAnimationPropertyName, values: number[], duration: number, repeatMode: QTAnimationRepeatMode, repeatCount: number, listenAnimator: boolean, listenAnimatorValue: boolean, interpolator?: QTAnimationInterpolator): any;
|
|
10
10
|
animatorSet(instance: string | Ref<QTIAnimation | undefined>, animatorId: QTAnimatorId, duration: number, listenAnimator: boolean): any;
|
|
11
11
|
reset(instance: string | Ref<QTIAnimation | undefined>): any;
|
|
12
|
-
start(instance: string | Ref<QTIAnimation | undefined>, animatorId
|
|
13
|
-
startDelay(instance: string | Ref<QTIAnimation | undefined>, animatorId
|
|
14
|
-
pause(instance: string | Ref<QTIAnimation | undefined>, animatorId
|
|
15
|
-
resume(instance: string | Ref<QTIAnimation | undefined>, animatorId
|
|
16
|
-
cancel(instance: string | Ref<QTIAnimation | undefined>, animatorId
|
|
17
|
-
reverse(instance: string | Ref<QTIAnimation | undefined>, animatorId
|
|
12
|
+
start(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
13
|
+
startDelay(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId, delay?: number): any;
|
|
14
|
+
pause(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
15
|
+
resume(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
16
|
+
cancel(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
17
|
+
reverse(instance: string | Ref<QTIAnimation | undefined>, animatorId?: QTAnimatorId): any;
|
|
18
18
|
play(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
19
19
|
playWith(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
20
20
|
playBefore(instance: string | Ref<QTIAnimation | undefined>, animatorSetId: QTAnimatorId, animatorId: QTAnimatorId): any;
|
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
export declare enum QTAnimatorRelationType {
|
|
2
|
+
SEQUENCE = "sequence",
|
|
3
|
+
TOGETHER = "together",
|
|
4
|
+
WITH = "with",
|
|
5
|
+
BEFORE = "before",
|
|
6
|
+
AFTER = "after"
|
|
7
|
+
}
|
|
8
|
+
export interface QTAnimatorSet {
|
|
9
|
+
id?: QTAnimatorId;
|
|
10
|
+
animators: QTAnimator[];
|
|
11
|
+
duration?: number;
|
|
12
|
+
listenAnimator?: boolean;
|
|
13
|
+
relationType?: QTAnimatorRelationType;
|
|
14
|
+
}
|
|
15
|
+
export interface QTAnimator {
|
|
16
|
+
id?: QTAnimatorId;
|
|
17
|
+
valueType?: QTAnimationValueType;
|
|
18
|
+
type: QTAnimationType;
|
|
19
|
+
values: number[];
|
|
20
|
+
duration: number;
|
|
21
|
+
repeatMode?: QTAnimationRepeatMode;
|
|
22
|
+
repeatCount?: number;
|
|
23
|
+
listenAnimator?: boolean;
|
|
24
|
+
listenAnimatorValue?: boolean;
|
|
25
|
+
interpolator?: QTAnimationInterpolator;
|
|
26
|
+
}
|
|
1
27
|
export type QTAnimatorId = string;
|
|
2
28
|
export interface QTAnimationInterpolator {
|
|
3
29
|
type: QTAnimationInterpolatorType;
|
|
@@ -30,6 +56,19 @@ export declare enum QTAnimationPropertyName {
|
|
|
30
56
|
QT_ANIMATION_PROPERTY_NAME_TRANSLATION_Y = "translationY",
|
|
31
57
|
QT_ANIMATION_PROPERTY_NAME_TRANSLATION_Z = "translationZ"
|
|
32
58
|
}
|
|
59
|
+
export declare enum QTAnimationType {
|
|
60
|
+
ALPHA = "alpha",
|
|
61
|
+
ROTATION = "rotation",
|
|
62
|
+
ROTATION_X = "rotationX",
|
|
63
|
+
ROTATION_Y = "rotationY",
|
|
64
|
+
ROTATION_Z = "rotationZ",
|
|
65
|
+
SCALE_X = "scaleX",
|
|
66
|
+
SCALE_Y = "scaleY",
|
|
67
|
+
SCALE_Z = "scaleZ",
|
|
68
|
+
TRANSLATION_X = "translationX",
|
|
69
|
+
TRANSLATION_Y = "translationY",
|
|
70
|
+
TRANSLATION_Z = "translationZ"
|
|
71
|
+
}
|
|
33
72
|
export declare enum QTAnimationRepeatMode {
|
|
34
73
|
QT_ANIMATION_REPEAT_MODE_RESTART = 1,
|
|
35
74
|
QT_ANIMATION_REPEAT_MODE_REVERSE = 2,
|
package/dist/src/index.d.ts
CHANGED
|
@@ -95,8 +95,8 @@ export { QTSeekBarTickMarkGravity } from './seekbar/QTSeekBarTickMarkGravity';
|
|
|
95
95
|
export { QTSeekBarTickMarkLayoutGravity } from './seekbar/QTSeekBarTickMarkLayoutGravity';
|
|
96
96
|
export type { QTIProgressBar } from './progressbar/QTIProgressBar';
|
|
97
97
|
export type { QTIAnimation } from './animation/QTIAnimation';
|
|
98
|
-
export { QTAnimationInterpolatorType, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, } from './animation/types';
|
|
99
|
-
export type { QTAnimationInterpolator, QTAnimatorId } from './animation/types';
|
|
98
|
+
export { QTAnimationInterpolatorType, QTAnimationPropertyName, QTAnimationRepeatMode, QTAnimationValueType, QTAnimatorRelationType, QTAnimationType, } from './animation/types';
|
|
99
|
+
export type { QTAnimationInterpolator, QTAnimatorId, QTAnimator, QTAnimatorSet, } from './animation/types';
|
|
100
100
|
export type { QTIMediaSeries } from './series/QTIMediaSeries';
|
|
101
101
|
export type { QTMediaSeries } from './series/QTMediaSeries';
|
|
102
102
|
export type { QTMediaSeriesGroup } from './series/QTMediaSeriesGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NOOP } from '@vue/shared';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { isArray, isFunction, isObject, isString, isDate, isPromise, isSymbol, isPlainObject, } from '@vue/shared';
|
|
2
|
+
export declare const isUndefined: (val: any) => val is undefined;
|
|
3
|
+
export declare const isBoolean: (val: any) => val is boolean;
|
|
4
|
+
export declare const isNumber: (val: any) => val is number;
|
|
5
|
+
export declare const isEmpty: (val: unknown) => boolean;
|
|
6
|
+
export declare const isElement: (e: unknown) => e is Element;
|
|
7
|
+
export declare const isPropAbsent: (prop: unknown) => prop is null | undefined;
|
|
8
|
+
export declare const isStringNumber: (val: string) => boolean;
|
|
9
|
+
export declare const isWindow: (val: unknown) => val is Window;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Directive } from 'vue';
|
|
2
|
+
import type { SFCInstallWithContext, SFCWithInstall } from './typescript';
|
|
3
|
+
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
|
|
4
|
+
export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
|
|
5
|
+
export declare const withInstallDirective: <T extends Directive>(directive: T, name: string) => SFCWithInstall<T>;
|
|
6
|
+
export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { EpProp, EpPropConvert, EpPropFinalized, EpPropInput, EpPropMergeType, IfEpProp, IfNativePropType, NativePropType } from './types';
|
|
3
|
+
export declare const epPropKey = "__epPropKey";
|
|
4
|
+
export declare const definePropType: <T>(val: any) => PropType<T>;
|
|
5
|
+
export declare const isEpProp: (val: unknown) => val is EpProp<any, any, any>;
|
|
6
|
+
export declare const buildProp: <Type = never, Value = never, Validator = never, Default extends EpPropMergeType<Type, Value, Validator> = never, Required extends boolean = false>(prop: EpPropInput<Type, Value, Validator, Default, Required>, key?: string) => EpPropFinalized<Type, Value, Validator, Default, Required>;
|
|
7
|
+
export declare const buildProps: <Props extends Record<string, {
|
|
8
|
+
[epPropKey]: true;
|
|
9
|
+
} | NativePropType | EpPropInput<any, any, any, any, any>>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { epPropKey } from './runtime';
|
|
2
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import type { IfNever, UnknownToNever, WritableArray } from './util';
|
|
4
|
+
type Value<T> = T[keyof T];
|
|
5
|
+
export type ExtractPropType<T extends object> = Value<ExtractPropTypes<{
|
|
6
|
+
key: T;
|
|
7
|
+
}>>;
|
|
8
|
+
export type ResolvePropType<T> = IfNever<T, never, ExtractPropType<{
|
|
9
|
+
type: WritableArray<T>;
|
|
10
|
+
required: true;
|
|
11
|
+
}>>;
|
|
12
|
+
export type EpPropMergeType<Type, Value, Validator> = IfNever<UnknownToNever<Value>, ResolvePropType<Type>, never> | UnknownToNever<Value> | UnknownToNever<Validator>;
|
|
13
|
+
export type EpPropInputDefault<Required extends boolean, Default> = Required extends true ? never : Default extends Record<string, unknown> | Array<any> ? () => Default : (() => Default) | Default;
|
|
14
|
+
export type NativePropType = ((...args: any) => any) | {
|
|
15
|
+
new (...args: any): any;
|
|
16
|
+
} | undefined | null;
|
|
17
|
+
export type IfNativePropType<T, Y, N> = [T] extends [NativePropType] ? Y : N;
|
|
18
|
+
export type EpPropInput<Type, Value, Validator, Default extends EpPropMergeType<Type, Value, Validator>, Required extends boolean> = {
|
|
19
|
+
type?: Type;
|
|
20
|
+
required?: Required;
|
|
21
|
+
values?: readonly Value[];
|
|
22
|
+
validator?: ((val: any) => val is Validator) | ((val: any) => boolean);
|
|
23
|
+
default?: EpPropInputDefault<Required, Default>;
|
|
24
|
+
};
|
|
25
|
+
export type EpProp<Type, Default, Required> = {
|
|
26
|
+
readonly type: PropType<Type>;
|
|
27
|
+
readonly required: [Required] extends [true] ? true : false;
|
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
+
[epPropKey]: true;
|
|
30
|
+
} & IfNever<Default, unknown, {
|
|
31
|
+
readonly default: Default;
|
|
32
|
+
}>;
|
|
33
|
+
export type IfEpProp<T, Y, N> = T extends {
|
|
34
|
+
[epPropKey]: true;
|
|
35
|
+
} ? Y : N;
|
|
36
|
+
export type EpPropConvert<Input> = Input extends EpPropInput<infer Type, infer Value, infer Validator, any, infer Required> ? EpPropFinalized<Type, Value, Validator, Input['default'], Required> : never;
|
|
37
|
+
export type EpPropFinalized<Type, Value, Validator, Default, Required> = EpProp<EpPropMergeType<Type, Value, Validator>, UnknownToNever<Default>, Required>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type Writable<T> = {
|
|
2
|
+
-readonly [P in keyof T]: T[P];
|
|
3
|
+
};
|
|
4
|
+
export type WritableArray<T> = T extends readonly any[] ? Writable<T> : T;
|
|
5
|
+
export type IfNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
|
|
6
|
+
export type IfUnknown<T, Y, N> = [unknown] extends [T] ? Y : N;
|
|
7
|
+
export type UnknownToNever<T> = IfUnknown<T, never, T>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AppContext, EmitsOptions, Plugin, SetupContext } from 'vue';
|
|
2
|
+
export type SFCWithInstall<T> = T & Plugin;
|
|
3
|
+
export type SFCInstallWithContext<T> = SFCWithInstall<T> & {
|
|
4
|
+
_context: AppContext | null;
|
|
5
|
+
};
|
|
6
|
+
export type EmitFn<E extends EmitsOptions> = SetupContext<E>['emit'];
|