@vunk/plus 1.11.2 → 1.11.3
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/components/agent-chat-provider/src/types.d.ts +2 -2
- package/components/broadcasting-markdown/index.mjs +138 -3
- package/components/broadcasting-markdown/src/index.vue.d.ts +1 -1
- package/components/bubble-list/index.mjs +1 -1
- package/components/bubble-list/src/core/index.vue.d.ts +7 -155
- package/components/bubble-list/src/index.vue.d.ts +7 -155
- package/components/chat-independent/src/index.vue.d.ts +7 -155
- package/components/drawer/src/ctx.d.ts +2 -2
- package/components/drawer/src/index.vue.d.ts +6 -6
- package/components/metahuman-broadcasting/src/index.vue.d.ts +6 -2
- package/components/pixi-frame/index.mjs +71 -21
- package/components/pixi-frame/src/bitmap.vue.d.ts +5 -1
- package/components/pixi-frame/src/index.vue.d.ts +5 -1
- package/components/routes-menu-content/index.mjs +1 -1
- package/components/table-columns/src/el-ctx.d.ts +1 -1
- package/components/tables-v1/src/ctx.d.ts +3 -3
- package/components/tables-v1/src/index.vue.d.ts +6 -6
- package/components/tables-v1-checkbox/src/ctx.d.ts +3 -3
- package/components/tables-v1-checkbox/src/index.vue.d.ts +14 -14
- package/components/text/src/ctx.d.ts +1 -1
- package/components/text/src/index.vue.d.ts +2 -2
- package/components/vditor/src/ctx.d.ts +1 -1
- package/components/vditor/src/index.vue.d.ts +1 -1
- package/element/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/element/bubble/index.d.ts +4 -0
- package/element/bubble/index.mjs +154 -0
- package/element/bubble/src/index.vue.d.ts +51 -0
- package/element/bubble/src/types.d.ts +19 -0
- package/element/index.css +1 -0
- package/element/thinking/index.d.ts +4 -0
- package/element/thinking/index.mjs +232 -0
- package/element/thinking/src/index.vue.d.ts +53 -0
- package/element/thinking/src/types.d.ts +20 -0
- package/package.json +12 -1
- package/components/bubble-templates/src/legacy.vue.d.ts +0 -153
|
@@ -1610,164 +1610,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1610
1610
|
tabindex: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1611
1611
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1612
1612
|
readonly Bubble: {
|
|
1613
|
-
new (...args: any[]):
|
|
1614
|
-
onStart?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1615
|
-
onFinish?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1616
|
-
onWriting?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1617
|
-
onAvatarError?: ((e: Event) => any) | undefined;
|
|
1618
|
-
}>, {
|
|
1619
|
-
interrupt: () => void;
|
|
1620
|
-
continue: () => void;
|
|
1621
|
-
restart: () => void;
|
|
1622
|
-
destroy: () => void;
|
|
1623
|
-
renderedContent: ComputedRef<string>;
|
|
1624
|
-
isTyping: Ref<boolean>;
|
|
1625
|
-
progress: ComputedRef<number>;
|
|
1626
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1627
|
-
start: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1628
|
-
finish: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1629
|
-
writing: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1630
|
-
avatarError: (e: Event) => any;
|
|
1631
|
-
}, import("vue").PublicProps, {
|
|
1632
|
-
maxWidth: string;
|
|
1633
|
-
noStyle: boolean;
|
|
1634
|
-
content: string;
|
|
1635
|
-
placement: "start" | "end";
|
|
1636
|
-
avatar: string;
|
|
1637
|
-
variant: "filled" | "borderless" | "outlined" | "shadow";
|
|
1638
|
-
avatarSize: string;
|
|
1639
|
-
avatarGap: string;
|
|
1640
|
-
avatarShape: "circle" | "square";
|
|
1641
|
-
avatarSrcSet: string;
|
|
1642
|
-
avatarAlt: string;
|
|
1643
|
-
avatarFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
1644
|
-
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {
|
|
1645
|
-
typewriterRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue-element-plus-x/./types/Typewriter").TypewriterProps> & Readonly<{
|
|
1646
|
-
onStart?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1647
|
-
onFinish?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1648
|
-
onWriting?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1649
|
-
}>, {
|
|
1650
|
-
interrupt: () => void;
|
|
1651
|
-
continue: () => void;
|
|
1652
|
-
restart: () => void;
|
|
1653
|
-
destroy: () => void;
|
|
1654
|
-
renderedContent: ComputedRef<string>;
|
|
1655
|
-
isTyping: Ref<boolean>;
|
|
1656
|
-
progress: ComputedRef<number>;
|
|
1657
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
1658
|
-
start: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1659
|
-
finish: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1660
|
-
writing: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1661
|
-
}, import("vue").PublicProps, {
|
|
1662
|
-
content: string;
|
|
1663
|
-
isMarkdown: boolean;
|
|
1664
|
-
typing: boolean | import("vue-element-plus-x/./types/Typewriter").TypingConfig;
|
|
1665
|
-
isFog: boolean | import("vue-element-plus-x/./types/Typewriter").TypingFogfig;
|
|
1666
|
-
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {
|
|
1667
|
-
typeWriterRef: HTMLDivElement;
|
|
1668
|
-
markdownContentRef: HTMLDivElement;
|
|
1669
|
-
}, HTMLDivElement, import("vue").ComponentProvideOptions, {
|
|
1670
|
-
P: {};
|
|
1671
|
-
B: {};
|
|
1672
|
-
D: {};
|
|
1673
|
-
C: {};
|
|
1674
|
-
M: {};
|
|
1675
|
-
Defaults: {};
|
|
1676
|
-
}, Readonly<import("vue-element-plus-x/./types/Typewriter").TypewriterProps> & Readonly<{
|
|
1677
|
-
onStart?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1678
|
-
onFinish?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1679
|
-
onWriting?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1680
|
-
}>, {
|
|
1681
|
-
interrupt: () => void;
|
|
1682
|
-
continue: () => void;
|
|
1683
|
-
restart: () => void;
|
|
1684
|
-
destroy: () => void;
|
|
1685
|
-
renderedContent: ComputedRef<string>;
|
|
1686
|
-
isTyping: Ref<boolean>;
|
|
1687
|
-
progress: ComputedRef<number>;
|
|
1688
|
-
}, {}, {}, {}, {
|
|
1689
|
-
content: string;
|
|
1690
|
-
isMarkdown: boolean;
|
|
1691
|
-
typing: boolean | import("vue-element-plus-x/./types/Typewriter").TypingConfig;
|
|
1692
|
-
isFog: boolean | import("vue-element-plus-x/./types/Typewriter").TypingFogfig;
|
|
1693
|
-
}> | null;
|
|
1694
|
-
}, any, import("vue").ComponentProvideOptions, {
|
|
1695
|
-
P: {};
|
|
1696
|
-
B: {};
|
|
1697
|
-
D: {};
|
|
1698
|
-
C: {};
|
|
1699
|
-
M: {};
|
|
1700
|
-
Defaults: {};
|
|
1701
|
-
}, Readonly<import("vue-element-plus-x/./types/Bubble").BubbleProps> & Readonly<{
|
|
1702
|
-
onStart?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1703
|
-
onFinish?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1704
|
-
onWriting?: ((instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any) | undefined;
|
|
1705
|
-
onAvatarError?: ((e: Event) => any) | undefined;
|
|
1706
|
-
}>, {
|
|
1707
|
-
interrupt: () => void;
|
|
1708
|
-
continue: () => void;
|
|
1709
|
-
restart: () => void;
|
|
1710
|
-
destroy: () => void;
|
|
1711
|
-
renderedContent: ComputedRef<string>;
|
|
1712
|
-
isTyping: Ref<boolean>;
|
|
1713
|
-
progress: ComputedRef<number>;
|
|
1714
|
-
}, {}, {}, {}, {
|
|
1715
|
-
maxWidth: string;
|
|
1716
|
-
noStyle: boolean;
|
|
1717
|
-
content: string;
|
|
1718
|
-
placement: "start" | "end";
|
|
1719
|
-
avatar: string;
|
|
1720
|
-
variant: "filled" | "borderless" | "outlined" | "shadow";
|
|
1721
|
-
avatarSize: string;
|
|
1722
|
-
avatarGap: string;
|
|
1723
|
-
avatarShape: "circle" | "square";
|
|
1724
|
-
avatarSrcSet: string;
|
|
1725
|
-
avatarAlt: string;
|
|
1726
|
-
avatarFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
1727
|
-
}>;
|
|
1613
|
+
new (...args: any[]): any;
|
|
1728
1614
|
__isFragment?: never;
|
|
1729
1615
|
__isTeleport?: never;
|
|
1730
1616
|
__isSuspense?: never;
|
|
1731
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
}
|
|
1737
|
-
interrupt: () => void;
|
|
1738
|
-
continue: () => void;
|
|
1739
|
-
restart: () => void;
|
|
1740
|
-
destroy: () => void;
|
|
1741
|
-
renderedContent: ComputedRef<string>;
|
|
1742
|
-
isTyping: Ref<boolean>;
|
|
1743
|
-
progress: ComputedRef<number>;
|
|
1744
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1745
|
-
start: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1746
|
-
finish: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1747
|
-
writing: (instance: import("vue-element-plus-x/./types/Typewriter").TypewriterInstance) => any;
|
|
1748
|
-
avatarError: (e: Event) => any;
|
|
1749
|
-
}, string, {
|
|
1750
|
-
maxWidth: string;
|
|
1751
|
-
noStyle: boolean;
|
|
1752
|
-
content: string;
|
|
1753
|
-
placement: "start" | "end";
|
|
1754
|
-
avatar: string;
|
|
1755
|
-
variant: "filled" | "borderless" | "outlined" | "shadow";
|
|
1756
|
-
avatarSize: string;
|
|
1757
|
-
avatarGap: string;
|
|
1758
|
-
avatarShape: "circle" | "square";
|
|
1759
|
-
avatarSrcSet: string;
|
|
1760
|
-
avatarAlt: string;
|
|
1761
|
-
avatarFit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
1762
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
1763
|
-
$slots: {
|
|
1764
|
-
avatar?(_: {}): any;
|
|
1765
|
-
header?(_: {}): any;
|
|
1766
|
-
content?(_: {}): any;
|
|
1767
|
-
loading?(_: {}): any;
|
|
1768
|
-
footer?(_: {}): any;
|
|
1769
|
-
};
|
|
1770
|
-
});
|
|
1617
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
1618
|
+
[x: string]: any;
|
|
1619
|
+
[x: symbol]: any;
|
|
1620
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
1621
|
+
install(app: import("vue").App): void;
|
|
1622
|
+
};
|
|
1771
1623
|
loadingBg: {
|
|
1772
1624
|
new (...args: any[]): any;
|
|
1773
1625
|
__isFragment?: never;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
export declare const createElDrawerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"top", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"center", keyof T2> | Extract<"direction", keyof T2> | Extract<"title", keyof T2> | Extract<"
|
|
3
|
-
export declare const createElDrawerOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("close" | "open" | "
|
|
2
|
+
export declare const createElDrawerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"top", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"center", keyof T2> | Extract<"direction", keyof T2> | Extract<"title", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"overflow", keyof T2> | Extract<"showClose", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"resizable", keyof T2> | Extract<"withHeader", keyof T2> | Extract<"modalFade", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"transition", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"draggable", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"ariaLevel", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"top", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"appendTo", keyof T2>, KE> | Exclude<Extract<"center", keyof T2>, KE> | Exclude<Extract<"direction", keyof T2>, KE> | Exclude<Extract<"title", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"overflow", keyof T2>, KE> | Exclude<Extract<"showClose", keyof T2>, KE> | Exclude<Extract<"zIndex", keyof T2>, KE> | Exclude<Extract<"resizable", keyof T2>, KE> | Exclude<Extract<"withHeader", keyof T2>, KE> | Exclude<Extract<"modalFade", keyof T2>, KE> | Exclude<Extract<"headerAriaLevel", keyof T2>, KE> | Exclude<Extract<"appendToBody", keyof T2>, KE> | Exclude<Extract<"beforeClose", keyof T2>, KE> | Exclude<Extract<"destroyOnClose", keyof T2>, KE> | Exclude<Extract<"closeOnClickModal", keyof T2>, KE> | Exclude<Extract<"closeOnPressEscape", keyof T2>, KE> | Exclude<Extract<"lockScroll", keyof T2>, KE> | Exclude<Extract<"modal", keyof T2>, KE> | Exclude<Extract<"modalPenetrable", keyof T2>, KE> | Exclude<Extract<"openDelay", keyof T2>, KE> | Exclude<Extract<"closeDelay", keyof T2>, KE> | Exclude<Extract<"modalClass", keyof T2>, KE> | Exclude<Extract<"headerClass", keyof T2>, KE> | Exclude<Extract<"bodyClass", keyof T2>, KE> | Exclude<Extract<"footerClass", keyof T2>, KE> | Exclude<Extract<"trapFocus", keyof T2>, KE> | Exclude<Extract<"transition", keyof T2>, KE> | Exclude<Extract<"alignCenter", keyof T2>, KE> | Exclude<Extract<"closeIcon", keyof T2>, KE> | Exclude<Extract<"draggable", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> | Exclude<Extract<"ariaLevel", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"top", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"center", keyof T2> | Extract<"direction", keyof T2> | Extract<"title", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"overflow", keyof T2> | Extract<"showClose", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"resizable", keyof T2> | Extract<"withHeader", keyof T2> | Extract<"modalFade", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"transition", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"draggable", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"ariaLevel", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"top", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"center", keyof T2> | Extract<"direction", keyof T2> | Extract<"title", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"overflow", keyof T2> | Extract<"showClose", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"resizable", keyof T2> | Extract<"withHeader", keyof T2> | Extract<"modalFade", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"transition", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"draggable", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"ariaLevel", keyof T2>]: T2[k]; }[P]; }>;
|
|
3
|
+
export declare const createElDrawerOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("close" | "open" | "update:modelValue" | "opened" | "closed" | "openAutoFocus" | "closeAutoFocus")[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"close", KE> | Exclude<"open", KE> | Exclude<"update:modelValue", KE> | Exclude<"opened", KE> | Exclude<"closed", KE> | Exclude<"openAutoFocus", KE> | Exclude<"closeAutoFocus", KE> : "close" | "open" | "update:modelValue" | "opened" | "closed" | "openAutoFocus" | "closeAutoFocus"]: {
|
|
4
4
|
open: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
5
5
|
opened: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
6
6
|
close: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -142,13 +142,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
142
142
|
}>> & Readonly<{
|
|
143
143
|
onClose?: (() => any) | undefined;
|
|
144
144
|
onOpen?: (() => any) | undefined;
|
|
145
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
145
146
|
onOpened?: (() => any) | undefined;
|
|
146
147
|
onClosed?: (() => any) | undefined;
|
|
147
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
148
148
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
149
149
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
150
150
|
}> & {}>;
|
|
151
|
-
emit: ((event: "close") => void) & ((event: "open") => void) & ((event: "
|
|
151
|
+
emit: ((event: "close") => void) & ((event: "open") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void);
|
|
152
152
|
hasToggle: import("vue").ComputedRef<boolean>;
|
|
153
153
|
coreProps: import("vue").ComputedRef<{}>;
|
|
154
154
|
coreEmits: {};
|
|
@@ -640,9 +640,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
640
640
|
}>> & Readonly<{
|
|
641
641
|
onClose?: (() => any) | undefined;
|
|
642
642
|
onOpen?: (() => any) | undefined;
|
|
643
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
643
644
|
onOpened?: (() => any) | undefined;
|
|
644
645
|
onClosed?: (() => any) | undefined;
|
|
645
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
646
646
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
647
647
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
648
648
|
}>, {
|
|
@@ -653,6 +653,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
653
653
|
direction: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
654
654
|
title: string;
|
|
655
655
|
modules: "toggle"[];
|
|
656
|
+
modelValue: boolean;
|
|
657
|
+
overflow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
658
|
+
showClose: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
656
659
|
resizable: boolean;
|
|
657
660
|
withHeader: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
658
661
|
modalFade: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -666,14 +669,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
666
669
|
modalPenetrable: boolean;
|
|
667
670
|
openDelay: number;
|
|
668
671
|
closeDelay: number;
|
|
669
|
-
modelValue: boolean;
|
|
670
672
|
trapFocus: boolean;
|
|
671
673
|
transition: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition) | ((new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition))[], unknown, unknown>;
|
|
672
674
|
alignCenter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
673
675
|
draggable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
674
|
-
overflow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
675
676
|
fullscreen: boolean;
|
|
676
|
-
showClose: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
677
677
|
ariaLevel: string;
|
|
678
678
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
679
679
|
export default _default;
|
|
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
163
163
|
theData: import("vue").ComputedRef<__VkBroadcastingMarkdown.Paragraph[]>;
|
|
164
164
|
ParagraphStatus: typeof import("@vunk/plus/components/broadcasting-markdown").ParagraphStatus;
|
|
165
165
|
fulfilledTextValue: import("vue").ComputedRef<string>;
|
|
166
|
-
processingParagraph: (paragraph: __VkBroadcastingMarkdown.Paragraph) => Promise<void
|
|
166
|
+
processingParagraph: (paragraph: __VkBroadcastingMarkdown.Paragraph) => Promise<void>;
|
|
167
167
|
setData: (obj: any, e: import("@vunk/core/shared").SetDataEvent) => void;
|
|
168
168
|
Broadcast: typeof TickerStatus;
|
|
169
169
|
isParagraphEnabled: (currentIndex: number) => boolean;
|
|
@@ -552,7 +552,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
552
552
|
index: import("vue").WritableComputedRef<number, number>;
|
|
553
553
|
lastScheduledClearIndex: Ref<number, number>;
|
|
554
554
|
scheduleClearFrame: (frameIndex: number) => void;
|
|
555
|
-
|
|
555
|
+
animationId: number | null;
|
|
556
|
+
lastFrameTime: number;
|
|
557
|
+
frameCount: number;
|
|
558
|
+
lastFpsUpdateTime: number;
|
|
559
|
+
startFrameLoop: () => void;
|
|
556
560
|
play: () => void;
|
|
557
561
|
pause: () => void;
|
|
558
562
|
stop: () => void;
|
|
@@ -1047,7 +1047,7 @@ const emits = {
|
|
|
1047
1047
|
"setData": null
|
|
1048
1048
|
};
|
|
1049
1049
|
|
|
1050
|
-
const appInjectKey = Symbol("appInjectKey");
|
|
1050
|
+
const appInjectKey = /* @__PURE__ */ Symbol("appInjectKey");
|
|
1051
1051
|
function initPixiApp() {
|
|
1052
1052
|
const application = new Application();
|
|
1053
1053
|
const whenDef = new Deferred();
|
|
@@ -1454,24 +1454,58 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1454
1454
|
});
|
|
1455
1455
|
});
|
|
1456
1456
|
}
|
|
1457
|
-
|
|
1458
|
-
|
|
1457
|
+
let animationId = null;
|
|
1458
|
+
let lastFrameTime = 0;
|
|
1459
|
+
let frameCount = 0;
|
|
1460
|
+
let lastFpsUpdateTime = 0;
|
|
1461
|
+
function startFrameLoop() {
|
|
1462
|
+
if (animationId !== null)
|
|
1459
1463
|
return;
|
|
1464
|
+
lastFrameTime = performance.now();
|
|
1465
|
+
lastFpsUpdateTime = lastFrameTime;
|
|
1466
|
+
frameCount = 0;
|
|
1467
|
+
function renderFrame() {
|
|
1468
|
+
const now = performance.now();
|
|
1469
|
+
const frameDuration = 1e3 / props.frameRate;
|
|
1470
|
+
const delta = now - lastFrameTime;
|
|
1471
|
+
if (delta >= frameDuration) {
|
|
1472
|
+
lastFrameTime = now - delta % frameDuration;
|
|
1473
|
+
drawFrame();
|
|
1474
|
+
frameCount++;
|
|
1475
|
+
const elapsed = now - lastFpsUpdateTime;
|
|
1476
|
+
if (elapsed >= 1e3) {
|
|
1477
|
+
const currentFps = Math.round(frameCount * 1e3 / elapsed);
|
|
1478
|
+
console.log(`[Bitmap] FPS: ${currentFps}`);
|
|
1479
|
+
frameCount = 0;
|
|
1480
|
+
lastFpsUpdateTime = now;
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
if (props.status === TickerStatus.playing) {
|
|
1484
|
+
animationId = requestAnimationFrame(renderFrame);
|
|
1485
|
+
} else {
|
|
1486
|
+
animationId = null;
|
|
1487
|
+
}
|
|
1460
1488
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1489
|
+
function drawFrame() {
|
|
1490
|
+
if (props.data.length === 0 || props.status !== TickerStatus.playing) {
|
|
1491
|
+
return;
|
|
1492
|
+
}
|
|
1493
|
+
const bitmap = props.data[index.value];
|
|
1494
|
+
if (bitmap) {
|
|
1495
|
+
const originIndex = index.value - 1;
|
|
1496
|
+
if (originIndex >= 0) {
|
|
1497
|
+
scheduleClearFrame(originIndex);
|
|
1498
|
+
}
|
|
1499
|
+
updateTextureFromBitmap(bitmap);
|
|
1500
|
+
index.value = index.value + 1;
|
|
1501
|
+
} else {
|
|
1502
|
+
console.warn(
|
|
1503
|
+
`Bitmap for index ${index.value} not found. Ensure the data is loaded.`
|
|
1504
|
+
);
|
|
1505
|
+
emit("notFound", index.value);
|
|
1466
1506
|
}
|
|
1467
|
-
updateTextureFromBitmap(bitmap);
|
|
1468
|
-
index.value = index.value + 1;
|
|
1469
|
-
} else {
|
|
1470
|
-
console.warn(
|
|
1471
|
-
`Bitmap for index ${index.value} not found. Ensure the data is loaded.`
|
|
1472
|
-
);
|
|
1473
|
-
emit("notFound", index.value);
|
|
1474
1507
|
}
|
|
1508
|
+
animationId = requestAnimationFrame(renderFrame);
|
|
1475
1509
|
}
|
|
1476
1510
|
watchEffect(() => {
|
|
1477
1511
|
if (props.prerender && index.value === 0 && props.data.length > 0 && props.data[0]) {
|
|
@@ -1485,21 +1519,21 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1485
1519
|
}, { immediate: true });
|
|
1486
1520
|
function play() {
|
|
1487
1521
|
if (props.data.length > 0) {
|
|
1488
|
-
application.ticker.minFPS = props.frameRate;
|
|
1489
|
-
application.ticker.maxFPS = props.frameRate;
|
|
1490
1522
|
emit("update:status", TickerStatus.playing);
|
|
1491
|
-
|
|
1523
|
+
startFrameLoop();
|
|
1492
1524
|
} else {
|
|
1493
1525
|
emit("update:status", TickerStatus.stopped);
|
|
1494
1526
|
}
|
|
1495
1527
|
}
|
|
1496
1528
|
function pause() {
|
|
1497
|
-
application.ticker.remove(drawFrame);
|
|
1498
1529
|
emit("update:status", TickerStatus.paused);
|
|
1499
1530
|
}
|
|
1500
1531
|
function stop() {
|
|
1501
|
-
application.ticker.remove(drawFrame);
|
|
1502
1532
|
emit("update:status", TickerStatus.stopped);
|
|
1533
|
+
if (animationId !== null) {
|
|
1534
|
+
cancelAnimationFrame(animationId);
|
|
1535
|
+
animationId = null;
|
|
1536
|
+
}
|
|
1503
1537
|
emit("update:data", []);
|
|
1504
1538
|
index.value = 0;
|
|
1505
1539
|
lastScheduledClearIndex.value = -1;
|
|
@@ -1508,7 +1542,23 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1508
1542
|
stop();
|
|
1509
1543
|
texture.destroy();
|
|
1510
1544
|
});
|
|
1511
|
-
const __returned__ = { props, emit, sprite, resizeSprite, application, texture, updateTextureFromBitmap, index, lastScheduledClearIndex, scheduleClearFrame,
|
|
1545
|
+
const __returned__ = { props, emit, sprite, resizeSprite, application, texture, updateTextureFromBitmap, index, lastScheduledClearIndex, scheduleClearFrame, get animationId() {
|
|
1546
|
+
return animationId;
|
|
1547
|
+
}, set animationId(v) {
|
|
1548
|
+
animationId = v;
|
|
1549
|
+
}, get lastFrameTime() {
|
|
1550
|
+
return lastFrameTime;
|
|
1551
|
+
}, set lastFrameTime(v) {
|
|
1552
|
+
lastFrameTime = v;
|
|
1553
|
+
}, get frameCount() {
|
|
1554
|
+
return frameCount;
|
|
1555
|
+
}, set frameCount(v) {
|
|
1556
|
+
frameCount = v;
|
|
1557
|
+
}, get lastFpsUpdateTime() {
|
|
1558
|
+
return lastFpsUpdateTime;
|
|
1559
|
+
}, set lastFpsUpdateTime(v) {
|
|
1560
|
+
lastFpsUpdateTime = v;
|
|
1561
|
+
}, startFrameLoop, play, pause, stop };
|
|
1512
1562
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1513
1563
|
return __returned__;
|
|
1514
1564
|
}
|
|
@@ -92,7 +92,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
92
92
|
index: import("vue").WritableComputedRef<number, number>;
|
|
93
93
|
lastScheduledClearIndex: import("vue").Ref<number, number>;
|
|
94
94
|
scheduleClearFrame: (frameIndex: number) => void;
|
|
95
|
-
|
|
95
|
+
animationId: number | null;
|
|
96
|
+
lastFrameTime: number;
|
|
97
|
+
frameCount: number;
|
|
98
|
+
lastFpsUpdateTime: number;
|
|
99
|
+
startFrameLoop: () => void;
|
|
96
100
|
play: () => void;
|
|
97
101
|
pause: () => void;
|
|
98
102
|
stop: () => void;
|
|
@@ -524,7 +524,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
524
524
|
index: import("vue").WritableComputedRef<number, number>;
|
|
525
525
|
lastScheduledClearIndex: import("vue").Ref<number, number>;
|
|
526
526
|
scheduleClearFrame: (frameIndex: number) => void;
|
|
527
|
-
|
|
527
|
+
animationId: number | null;
|
|
528
|
+
lastFrameTime: number;
|
|
529
|
+
frameCount: number;
|
|
530
|
+
lastFpsUpdateTime: number;
|
|
531
|
+
startFrameLoop: () => void;
|
|
528
532
|
play: () => void;
|
|
529
533
|
pause: () => void;
|
|
530
534
|
stop: () => void;
|
|
@@ -54,4 +54,4 @@ export declare const tableColumnProps: {
|
|
|
54
54
|
validator: (val: TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"width", keyof T2> | Extract<"label", keyof T2> | Extract<"
|
|
57
|
+
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"width", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"resizable", keyof T2> | Extract<"index", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"fixed", keyof T2>, KE> | Exclude<Extract<"filters", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"resizable", keyof T2>, KE> | Exclude<Extract<"index", keyof T2>, KE> | Exclude<Extract<"labelClassName", keyof T2>, KE> | Exclude<Extract<"property", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"minWidth", keyof T2>, KE> | Exclude<Extract<"renderHeader", keyof T2>, KE> | Exclude<Extract<"sortable", keyof T2>, KE> | Exclude<Extract<"sortMethod", keyof T2>, KE> | Exclude<Extract<"sortBy", keyof T2>, KE> | Exclude<Extract<"columnKey", keyof T2>, KE> | Exclude<Extract<"align", keyof T2>, KE> | Exclude<Extract<"headerAlign", keyof T2>, KE> | Exclude<Extract<"showOverflowTooltip", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"selectable", keyof T2>, KE> | Exclude<Extract<"reserveSelection", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"filteredValue", keyof T2>, KE> | Exclude<Extract<"filterPlacement", keyof T2>, KE> | Exclude<Extract<"filterMultiple", keyof T2>, KE> | Exclude<Extract<"sortOrders", keyof T2>, KE> | Exclude<Extract<"showTooltipWhenOverflow", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"width", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"resizable", keyof T2> | Extract<"index", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"width", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"resizable", keyof T2> | Extract<"index", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortable", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"align", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: T2[k]; }[P]; }>;
|