@deskhero/dh_ui 2.41.1 → 2.43.0

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.
Files changed (40) hide show
  1. package/dist/dh_ui.es.js +21381 -15099
  2. package/dist/dh_ui.umd.js +89 -75
  3. package/dist/style.css +1 -1
  4. package/package.json +3 -2
  5. package/dist/components/AdvancedFilter.vue.d.ts +0 -55
  6. package/dist/components/DatePicker.vue.d.ts +0 -11
  7. package/dist/components/DropdownMenu.vue.d.ts +0 -108
  8. package/dist/components/DropdownMenuItem.vue.d.ts +0 -50
  9. package/dist/components/Error.vue.d.ts +0 -16
  10. package/dist/components/ExpansionPanel.vue.d.ts +0 -58
  11. package/dist/components/FileUpload.vue.d.ts +0 -13
  12. package/dist/components/IconWithText.vue.d.ts +0 -149
  13. package/dist/components/ImageCropper.vue.d.ts +0 -73
  14. package/dist/components/Input.vue.d.ts +0 -51
  15. package/dist/components/InputDropdown.vue.d.ts +0 -16
  16. package/dist/components/InputDropdownMultiple.vue.d.ts +0 -16
  17. package/dist/components/InputGroup.vue.d.ts +0 -15
  18. package/dist/components/InputList.vue.d.ts +0 -20
  19. package/dist/components/LineChart.vue.d.ts +0 -9
  20. package/dist/components/Modal.vue.d.ts +0 -118
  21. package/dist/components/Notification.vue.d.ts +0 -195
  22. package/dist/components/PasswordField.vue.d.ts +0 -62
  23. package/dist/components/RadioBox.vue.d.ts +0 -9
  24. package/dist/components/RadioBoxGroup.vue.d.ts +0 -8
  25. package/dist/components/SearchInput.vue.d.ts +0 -36
  26. package/dist/components/Stepper.vue.d.ts +0 -23
  27. package/dist/components/Tag.vue.d.ts +0 -48
  28. package/dist/components/Tags.vue.d.ts +0 -91
  29. package/dist/components/TextEditor.vue.d.ts +0 -40
  30. package/dist/components/VerificationCode.vue.d.ts +0 -45
  31. package/dist/index.d.ts +0 -37
  32. package/dist/main.d.ts +0 -1
  33. package/dist/models/DropdownMenuItem.model.d.ts +0 -13
  34. package/dist/models/EditorJSi18n.model.d.ts +0 -109
  35. package/dist/models/InputDropdown.model.d.ts +0 -4
  36. package/dist/models/InputList.model.d.ts +0 -4
  37. package/dist/models/Tag.model.d.ts +0 -7
  38. package/dist/tools/editorCode.d.ts +0 -21
  39. package/dist/tools/editorFiles.d.ts +0 -37
  40. package/dist/tools/editorImage.d.ts +0 -60
@@ -1,91 +0,0 @@
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;
@@ -1,40 +0,0 @@
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 customColor?: string | undefined;
12
- readonly data?: string | Record<string, any> | undefined;
13
- readonly placeholder?: string | undefined;
14
- readonly focus?: boolean | undefined;
15
- readonly readOnly?: boolean | undefined;
16
- readonly i18n?: Record<string, any> | undefined;
17
- readonly minHeight?: number | undefined;
18
- readonly featureSet?: string | undefined;
19
- readonly firstBlock?: boolean | undefined;
20
- readonly firstBlockText?: string | undefined;
21
- readonly learnMoreText?: string | undefined;
22
- readonly holder?: string | undefined;
23
- readonly wordCount?: boolean | undefined;
24
- readonly toolbarPosition?: string | 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" | "blockMoved" | "blockRemoved" | "fileUpload" | "fileDelete" | "translation-click" | "accept-suggestion", ...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;
@@ -1,45 +0,0 @@
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
- focusOnFirstInput: boolean;
42
- focusOnFirstInputDelay: number;
43
- autoComplete: string;
44
- }, {}>;
45
- export default _default;
package/dist/index.d.ts DELETED
@@ -1,37 +0,0 @@
1
- import "./main.scss";
2
- import DhAdvancedDatePicker from "./components/AdvancedDatePicker.vue";
3
- import DhAdvancedFilter from "./components/AdvancedFilter.vue";
4
- import DhButton from "./components/Button.vue";
5
- import DhCopyText from "./components/Copiable.vue";
6
- import DhDatePicker from "./components/DatePicker.vue";
7
- import DhDropdownMenu from "./components/DropdownMenu.vue";
8
- import DhError from "./components/Error.vue";
9
- import DhExpansionPanel from "./components/ExpansionPanel.vue";
10
- import DhFileUpload from "./components/FileUpload.vue";
11
- import DhIcon from "./components/Icon.vue";
12
- import DhIconWithText from "./components/IconWithText.vue";
13
- import DhInput from "./components/Input.vue";
14
- import DhInputDropdown from "./components/InputDropdown.vue";
15
- import DhInputDropdownMultiple from "./components/InputDropdownMultiple.vue";
16
- import DhInputGroup from "./components/InputGroup.vue";
17
- import DhInputList from "./components/InputList.vue";
18
- import DhModal from "./components/Modal.vue";
19
- import DhNotification from "./components/Notification.vue";
20
- import DhNumberRange from "./components/NumberRange.vue";
21
- import DhPasswordField from "./components/PasswordField.vue";
22
- import DhRadioBox from "./components/RadioBox.vue";
23
- import DhRadioBoxGroup from "./components/RadioBoxGroup.vue";
24
- import DhSearchInput from "./components/SearchInput.vue";
25
- import DhStepper from "./components/Stepper.vue";
26
- import DhSwitch from "./components/Switch.vue";
27
- import DhTooltip from "./components/Tooltip.vue";
28
- import DhTag from "./components/Tag.vue";
29
- import DhTextEditor from "./components/TextEditor.vue";
30
- import DhVerificationCode from "./components/VerificationCode.vue";
31
- import DhImageCropper from "./components/ImageCropper.vue";
32
- import type DropdownMenuItem from "./models/DropdownMenuItem.model";
33
- import type EditorJSi18n from "./models/EditorJSi18n.model";
34
- import type InputList from "./models/InputList.model";
35
- import DhLineChart from "./components/LineChart.vue";
36
- export { DhAdvancedDatePicker, DhAdvancedFilter, DhCopyText, DhDatePicker, DhFileUpload, DhError, DhIcon, DhIconWithText, DhModal, DhNotification, DhNumberRange, DhPasswordField, DhRadioBox, DhRadioBoxGroup, DhSearchInput, DhStepper, DhSwitch, DhTooltip, DhVerificationCode, DhExpansionPanel, DhDropdownMenu, DhInput, DhInputDropdown, DhInputDropdownMultiple, DhInputList, DhInputGroup, DhTag, DhTextEditor, DhButton, DhImageCropper, DhLineChart, };
37
- export type { DropdownMenuItem, InputList, EditorJSi18n };
package/dist/main.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- export default interface DropdownMenuItem {
2
- id?: number;
3
- action?: string;
4
- iconName: string;
5
- iconUrl?: string;
6
- text: string;
7
- subText?: string;
8
- url?: string;
9
- dataE2eTag?: string;
10
- isSelected?: boolean;
11
- fqdn?: string;
12
- disabled?: boolean;
13
- }
@@ -1,109 +0,0 @@
1
- export default interface EditorJSi18n {
2
- messages?: Messages;
3
- }
4
- interface Messages {
5
- ui?: Ui;
6
- toolNames?: ToolNames;
7
- tools?: Tools;
8
- blockTunes?: BlockTunes2;
9
- }
10
- interface BlockTunes2 {
11
- delete?: Delete;
12
- moveUp?: MoveUp;
13
- moveDown?: MoveDown;
14
- }
15
- interface MoveDown {
16
- "Move down"?: string;
17
- }
18
- interface MoveUp {
19
- "Move up"?: string;
20
- }
21
- interface Delete {
22
- Delete?: string;
23
- "Click to delete"?: string;
24
- }
25
- interface Tools {
26
- attachment?: Attachment;
27
- "Code Highlight"?: CodeHighlight;
28
- images?: Images;
29
- code?: Code;
30
- warning?: Warning;
31
- link?: Link;
32
- stub?: Stub;
33
- }
34
- interface Stub {
35
- "The block can not be displayed correctly."?: string;
36
- }
37
- interface Link {
38
- "Add a link"?: string;
39
- }
40
- interface Warning {
41
- Title?: string;
42
- Message?: string;
43
- }
44
- interface Code {
45
- config?: Config;
46
- }
47
- interface Config {
48
- placeholder?: string;
49
- }
50
- interface Images {
51
- "Drag & drop an image file or "?: string;
52
- browse?: string;
53
- }
54
- interface CodeHighlight {
55
- "Enter code here"?: string;
56
- }
57
- interface Attachment {
58
- "Drag & drop file(s) or "?: string;
59
- browse?: string;
60
- }
61
- interface ToolNames {
62
- Text?: string;
63
- Heading?: string;
64
- List?: string;
65
- Warning?: string;
66
- Checklist?: string;
67
- Quote?: string;
68
- Code?: string;
69
- Delimiter?: string;
70
- "Raw HTML"?: string;
71
- Table?: string;
72
- Link?: string;
73
- Marker?: string;
74
- Bold?: string;
75
- Italic?: string;
76
- InlineCode?: string;
77
- Images?: string;
78
- Attachment?: string;
79
- }
80
- interface Ui {
81
- blockTunes?: BlockTunes;
82
- inlineToolbar?: InlineToolbar;
83
- toolbar?: Toolbar;
84
- popover?: Popover;
85
- }
86
- interface Popover {
87
- Filter?: string;
88
- "Nothing found"?: string;
89
- }
90
- interface Toolbar {
91
- toolbox?: Toolbox;
92
- }
93
- interface Toolbox {
94
- Add?: string;
95
- }
96
- interface InlineToolbar {
97
- converter?: Converter;
98
- }
99
- interface Converter {
100
- "Convert to"?: string;
101
- }
102
- interface BlockTunes {
103
- toggler?: Toggler;
104
- }
105
- interface Toggler {
106
- "Click to tune"?: string;
107
- "or drag to move"?: string;
108
- }
109
- export {};
@@ -1,4 +0,0 @@
1
- export declare enum CLEAR_ICON_POSITION {
2
- CLOSE_INSIDE = "close-inside",
3
- TRASH_OUTSIDE = "trash-outside"
4
- }
@@ -1,4 +0,0 @@
1
- export default interface InputList {
2
- value?: number;
3
- label?: string | undefined;
4
- }
@@ -1,7 +0,0 @@
1
- export type TagColor = "primary" | "secondary" | "light" | "lighter" | "warning" | "danger" | "dark" | "success";
2
- export type TagSize = "small" | "mini" | "large";
3
- export interface Tag {
4
- label: string;
5
- color: TagColor;
6
- size: TagSize;
7
- }
@@ -1,21 +0,0 @@
1
- export default class CodeHighlightTool {
2
- static get toolbox(): {
3
- title: string;
4
- icon: string;
5
- };
6
- static get enableLineBreaks(): boolean;
7
- static get isReadOnlySupported(): boolean;
8
- constructor({ api }: {
9
- api: any;
10
- });
11
- api: any;
12
- render(): HTMLDivElement;
13
- codeInput: HTMLTextAreaElement | undefined;
14
- wrapper: HTMLDivElement | undefined;
15
- save(): {
16
- code: string;
17
- };
18
- validate(savedData: any): boolean;
19
- onPaste(event: any): void;
20
- onKeyUp(): void;
21
- }
@@ -1,37 +0,0 @@
1
- export default class FileTool {
2
- static get toolbox(): {
3
- title: string;
4
- icon: string;
5
- };
6
- static get isReadOnlySupported(): boolean;
7
- constructor({ data, config, api }: {
8
- data: any;
9
- config: any;
10
- api: any;
11
- });
12
- data: any;
13
- config: any;
14
- api: any;
15
- lastReadOnly: any;
16
- render(): HTMLDivElement;
17
- createContainer(): HTMLDivElement;
18
- createWrapper(): HTMLDivElement;
19
- createFileInput(): HTMLInputElement;
20
- createIcon(): HTMLImageElement;
21
- createLabel(forId: any): HTMLLabelElement;
22
- createResultContainer(): HTMLDivElement;
23
- setupEventListeners(wrapper: any, fileInput: any, resultContainer: any): void;
24
- hideElement(element: any): void;
25
- removeElement(element: any): void;
26
- showElement(element: any): void;
27
- createResultElement(fileLink: any, fileName: any, status: any, status_message: any): HTMLDivElement;
28
- renderResults(files: any, resultContainer: any): void;
29
- populateExistingFiles(resultContainer: any): void;
30
- uploadFiles(files: any): void;
31
- saveFilesInData(files: any): void;
32
- save(): any;
33
- isEmpty(data: any): boolean;
34
- removed(): void;
35
- iconName(fileName: any): any;
36
- getExtension(fileName: any): any;
37
- }
@@ -1,60 +0,0 @@
1
- export default class ImageTool {
2
- static get isReadOnlySupported(): boolean;
3
- static get toolbox(): {
4
- title: string;
5
- icon: string;
6
- };
7
- static get pasteConfig(): {
8
- tags: {
9
- img: {
10
- src: boolean;
11
- };
12
- }[];
13
- files: {
14
- mimeTypes: string[];
15
- };
16
- patterns: {
17
- image: RegExp;
18
- };
19
- };
20
- constructor({ data, config, api }: {
21
- data: any;
22
- config: any;
23
- api: any;
24
- });
25
- data: any;
26
- api: any;
27
- config: any;
28
- lastReadOnly: any;
29
- settings: {
30
- name: string;
31
- icon: string;
32
- }[];
33
- container: HTMLDivElement | null;
34
- render(): HTMLDivElement;
35
- wrapper: HTMLDivElement | undefined;
36
- img: HTMLImageElement | undefined;
37
- populateExistingFiles(img: any): void;
38
- setupEventListeners(fileInput: any): void;
39
- handleFile(file: any): void;
40
- uploadFiles(file: any): void;
41
- removed(): void;
42
- saveData(url: any, name: any): void;
43
- createImage(): HTMLImageElement;
44
- createContainer(): HTMLDivElement;
45
- createWrapper(): HTMLDivElement;
46
- createFileInput(): HTMLInputElement;
47
- createIcon(): HTMLImageElement;
48
- createLabel(forId: any): HTMLLabelElement;
49
- hideElement(element: any): void;
50
- removeElement(element: any): void;
51
- showElement(element: any): void;
52
- save(): any;
53
- isEmpty(data: any): boolean;
54
- renderSettings(): HTMLDivElement;
55
- _toggleTune(tune: any): void;
56
- _acceptTuneView(): void;
57
- _createFileFromImageUrl(url: any): Promise<File>;
58
- onPaste(event: any): void;
59
- deleteBlock(): void;
60
- }