@pantograph/pattern-vue 0.0.3 → 0.0.5
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/README.md +2 -2
- package/dist/ComponentMap-B1762IQM.js +21 -0
- package/dist/ComponentMap-Cwlxatbx.js +1 -0
- package/dist/ComponentMap.d.ts +1 -1
- package/dist/components/CoachMark/CoachMark.d.ts +52 -0
- package/dist/components/CoachMark/constant.d.ts +72 -0
- package/dist/components/CoachMark/index.d.ts +5 -0
- package/dist/components/CoachMark/model.d.ts +8 -0
- package/dist/components/CoachMark/types.d.ts +105 -0
- package/dist/components/Comment/Comment.d.ts +28 -0
- package/dist/components/Comment/CommentAction.d.ts +17 -0
- package/dist/components/Comment/CommentActions.d.ts +431 -0
- package/dist/components/Comment/CommentEditor.d.ts +67 -0
- package/dist/components/Comment/CommentFileList.d.ts +2 -0
- package/dist/components/Comment/CommentMention.d.ts +639 -0
- package/dist/components/Comment/CommentReaction.d.ts +11 -0
- package/dist/components/Comment/CommentReactionHoverCard.d.ts +10 -0
- package/dist/components/Comment/CommentReactionList.d.ts +217 -0
- package/dist/components/Comment/CommentReactionListItem.d.ts +3 -0
- package/dist/components/Comment/CommentTrigger.d.ts +15 -0
- package/dist/components/Comment/constant.d.ts +59 -0
- package/dist/components/Comment/context.d.ts +3 -0
- package/dist/components/Comment/index.d.ts +13 -0
- package/dist/components/Comment/types.d.ts +563 -0
- package/dist/components/Comment/useComment.d.ts +49 -0
- package/dist/components/DataTable/DataTable.d.ts +99 -0
- package/dist/components/DataTable/components/DataTableBatchActions.d.ts +9 -0
- package/dist/components/DataTable/components/DataTableBatchActionsContent.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableColGroup.d.ts +6 -0
- package/dist/components/DataTable/components/DataTableContent.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableEmpty.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableFooter.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableHeader.d.ts +57 -0
- package/dist/components/DataTable/components/DataTableHeaderCell.d.ts +243 -0
- package/dist/components/DataTable/components/DataTableHeaderCellActionsPopover.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableInsertBetween.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableLazyLoading.d.ts +56 -0
- package/dist/components/DataTable/components/DataTableLoadingRow.d.ts +18 -0
- package/dist/components/DataTable/components/DataTableRow.d.ts +15 -0
- package/dist/components/DataTable/components/ThDragGhost.d.ts +16 -0
- package/dist/components/DataTable/constant.d.ts +20 -0
- package/dist/components/DataTable/context.d.ts +2 -0
- package/dist/components/DataTable/index.d.ts +5 -0
- package/dist/components/DataTable/types/cell.d.ts +15 -0
- package/dist/components/DataTable/types/column.d.ts +69 -0
- package/dist/components/DataTable/types/common.d.ts +18 -0
- package/dist/components/DataTable/types/context.d.ts +44 -0
- package/dist/components/DataTable/types/index.d.ts +139 -0
- package/dist/components/DataTable/types/select.d.ts +25 -0
- package/dist/components/DataTable/utils/index.d.ts +14 -0
- package/dist/components/DataTable/utils/useCell.d.ts +23 -0
- package/dist/components/DataTable/utils/useCol.d.ts +35 -0
- package/dist/components/DataTable/utils/useColumnFixed.d.ts +23 -0
- package/dist/components/DataTable/utils/useColumnOrder.d.ts +32 -0
- package/dist/components/DataTable/utils/useColumnPopover.d.ts +19 -0
- package/dist/components/DataTable/utils/useColumnSize.d.ts +14 -0
- package/dist/components/DataTable/utils/useColumnWrap.d.ts +7 -0
- package/dist/components/DataTable/utils/useFilter.d.ts +14 -0
- package/dist/components/DataTable/utils/useInsertBetween.d.ts +5 -0
- package/dist/components/DataTable/utils/useRow.d.ts +9 -0
- package/dist/components/DataTable/utils/useRowOrder.d.ts +114 -0
- package/dist/components/DataTable/utils/useRowVirtualizer.d.ts +12 -0
- package/dist/components/DataTable/utils/useSelection.d.ts +30 -0
- package/dist/components/DataTable/utils/useSort.d.ts +12 -0
- package/dist/components/Form/Form.d.ts +58 -0
- package/dist/components/Form/FormItem.d.ts +22 -0
- package/dist/components/Form/constant.d.ts +18 -0
- package/dist/components/Form/defineRules.d.ts +6 -0
- package/dist/components/Form/index.d.ts +5 -0
- package/dist/components/Form/types.d.ts +418 -0
- package/dist/components/GOPicker/GOItemSkeleton.d.ts +2 -0
- package/dist/components/GOPicker/GOPicker.d.ts +33 -0
- package/dist/components/GOPicker/constant.d.ts +40 -0
- package/dist/components/GOPicker/emojis.d.ts +24 -0
- package/dist/components/GOPicker/getEmojiList.d.ts +42 -0
- package/dist/components/GOPicker/icons.d.ts +9 -0
- package/dist/components/GOPicker/index.d.ts +6 -0
- package/dist/components/GOPicker/model.d.ts +16 -0
- package/dist/components/GOPicker/types.d.ts +353 -0
- package/dist/components/InputPassword/InputPassword.d.ts +4 -71
- package/dist/components/InputPassword/constant.d.ts +12 -0
- package/dist/components/InputPassword/index.d.ts +4 -8
- package/dist/components/InputPassword/types.d.ts +46 -0
- package/dist/components/ListView/ListView.d.ts +15 -0
- package/dist/components/ListView/ListViewItem.d.ts +10 -0
- package/dist/components/ListView/constant.d.ts +4 -0
- package/dist/components/ListView/index.d.ts +5 -0
- package/dist/components/ListView/types.d.ts +16 -0
- package/dist/index-D-WRsztv.js +3431 -0
- package/dist/index-DhcyeKI-.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +52 -4
- package/dist/index.umd.cjs +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/nuxt/index.umd.cjs +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/resolver/index.umd.cjs +1 -1
- package/dist/use/index.js +24437 -100
- package/dist/use/index.umd.cjs +30 -1
- package/package.json +11 -6
- package/dist/ComponentMap-BDQ8ar3z.js +0 -6
- package/dist/ComponentMap-CTyWVtmA.js +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommentReactionProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<CommentReactionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:open": (value: string) => any;
|
|
4
|
+
reaction: (value: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<CommentReactionProps> & Readonly<{
|
|
6
|
+
"onUpdate:open"?: ((value: string) => any) | undefined;
|
|
7
|
+
onReaction?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
open: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactionHoverCardProps, ReactionHoverCardSlots } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ReactionHoverCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ReactionHoverCardProps> & Readonly<{}>, {
|
|
3
|
+
reactionUsersTitle: string;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<ReactionHoverCardSlots> & ReactionHoverCardSlots>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
7
|
+
new (): {
|
|
8
|
+
$slots: S;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
reactionRef: ({
|
|
3
|
+
$: import('vue').ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: {
|
|
6
|
+
readonly hover?: boolean | undefined;
|
|
7
|
+
readonly as?: ("svg" | "input" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "label" | "li" | "nav" | "ol" | "p" | "span" | "template" | "ul" | ({} & string)) | import('vue').Component | undefined;
|
|
8
|
+
readonly disabled?: boolean | undefined;
|
|
9
|
+
readonly class?: import('clsx').ClassValue;
|
|
10
|
+
readonly icon?: string | undefined;
|
|
11
|
+
readonly flipOnDir?: import('@pantograph/vue').FlipOnDir | undefined;
|
|
12
|
+
readonly dir?: import('@pantograph/vue').Direction | undefined;
|
|
13
|
+
readonly size?: "md" | "sm" | "lg" | undefined;
|
|
14
|
+
readonly color?: "neutral" | "primary" | "danger" | "success" | "warning" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "teal" | "cyan" | "sky" | "blue" | "ocean" | "violet" | "amethyst" | "fuchsia" | "pink" | "mallard" | "gray" | undefined;
|
|
15
|
+
readonly noRing?: boolean | undefined;
|
|
16
|
+
readonly type?: "ghost" | "fill" | "outline" | undefined;
|
|
17
|
+
readonly loading?: boolean | undefined;
|
|
18
|
+
readonly customStroke?: boolean | undefined;
|
|
19
|
+
readonly preIconCustomStroke?: boolean | undefined;
|
|
20
|
+
readonly postIconCustomStroke?: boolean | undefined;
|
|
21
|
+
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
22
|
+
readonly block?: boolean | undefined;
|
|
23
|
+
readonly href?: string | undefined;
|
|
24
|
+
readonly target?: string | undefined;
|
|
25
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
26
|
+
$attrs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$refs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
} & {
|
|
32
|
+
buttonRef: ({
|
|
33
|
+
$: import('vue').ComponentInternalInstance;
|
|
34
|
+
$data: {};
|
|
35
|
+
$props: {
|
|
36
|
+
readonly dir?: import('@pantograph/vue').Direction | undefined;
|
|
37
|
+
readonly as?: ("svg" | "input" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "label" | "li" | "nav" | "ol" | "p" | "span" | "template" | "ul" | ({} & string)) | import('vue').Component | undefined;
|
|
38
|
+
readonly class?: import('clsx').ClassValue;
|
|
39
|
+
readonly text?: string | number | undefined;
|
|
40
|
+
readonly size?: "md" | "sm" | "lg" | undefined;
|
|
41
|
+
readonly color?: "neutral" | "primary" | "danger" | "success" | "warning" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "teal" | "cyan" | "sky" | "blue" | "ocean" | "violet" | "amethyst" | "fuchsia" | "pink" | "mallard" | "gray" | undefined;
|
|
42
|
+
readonly noRing?: boolean | undefined;
|
|
43
|
+
readonly type?: "ghost" | "fill" | "outline" | undefined;
|
|
44
|
+
readonly variant?: "icon" | "simple" | "float" | undefined;
|
|
45
|
+
readonly loading?: boolean | undefined;
|
|
46
|
+
readonly action?: boolean | undefined;
|
|
47
|
+
readonly active?: boolean | undefined;
|
|
48
|
+
readonly badgeText?: string | undefined;
|
|
49
|
+
readonly badgeIcon?: string | undefined;
|
|
50
|
+
readonly icon?: string | undefined;
|
|
51
|
+
readonly preIcon?: string | undefined;
|
|
52
|
+
readonly postIcon?: string | undefined;
|
|
53
|
+
readonly customStroke?: boolean | undefined;
|
|
54
|
+
readonly preIconCustomStroke?: boolean | undefined;
|
|
55
|
+
readonly postIconCustomStroke?: boolean | undefined;
|
|
56
|
+
readonly flipOnDir?: import('@pantograph/vue').FlipOnDir | undefined;
|
|
57
|
+
readonly preIconFlipOnDir?: import('@pantograph/vue').FlipOnDir | undefined;
|
|
58
|
+
readonly postIconFlipOnDir?: import('@pantograph/vue').FlipOnDir | undefined;
|
|
59
|
+
readonly badgeIconFlipOnDir?: import('@pantograph/vue').FlipOnDir | undefined;
|
|
60
|
+
readonly htmlType?: "reset" | "submit" | "button" | undefined;
|
|
61
|
+
readonly block?: boolean | undefined;
|
|
62
|
+
readonly disabled?: boolean | undefined;
|
|
63
|
+
readonly hover?: boolean | undefined;
|
|
64
|
+
readonly href?: string | undefined;
|
|
65
|
+
readonly target?: string | undefined;
|
|
66
|
+
readonly onClick?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
68
|
+
$attrs: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
};
|
|
71
|
+
$refs: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
} & {
|
|
74
|
+
buttonRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
75
|
+
asChild: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
as: {
|
|
80
|
+
type: import('vue').PropType<("svg" | "input" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "label" | "li" | "nav" | "ol" | "p" | "span" | "template" | "ul" | ({} & string)) | import('vue').Component>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
86
|
+
asChild: boolean;
|
|
87
|
+
as: ("svg" | "input" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "label" | "li" | "nav" | "ol" | "p" | "span" | "template" | "ul" | ({} & string)) | import('vue').Component;
|
|
88
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
89
|
+
P: {};
|
|
90
|
+
B: {};
|
|
91
|
+
D: {};
|
|
92
|
+
C: {};
|
|
93
|
+
M: {};
|
|
94
|
+
Defaults: {};
|
|
95
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
96
|
+
asChild: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
as: {
|
|
101
|
+
type: import('vue').PropType<("svg" | "input" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "label" | "li" | "nav" | "ol" | "p" | "span" | "template" | "ul" | ({} & string)) | import('vue').Component>;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
}>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
}>, {}, {}, {}, {
|
|
107
|
+
asChild: boolean;
|
|
108
|
+
as: ("svg" | "input" | "a" | "button" | "div" | "form" | "h2" | "h3" | "img" | "label" | "li" | "nav" | "ol" | "p" | "span" | "template" | "ul" | ({} & string)) | import('vue').Component;
|
|
109
|
+
}> | null;
|
|
110
|
+
};
|
|
111
|
+
$slots: Readonly<{
|
|
112
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
115
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
116
|
+
$host: Element | null;
|
|
117
|
+
$emit: (event: "click", ...args: any[]) => void;
|
|
118
|
+
$el: any;
|
|
119
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('@pantograph/vue').BaseButtonProps> & Readonly<{
|
|
120
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
}>, {
|
|
122
|
+
isFocused(): boolean;
|
|
123
|
+
focus(): void;
|
|
124
|
+
blur(): void;
|
|
125
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
126
|
+
click: (...args: any[]) => void;
|
|
127
|
+
}, string, {
|
|
128
|
+
type: "ghost" | "fill" | "outline";
|
|
129
|
+
disabled: boolean;
|
|
130
|
+
color: "neutral" | "primary" | "danger" | "success" | "warning" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "teal" | "cyan" | "sky" | "blue" | "ocean" | "violet" | "amethyst" | "fuchsia" | "pink" | "mallard" | "gray";
|
|
131
|
+
htmlType: "reset" | "submit" | "button";
|
|
132
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
133
|
+
beforeCreate?: (() => void) | (() => void)[] | undefined;
|
|
134
|
+
created?: (() => void) | (() => void)[] | undefined;
|
|
135
|
+
beforeMount?: (() => void) | (() => void)[] | undefined;
|
|
136
|
+
mounted?: (() => void) | (() => void)[] | undefined;
|
|
137
|
+
beforeUpdate?: (() => void) | (() => void)[] | undefined;
|
|
138
|
+
updated?: (() => void) | (() => void)[] | undefined;
|
|
139
|
+
activated?: (() => void) | (() => void)[] | undefined;
|
|
140
|
+
deactivated?: (() => void) | (() => void)[] | undefined;
|
|
141
|
+
beforeDestroy?: (() => void) | (() => void)[] | undefined;
|
|
142
|
+
beforeUnmount?: (() => void) | (() => void)[] | undefined;
|
|
143
|
+
destroyed?: (() => void) | (() => void)[] | undefined;
|
|
144
|
+
unmounted?: (() => void) | (() => void)[] | undefined;
|
|
145
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[] | undefined;
|
|
146
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[] | undefined;
|
|
147
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
|
|
148
|
+
};
|
|
149
|
+
$forceUpdate: () => void;
|
|
150
|
+
$nextTick: nextTick;
|
|
151
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
152
|
+
} & Readonly<{
|
|
153
|
+
type: "ghost" | "fill" | "outline";
|
|
154
|
+
disabled: boolean;
|
|
155
|
+
color: "neutral" | "primary" | "danger" | "success" | "warning" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "teal" | "cyan" | "sky" | "blue" | "ocean" | "violet" | "amethyst" | "fuchsia" | "pink" | "mallard" | "gray";
|
|
156
|
+
htmlType: "reset" | "submit" | "button";
|
|
157
|
+
}> & Omit<Readonly<import('@pantograph/vue').BaseButtonProps> & Readonly<{
|
|
158
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
159
|
+
}>, "disabled" | "color" | "type" | "htmlType" | "blur" | "focus" | "isFocused"> & import('vue').ShallowUnwrapRef<{
|
|
160
|
+
isFocused(): boolean;
|
|
161
|
+
focus(): void;
|
|
162
|
+
blur(): void;
|
|
163
|
+
}> & import('vue').ComponentCustomProperties & {
|
|
164
|
+
$slots: Readonly<import('@pantograph/vue').BaseButtonSlots> & import('@pantograph/vue').BaseButtonSlots;
|
|
165
|
+
}) | null;
|
|
166
|
+
};
|
|
167
|
+
$slots: Readonly<{
|
|
168
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
171
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
172
|
+
$host: Element | null;
|
|
173
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
174
|
+
$el: any;
|
|
175
|
+
$options: import('vue').ComponentOptionsBase<Readonly<Partial<Omit<import('@pantograph/vue').BaseButtonProps, "variant" | "action" | "active" | "badgeText" | "badgeIcon" | "badgeIconFlipOnDir" | "text" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir">>> & Readonly<{}>, {
|
|
176
|
+
isFocused(): void;
|
|
177
|
+
focus(): void;
|
|
178
|
+
blur(): void;
|
|
179
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
180
|
+
type: "ghost" | "fill" | "outline";
|
|
181
|
+
disabled: boolean;
|
|
182
|
+
color: "neutral" | "primary" | "danger" | "success" | "warning" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "teal" | "cyan" | "sky" | "blue" | "ocean" | "violet" | "amethyst" | "fuchsia" | "pink" | "mallard" | "gray";
|
|
183
|
+
htmlType: "reset" | "submit" | "button";
|
|
184
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
185
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
186
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
187
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
188
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
189
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
190
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
191
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
192
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
193
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
194
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
195
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
196
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
197
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
198
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
199
|
+
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
|
|
200
|
+
};
|
|
201
|
+
$forceUpdate: () => void;
|
|
202
|
+
$nextTick: typeof import('vue').nextTick;
|
|
203
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R_1 ? (args_0: R_1, args_1: R_1, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
204
|
+
} & Readonly<{
|
|
205
|
+
type: "ghost" | "fill" | "outline";
|
|
206
|
+
disabled: boolean;
|
|
207
|
+
color: "neutral" | "primary" | "danger" | "success" | "warning" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "teal" | "cyan" | "sky" | "blue" | "ocean" | "violet" | "amethyst" | "fuchsia" | "pink" | "mallard" | "gray";
|
|
208
|
+
htmlType: "reset" | "submit" | "button";
|
|
209
|
+
}> & Omit<Readonly<Partial<Omit<import('@pantograph/vue').BaseButtonProps, "variant" | "action" | "active" | "badgeText" | "badgeIcon" | "badgeIconFlipOnDir" | "text" | "preIcon" | "postIcon" | "preIconFlipOnDir" | "postIconFlipOnDir">>> & Readonly<{}>, "disabled" | "color" | "type" | "htmlType" | "blur" | "focus" | "isFocused"> & import('vue').ShallowUnwrapRef<{
|
|
210
|
+
isFocused(): void;
|
|
211
|
+
focus(): void;
|
|
212
|
+
blur(): void;
|
|
213
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
214
|
+
$slots: Readonly<import('@pantograph/vue').IconButtonSlots> & import('@pantograph/vue').IconButtonSlots;
|
|
215
|
+
}) | null;
|
|
216
|
+
}, any>;
|
|
217
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CommentReactionItemProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<CommentReactionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CommentReactionItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CommentTriggerProps, CommentTriggerSlots } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CommentTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
add: (value: MouseEvent | KeyboardEvent) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<CommentTriggerProps> & Readonly<{
|
|
5
|
+
onAdd?: ((value: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
text: string;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>, Readonly<CommentTriggerSlots> & CommentTriggerSlots>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default props for the Comment component
|
|
3
|
+
*/
|
|
4
|
+
export declare const COMMENT_DEFAULT_PROPS: {
|
|
5
|
+
readonly repliesTitle: "Replies";
|
|
6
|
+
readonly open: undefined;
|
|
7
|
+
readonly hasReaction: true;
|
|
8
|
+
readonly hasEdit: true;
|
|
9
|
+
readonly hasDelete: true;
|
|
10
|
+
readonly hasReply: true;
|
|
11
|
+
readonly reactionUsersTitle: "people reacted with";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Default props for the CommentAction component
|
|
15
|
+
*/
|
|
16
|
+
export declare const COMMENT_ACTION_DEFAULT_PROPS: {
|
|
17
|
+
readonly open: undefined;
|
|
18
|
+
readonly hasEdit: true;
|
|
19
|
+
readonly hasDelete: true;
|
|
20
|
+
readonly editText: "Edit";
|
|
21
|
+
readonly deleteText: "Delete";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Default props for the CommentEditor component
|
|
25
|
+
*/
|
|
26
|
+
export declare const COMMENT_EDITOR_DEFAULT_PROPS: {
|
|
27
|
+
readonly maxHeight: 100;
|
|
28
|
+
readonly okProps: () => {
|
|
29
|
+
text: string;
|
|
30
|
+
};
|
|
31
|
+
readonly cancelProps: () => {
|
|
32
|
+
text: string;
|
|
33
|
+
color: "neutral" | "primary" | "danger" | "success" | "warning" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "teal" | "cyan" | "sky" | "blue" | "ocean" | "violet" | "amethyst" | "fuchsia" | "pink" | "mallard" | "gray" | undefined;
|
|
34
|
+
};
|
|
35
|
+
readonly kbdProps: () => {
|
|
36
|
+
text: string;
|
|
37
|
+
hide: boolean;
|
|
38
|
+
};
|
|
39
|
+
readonly kbdDescription: "to send";
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Default props for the CommentReaction component
|
|
43
|
+
*/
|
|
44
|
+
export declare const COMMENT_REACTION_DEFAULT_PROPS: {
|
|
45
|
+
readonly open: undefined;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Default props for the CommentReactionHoverCard component
|
|
49
|
+
*/
|
|
50
|
+
export declare const COMMENT_REACTION_HOVER_CARD_DEFAULT_PROPS: {
|
|
51
|
+
readonly reactionUsersTitle: "people reacted with";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Default props for the CommentTrigger component
|
|
55
|
+
*/
|
|
56
|
+
export declare const COMMENT_TRIGGER_DEFAULT_PROPS: {
|
|
57
|
+
readonly text: "Add a Comment or type @ to Mention...";
|
|
58
|
+
readonly disabled: undefined;
|
|
59
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CommentContext } from './types';
|
|
2
|
+
export declare const commentPrefix: string;
|
|
3
|
+
export declare const injectCommentContext: <T extends CommentContext | null | undefined = CommentContext>(fallback?: T | undefined) => T extends null ? CommentContext | null : CommentContext, provideCommentContext: (contextValue: CommentContext) => CommentContext;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as Comment } from './Comment';
|
|
2
|
+
import { default as CommentAction } from './CommentAction';
|
|
3
|
+
import { default as CommentReaction } from './CommentReaction';
|
|
4
|
+
import { default as CommentReactionListItem } from './CommentReactionListItem';
|
|
5
|
+
import { default as CommentReactionHoverCard } from './CommentReactionHoverCard';
|
|
6
|
+
import { default as CommentMention } from './CommentMention';
|
|
7
|
+
import { default as CommentEditor } from './CommentEditor';
|
|
8
|
+
import { default as CommentTrigger } from './CommentTrigger';
|
|
9
|
+
export { Comment, CommentAction, CommentReaction, CommentReactionListItem, CommentReactionHoverCard, CommentMention, CommentEditor, CommentTrigger, };
|
|
10
|
+
export * from './useComment';
|
|
11
|
+
export * from './types';
|
|
12
|
+
export * from './constant';
|
|
13
|
+
export * from './context';
|