@deskhero/dh_ui 2.49.1 → 2.49.8
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 +100 -100
- package/dist/adapters/editorjs/EditorjsTransformer.d.ts +3 -0
- package/dist/adapters/editorjs/EditorjsView.vue.d.ts +72 -0
- package/dist/adapters/tiptap/SimpleTemplate.vue.d.ts +29 -0
- package/dist/adapters/tiptap/TiptapAdapter.d.ts +26 -0
- package/dist/adapters/tiptap/TiptapTransformer.d.ts +3 -0
- package/dist/adapters/tiptap/TiptapView.vue.d.ts +73 -0
- package/dist/adapters/tiptap/components/TextAlignButton.vue.d.ts +12 -0
- package/dist/adapters/tiptap/components/ToolbarGroup.vue.d.ts +17 -0
- package/dist/adapters/tiptap/components/button/ButtonGroup.vue.d.ts +29 -0
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingFiveIcon.vue.d.ts +2 -0
- package/dist/adapters/tiptap/components/tiptap-icons/HeadingSixIcon.vue.d.ts +2 -0
- package/dist/adapters/tiptap/composables/useMenuNavigation.d.ts +18 -0
- package/dist/adapters/tiptap/composables/useScrollDetector.d.ts +8 -0
- package/dist/assets/fonts/Rubik-Bold.ttf +0 -0
- package/dist/assets/fonts/Rubik-Bold.woff2 +0 -0
- package/dist/assets/fonts/Rubik-Medium.ttf +0 -0
- package/dist/assets/fonts/Rubik-Medium.woff2 +0 -0
- package/dist/assets/fonts/Rubik-Regular.ttf +0 -0
- package/dist/assets/fonts/Rubik-Regular.woff2 +0 -0
- package/dist/components/ColorPicker.vue.d.ts +17 -0
- package/dist/components/IconWithText.vue.d.ts +149 -0
- package/dist/components/ImageCropper.vue.d.ts +73 -0
- package/dist/components/InputWithList/DropdownList.vue.d.ts +90 -0
- package/dist/components/InputWithList/MultipleInput.vue.d.ts +87 -0
- package/dist/components/InputWithList/SingleInput.vue.d.ts +48 -0
- package/dist/components/InputWithList/TagItem.vue.d.ts +33 -0
- package/dist/components/InputWithList/configs/input-with-list.config.d.ts +8 -0
- package/dist/components/InputWithList.vue.d.ts +165 -0
- package/dist/components/LineChart.vue.d.ts +9 -0
- package/dist/components/Tags.vue.d.ts +91 -0
- package/dist/components/TextEditor.vue.d.ts +81 -0
- package/dist/components/TextEditorLegacy.vue.d.ts +40 -0
- package/dist/components/VerificationCode.vue.d.ts +45 -0
- package/dist/components/configs/input-with-list.config.d.ts +8 -0
- package/dist/dh_ui.es.js +68747 -0
- package/dist/dh_ui.umd.js +739 -0
- package/dist/factories/EditorFactory.d.ts +19 -0
- package/dist/favicon.ico +0 -0
- package/dist/helpers/inputWithListUtils.d.ts +4 -0
- package/dist/index.d.ts +39 -0
- package/dist/main.d.ts +1 -0
- package/dist/models/EditorJSi18n.model.d.ts +109 -0
- package/dist/models/EditorTransformer.d.ts +5 -0
- package/dist/models/InputList.model.d.ts +4 -0
- package/dist/models/InputWithList.model.d.ts +1 -0
- package/dist/style.css +9 -0
- package/dist/tools/editorCode.d.ts +21 -0
- package/package.json +185 -184
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Tag, TagSize } from "@/models/Tag.model";
|
|
2
|
+
import type { PropType } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
maxTags: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
required: false;
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
color: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
type: PropType<TagSize>;
|
|
16
|
+
required: false;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
tags: {
|
|
20
|
+
type: PropType<Tag[]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
isClickable: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
required: false;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
showAllOnHover: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
required: false;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
zIndex: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
}, unknown, {
|
|
38
|
+
isHovering: boolean;
|
|
39
|
+
}, {}, {
|
|
40
|
+
getTags(): Tag[];
|
|
41
|
+
getHiddenTags(): Tag[];
|
|
42
|
+
getHiddenTagsLabel(): string;
|
|
43
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
onMoreClick: null;
|
|
45
|
+
onClick: null;
|
|
46
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
maxTags: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
required: false;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
color: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
size: {
|
|
58
|
+
type: PropType<TagSize>;
|
|
59
|
+
required: false;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
tags: {
|
|
63
|
+
type: PropType<Tag[]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
isClickable: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
required: false;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
showAllOnHover: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
required: false;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
zIndex: {
|
|
77
|
+
type: NumberConstructor;
|
|
78
|
+
default: number;
|
|
79
|
+
};
|
|
80
|
+
}>> & {
|
|
81
|
+
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
onOnMoreClick?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
size: TagSize;
|
|
85
|
+
color: string;
|
|
86
|
+
zIndex: number;
|
|
87
|
+
isClickable: boolean;
|
|
88
|
+
maxTags: number;
|
|
89
|
+
showAllOnHover: boolean;
|
|
90
|
+
}, {}>;
|
|
91
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { SysContentRich, SysAttachment, EditorI18n } from "@/models/Editor.model";
|
|
2
|
+
import { FileRegistration, UploadEventPayload } from "@/models/UploadedFile.model";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
data: {
|
|
5
|
+
type: import("vue").PropType<SysContentRich>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
i18n: {
|
|
9
|
+
type: import("vue").PropType<EditorI18n>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
readOnly: {
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
attachments: {
|
|
17
|
+
type: import("vue").PropType<SysAttachment[]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
toolbarPosition: {
|
|
21
|
+
type: import("vue").PropType<"left" | "right">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
suggestedReply: {
|
|
25
|
+
type: import("vue").PropType<SysContentRich>;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
editorType: {
|
|
29
|
+
type: import("vue").PropType<"tiptap" | "editorjs">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
registerFiles: (payload: FileRegistration) => void;
|
|
34
|
+
insertSignature: (payload: SysContentRich, att: SysAttachment[]) => void;
|
|
35
|
+
isEmpty: () => any;
|
|
36
|
+
acceptSuggestion: () => void;
|
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
"update:data": (val: SysContentRich) => void;
|
|
39
|
+
"update:attachments": (value: SysAttachment[]) => void;
|
|
40
|
+
"file-upload": (val: UploadEventPayload) => void;
|
|
41
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
data: {
|
|
43
|
+
type: import("vue").PropType<SysContentRich>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
i18n: {
|
|
47
|
+
type: import("vue").PropType<EditorI18n>;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
readOnly: {
|
|
51
|
+
type: import("vue").PropType<boolean>;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
attachments: {
|
|
55
|
+
type: import("vue").PropType<SysAttachment[]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
toolbarPosition: {
|
|
59
|
+
type: import("vue").PropType<"left" | "right">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
suggestedReply: {
|
|
63
|
+
type: import("vue").PropType<SysContentRich>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
editorType: {
|
|
67
|
+
type: import("vue").PropType<"tiptap" | "editorjs">;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
}>> & {
|
|
71
|
+
"onFile-upload"?: ((val: UploadEventPayload) => any) | undefined;
|
|
72
|
+
"onUpdate:data"?: ((val: SysContentRich) => any) | undefined;
|
|
73
|
+
"onUpdate:attachments"?: ((value: SysAttachment[]) => any) | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
i18n: EditorI18n;
|
|
76
|
+
readOnly: boolean;
|
|
77
|
+
toolbarPosition: "left" | "right";
|
|
78
|
+
suggestedReply: SysContentRich;
|
|
79
|
+
editorType: "tiptap" | "editorjs";
|
|
80
|
+
}, {}>;
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
editorJS: {};
|
|
3
|
+
toggleReadOnly: typeof toggleReadOnly;
|
|
4
|
+
save: typeof save;
|
|
5
|
+
reset: typeof reset;
|
|
6
|
+
editBlock: typeof editBlock;
|
|
7
|
+
render: typeof render;
|
|
8
|
+
update: typeof update;
|
|
9
|
+
getFilteredBlocks: typeof getFilteredBlocks;
|
|
10
|
+
$props: {
|
|
11
|
+
readonly data?: string | Record<string, any> | undefined;
|
|
12
|
+
readonly focus?: boolean | undefined;
|
|
13
|
+
readonly holder?: string | undefined;
|
|
14
|
+
readonly i18n?: Record<string, any> | undefined;
|
|
15
|
+
readonly readOnly?: boolean | undefined;
|
|
16
|
+
readonly placeholder?: string | undefined;
|
|
17
|
+
readonly customColor?: string | undefined;
|
|
18
|
+
readonly minHeight?: number | undefined;
|
|
19
|
+
readonly toolbarPosition?: string | undefined;
|
|
20
|
+
readonly featureSet?: string | undefined;
|
|
21
|
+
readonly firstBlock?: boolean | undefined;
|
|
22
|
+
readonly firstBlockText?: string | undefined;
|
|
23
|
+
readonly learnMoreText?: string | undefined;
|
|
24
|
+
readonly wordCount?: boolean | undefined;
|
|
25
|
+
readonly showSuggestedReplyControls?: boolean | undefined;
|
|
26
|
+
readonly enableTranslation?: boolean | undefined;
|
|
27
|
+
readonly translateEditorButtonText?: string | undefined;
|
|
28
|
+
readonly isSuggestionReplyEnabled?: boolean | undefined;
|
|
29
|
+
readonly suggestionReplyTitle?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
$emit: (event: "change" | "fileUpload" | "accept-suggestion" | "blockMoved" | "blockRemoved" | "fileDelete" | "translation-click", ...args: any[]) => void;
|
|
32
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
33
|
+
export default _default;
|
|
34
|
+
declare function toggleReadOnly(): void;
|
|
35
|
+
declare function save(): any;
|
|
36
|
+
declare function reset(): void;
|
|
37
|
+
declare function editBlock(index: any): void;
|
|
38
|
+
declare function render(data: any): void;
|
|
39
|
+
declare function update(id: any, data: any): void;
|
|
40
|
+
declare function getFilteredBlocks(): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
code: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
focusOnFirstInput: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
focusOnFirstInputDelay: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
autoComplete: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "submit"[], "submit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
code: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
focusOnFirstInput: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
focusOnFirstInputDelay: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
autoComplete: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>> & {
|
|
38
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
code: string;
|
|
41
|
+
autoComplete: string;
|
|
42
|
+
focusOnFirstInput: boolean;
|
|
43
|
+
focusOnFirstInputDelay: number;
|
|
44
|
+
}, {}>;
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const INPUT_CONFIG: {
|
|
2
|
+
readonly DEBOUNCE_DELAY: 300;
|
|
3
|
+
readonly MIN_SEARCH_LENGTH: 0;
|
|
4
|
+
readonly DEFAULT_PLACEHOLDER: "Type or select";
|
|
5
|
+
readonly DEFAULT_LOADING_TEXT: "Loading...";
|
|
6
|
+
readonly CREATE_KEYS: readonly ["enter", ",", "space"];
|
|
7
|
+
readonly BLUR_DELAY: 50;
|
|
8
|
+
};
|