@pksep/yui 0.1.246 → 0.1.248
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/components/ContentEditor/ContentEditor.vue.d.ts +81 -6
- package/dist/components/ContentEditor/ContentEditorFormattingToolbar.vue.d.ts +16 -0
- package/dist/components/ContentEditor/ContentEditorMentionList.vue.d.ts +28 -0
- package/dist/components/ContentEditor/DropZone.vue.d.ts +8 -2
- package/dist/components/ContentEditor/interfaces/content-editor.d.ts +25 -3
- package/dist/components/Icon/enum/enum.d.ts +11 -1
- package/dist/components/Icon/icons.d.ts +10 -0
- package/dist/components/Popover/interface/interface.d.ts +1 -0
- package/dist/sep-yui.es.ts +28143 -25597
- package/dist/sep-yui.umd.ts +284 -245
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -19,14 +19,52 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
19
19
|
isMentionModalOpen: {
|
|
20
20
|
type: import('vue').PropType<boolean>;
|
|
21
21
|
};
|
|
22
|
+
mentionItems: {
|
|
23
|
+
type: import('vue').PropType<unknown[]>;
|
|
24
|
+
};
|
|
25
|
+
mentionConfig: {
|
|
26
|
+
type: import('vue').PropType<{
|
|
27
|
+
getKey?: (item: unknown, index: number) => string | number;
|
|
28
|
+
getLabel?: (item: unknown) => string;
|
|
29
|
+
getSubtitle?: (item: unknown) => string;
|
|
30
|
+
getAvatarUrl?: (item: unknown) => string;
|
|
31
|
+
getAvatarInitials?: (item: unknown) => string;
|
|
32
|
+
getIsOnline?: (item: unknown) => boolean;
|
|
33
|
+
getInsertLabel?: (item: unknown) => string;
|
|
34
|
+
getInsertAttrs?: (item: unknown) => Record<string, string>;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
mentionItemKey: {
|
|
38
|
+
type: import('vue').PropType<(item: unknown, index: number) => string | number>;
|
|
39
|
+
};
|
|
40
|
+
mentionItemLabel: {
|
|
41
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
42
|
+
};
|
|
43
|
+
mentionItemSubtitle: {
|
|
44
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
45
|
+
};
|
|
46
|
+
mentionItemAvatarUrl: {
|
|
47
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
48
|
+
};
|
|
49
|
+
mentionItemAvatarInitials: {
|
|
50
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
51
|
+
};
|
|
52
|
+
mentionItemIsOnline: {
|
|
53
|
+
type: import('vue').PropType<(item: unknown) => boolean>;
|
|
54
|
+
};
|
|
55
|
+
mentionInsertLabel: {
|
|
56
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
57
|
+
};
|
|
58
|
+
mentionInsertAttrs: {
|
|
59
|
+
type: import('vue').PropType<(item: unknown) => Record<string, string>>;
|
|
60
|
+
};
|
|
22
61
|
}>, {
|
|
23
62
|
addSpanLink: (content: string, attrs?: Record<string, string>) => void;
|
|
24
63
|
focus: () => void;
|
|
25
64
|
editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor | undefined, import('@tiptap/vue-3').Editor | undefined>;
|
|
65
|
+
emitAttachFiles: (files: FileList | File[], onlyMedia?: boolean) => Promise<void>;
|
|
26
66
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
-
"unmount-send": (params:
|
|
28
|
-
content?: string;
|
|
29
|
-
}) => void;
|
|
67
|
+
"unmount-send": (params: import('./interfaces/content-editor').IContentEditorSendPayload) => void;
|
|
30
68
|
"unmount-attach-file": (files: FileList, onlyMedia: boolean) => void;
|
|
31
69
|
"mention-change": (search: string | null) => void;
|
|
32
70
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -46,10 +84,47 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
46
84
|
isMentionModalOpen: {
|
|
47
85
|
type: import('vue').PropType<boolean>;
|
|
48
86
|
};
|
|
87
|
+
mentionItems: {
|
|
88
|
+
type: import('vue').PropType<unknown[]>;
|
|
89
|
+
};
|
|
90
|
+
mentionConfig: {
|
|
91
|
+
type: import('vue').PropType<{
|
|
92
|
+
getKey?: (item: unknown, index: number) => string | number;
|
|
93
|
+
getLabel?: (item: unknown) => string;
|
|
94
|
+
getSubtitle?: (item: unknown) => string;
|
|
95
|
+
getAvatarUrl?: (item: unknown) => string;
|
|
96
|
+
getAvatarInitials?: (item: unknown) => string;
|
|
97
|
+
getIsOnline?: (item: unknown) => boolean;
|
|
98
|
+
getInsertLabel?: (item: unknown) => string;
|
|
99
|
+
getInsertAttrs?: (item: unknown) => Record<string, string>;
|
|
100
|
+
}>;
|
|
101
|
+
};
|
|
102
|
+
mentionItemKey: {
|
|
103
|
+
type: import('vue').PropType<(item: unknown, index: number) => string | number>;
|
|
104
|
+
};
|
|
105
|
+
mentionItemLabel: {
|
|
106
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
107
|
+
};
|
|
108
|
+
mentionItemSubtitle: {
|
|
109
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
110
|
+
};
|
|
111
|
+
mentionItemAvatarUrl: {
|
|
112
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
113
|
+
};
|
|
114
|
+
mentionItemAvatarInitials: {
|
|
115
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
116
|
+
};
|
|
117
|
+
mentionItemIsOnline: {
|
|
118
|
+
type: import('vue').PropType<(item: unknown) => boolean>;
|
|
119
|
+
};
|
|
120
|
+
mentionInsertLabel: {
|
|
121
|
+
type: import('vue').PropType<(item: unknown) => string>;
|
|
122
|
+
};
|
|
123
|
+
mentionInsertAttrs: {
|
|
124
|
+
type: import('vue').PropType<(item: unknown) => Record<string, string>>;
|
|
125
|
+
};
|
|
49
126
|
}>> & Readonly<{
|
|
50
|
-
"onUnmount-send"?: ((params:
|
|
51
|
-
content?: string;
|
|
52
|
-
}) => any) | undefined;
|
|
127
|
+
"onUnmount-send"?: ((params: import('./interfaces/content-editor').IContentEditorSendPayload) => any) | undefined;
|
|
53
128
|
"onUnmount-attach-file"?: ((files: FileList, onlyMedia: boolean) => any) | undefined;
|
|
54
129
|
"onMention-change"?: ((search: string | null) => any) | undefined;
|
|
55
130
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
editor?: Editor | null;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
items: unknown[];
|
|
3
|
+
selectedIndex: number;
|
|
4
|
+
isModal?: boolean;
|
|
5
|
+
isFixed?: boolean;
|
|
6
|
+
positionStyle?: Record<string, string>;
|
|
7
|
+
getKey: (item: unknown, index: number) => string | number;
|
|
8
|
+
getLabel: (item: unknown) => string;
|
|
9
|
+
getSubtitle: (item: unknown) => string;
|
|
10
|
+
getAvatarUrl: (item: unknown) => string;
|
|
11
|
+
getAvatarInitials: (item: unknown) => string;
|
|
12
|
+
getIsOnline: (item: unknown) => boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
select: (item: unknown) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
17
|
+
onSelect?: ((item: unknown) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
+
} : {
|
|
25
|
+
type: import('vue').PropType<T[K]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
-
"files-dropped": (
|
|
2
|
+
"files-dropped": (payload: {
|
|
3
|
+
files: File[];
|
|
4
|
+
onlyMedia: boolean;
|
|
5
|
+
}) => void;
|
|
3
6
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
-
"onFiles-dropped"?: ((
|
|
7
|
+
"onFiles-dropped"?: ((payload: {
|
|
8
|
+
files: File[];
|
|
9
|
+
onlyMedia: boolean;
|
|
10
|
+
}) => any) | undefined;
|
|
5
11
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
12
|
export default _default;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
export interface IContentEditorSendPayload {
|
|
2
|
+
content?: string;
|
|
3
|
+
files?: FileList;
|
|
4
|
+
mediaFiles?: FileList;
|
|
5
|
+
}
|
|
1
6
|
export interface IContentEditorEmit {
|
|
2
|
-
(e: 'unmount-send', params:
|
|
3
|
-
content?: string;
|
|
4
|
-
}): void;
|
|
7
|
+
(e: 'unmount-send', params: IContentEditorSendPayload): void;
|
|
5
8
|
(e: 'unmount-attach-file', files: FileList, onlyMedia: boolean): void;
|
|
6
9
|
(e: 'mention-change', search: string | null): void;
|
|
7
10
|
}
|
|
@@ -11,4 +14,23 @@ export interface IContentEditorProps {
|
|
|
11
14
|
activeSend?: boolean;
|
|
12
15
|
disableSendOnEnter?: boolean;
|
|
13
16
|
isMentionModalOpen?: boolean;
|
|
17
|
+
mentionItems?: unknown[];
|
|
18
|
+
mentionConfig?: {
|
|
19
|
+
getKey?: (item: unknown, index: number) => string | number;
|
|
20
|
+
getLabel?: (item: unknown) => string;
|
|
21
|
+
getSubtitle?: (item: unknown) => string;
|
|
22
|
+
getAvatarUrl?: (item: unknown) => string;
|
|
23
|
+
getAvatarInitials?: (item: unknown) => string;
|
|
24
|
+
getIsOnline?: (item: unknown) => boolean;
|
|
25
|
+
getInsertLabel?: (item: unknown) => string;
|
|
26
|
+
getInsertAttrs?: (item: unknown) => Record<string, string>;
|
|
27
|
+
};
|
|
28
|
+
mentionItemKey?: (item: unknown, index: number) => string | number;
|
|
29
|
+
mentionItemLabel?: (item: unknown) => string;
|
|
30
|
+
mentionItemSubtitle?: (item: unknown) => string;
|
|
31
|
+
mentionItemAvatarUrl?: (item: unknown) => string;
|
|
32
|
+
mentionItemAvatarInitials?: (item: unknown) => string;
|
|
33
|
+
mentionItemIsOnline?: (item: unknown) => boolean;
|
|
34
|
+
mentionInsertLabel?: (item: unknown) => string;
|
|
35
|
+
mentionInsertAttrs?: (item: unknown) => Record<string, string>;
|
|
14
36
|
}
|
|
@@ -129,5 +129,15 @@ export declare enum IconNameEnum {
|
|
|
129
129
|
priorityMedium = "priority-medium",
|
|
130
130
|
priorityHigh = "priority-high",
|
|
131
131
|
priorityUrgent = "priority-urgent",
|
|
132
|
-
fileItem = "file-item"
|
|
132
|
+
fileItem = "file-item",
|
|
133
|
+
file = "file",
|
|
134
|
+
camera = "camera",
|
|
135
|
+
image = "image",
|
|
136
|
+
bold = "bold",
|
|
137
|
+
italic = "italic",
|
|
138
|
+
underline = "underline",
|
|
139
|
+
strikethrough = "strikethrough",
|
|
140
|
+
code = "code",
|
|
141
|
+
link = "link",
|
|
142
|
+
blockquote = "blockquote"
|
|
133
143
|
}
|
|
@@ -142,3 +142,13 @@ export declare const priorityMedium: IVectorIcon;
|
|
|
142
142
|
export declare const priorityHigh: IVectorIcon;
|
|
143
143
|
export declare const priorityUrgent: IVectorIcon;
|
|
144
144
|
export declare const fileItem: IVectorIcon;
|
|
145
|
+
export declare const image: IVectorIcon;
|
|
146
|
+
export declare const file: IVectorIcon;
|
|
147
|
+
export declare const camera: IVectorIcon;
|
|
148
|
+
export declare const bold: IVectorIcon;
|
|
149
|
+
export declare const italic: IVectorIcon;
|
|
150
|
+
export declare const underline: IVectorIcon;
|
|
151
|
+
export declare const strikethrough: IVectorIcon;
|
|
152
|
+
export declare const code: IVectorIcon;
|
|
153
|
+
export declare const link: IVectorIcon;
|
|
154
|
+
export declare const blockquote: IVectorIcon;
|