@deskhero/dh_ui 2.42.0 → 2.44.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 (50) hide show
  1. package/dist/dh_ui.es.js +21284 -14897
  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/App.vue.d.ts +0 -2
  6. package/dist/components/AdvancedDatePicker.vue.d.ts +0 -7
  7. package/dist/components/AdvancedFilter.vue.d.ts +0 -55
  8. package/dist/components/Button.vue.d.ts +0 -102
  9. package/dist/components/Copiable.vue.d.ts +0 -8
  10. package/dist/components/DatePicker.vue.d.ts +0 -11
  11. package/dist/components/DropdownMenu.vue.d.ts +0 -108
  12. package/dist/components/DropdownMenuItem.vue.d.ts +0 -50
  13. package/dist/components/Error.vue.d.ts +0 -16
  14. package/dist/components/ExpansionPanel.vue.d.ts +0 -58
  15. package/dist/components/FileUpload.vue.d.ts +0 -13
  16. package/dist/components/Icon.vue.d.ts +0 -98
  17. package/dist/components/IconWithText.vue.d.ts +0 -149
  18. package/dist/components/ImageCropper.vue.d.ts +0 -73
  19. package/dist/components/Input.vue.d.ts +0 -51
  20. package/dist/components/InputDropdown.vue.d.ts +0 -16
  21. package/dist/components/InputDropdownMultiple.vue.d.ts +0 -16
  22. package/dist/components/InputGroup.vue.d.ts +0 -15
  23. package/dist/components/InputList.vue.d.ts +0 -20
  24. package/dist/components/LineChart.vue.d.ts +0 -9
  25. package/dist/components/Modal.vue.d.ts +0 -118
  26. package/dist/components/Notification.vue.d.ts +0 -195
  27. package/dist/components/NumberRange.vue.d.ts +0 -174
  28. package/dist/components/PasswordField.vue.d.ts +0 -62
  29. package/dist/components/RadioBox.vue.d.ts +0 -9
  30. package/dist/components/RadioBoxGroup.vue.d.ts +0 -8
  31. package/dist/components/SearchInput.vue.d.ts +0 -36
  32. package/dist/components/Stepper.vue.d.ts +0 -23
  33. package/dist/components/Switch.vue.d.ts +0 -79
  34. package/dist/components/Tag.vue.d.ts +0 -48
  35. package/dist/components/Tags.vue.d.ts +0 -91
  36. package/dist/components/TextEditor.vue.d.ts +0 -40
  37. package/dist/components/Tooltip.vue.d.ts +0 -102
  38. package/dist/components/VerificationCode.vue.d.ts +0 -45
  39. package/dist/helpers/colorUtils.d.ts +0 -7
  40. package/dist/index.d.ts +0 -37
  41. package/dist/main.d.ts +0 -1
  42. package/dist/models/DropdownMenuItem.model.d.ts +0 -13
  43. package/dist/models/EditorJSi18n.model.d.ts +0 -109
  44. package/dist/models/InputDropdown.model.d.ts +0 -4
  45. package/dist/models/InputList.model.d.ts +0 -4
  46. package/dist/models/Tag.model.d.ts +0 -7
  47. package/dist/models/Tooltip.model.d.ts +0 -11
  48. package/dist/tools/editorCode.d.ts +0 -21
  49. package/dist/tools/editorFiles.d.ts +0 -37
  50. package/dist/tools/editorImage.d.ts +0 -60
@@ -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;
@@ -1,7 +0,0 @@
1
- export declare const hexToRgb: (hex: string) => string;
2
- export declare const generateCustomProperties: (customColorRgb: string) => {
3
- "--custom-color": string;
4
- "--custom-color-light": string;
5
- "--custom-color-lighter": string;
6
- };
7
- export declare const generateCustomBgSvg: (customColor: string) => string;
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,11 +0,0 @@
1
- export declare enum Placement {
2
- left = "left",
3
- right = "right",
4
- top = "top",
5
- bottom = "bottom"
6
- }
7
- export declare enum Trigger {
8
- click = "click",
9
- hover = "hover",
10
- focus = "focus"
11
- }
@@ -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
- }