@aitronos/freddy-plugins 0.4.66 → 0.4.68
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +143 -143
- package/dist/index.js.map +1 -1
- package/dist/src/components/Descriptions.vue.d.ts +5 -35
- package/dist/src/interfaces/ui/descriptions.interfaces.d.ts +71 -0
- package/dist/src/interfaces/ui/index.d.ts +1 -0
- package/package.json +2 -2
- package/CHANGELOG.md +0 -712
|
@@ -1,35 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface Props {
|
|
4
|
-
modelValue?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
readonly?: boolean;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
showTooltip?: boolean;
|
|
11
|
-
tooltipText?: string;
|
|
12
|
-
showAiButton?: boolean;
|
|
13
|
-
stage?: DescriptionStage;
|
|
14
|
-
type?: DescriptionType;
|
|
15
|
-
destructive?: boolean;
|
|
16
|
-
tags?: string[];
|
|
17
|
-
hintText?: string;
|
|
18
|
-
errorMessage?: string;
|
|
19
|
-
modalTitle?: string;
|
|
20
|
-
modalDescription?: string;
|
|
21
|
-
openaiApiKey?: string;
|
|
22
|
-
openaiModel?: string;
|
|
23
|
-
openaiOrganization?: string;
|
|
24
|
-
showUnderlines?: boolean;
|
|
25
|
-
dynamicTitle?: string;
|
|
26
|
-
showHint?: boolean;
|
|
27
|
-
diffMode?: boolean;
|
|
28
|
-
oldText?: string;
|
|
29
|
-
newText?: string;
|
|
30
|
-
tagsOnly?: boolean;
|
|
31
|
-
}
|
|
32
|
-
declare const _default: import('vue').DefineComponent<Props, {
|
|
1
|
+
import { DescriptionsProps, DescriptionStage, DescriptionType } from '../interfaces/ui/descriptions.interfaces';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<DescriptionsProps, {
|
|
33
3
|
focus: () => void;
|
|
34
4
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
5
|
blur: (event: FocusEvent) => any;
|
|
@@ -42,7 +12,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
42
12
|
"tooltip-click": () => any;
|
|
43
13
|
"add-tag": (tag: string) => any;
|
|
44
14
|
"tags-click": () => any;
|
|
45
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<DescriptionsProps> & Readonly<{
|
|
46
16
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
47
17
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
48
18
|
onInput?: ((value: string) => any) | undefined;
|
|
@@ -60,12 +30,13 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
60
30
|
required: boolean;
|
|
61
31
|
disabled: boolean;
|
|
62
32
|
tags: string[];
|
|
63
|
-
tooltipText: string;
|
|
64
33
|
modelValue: string;
|
|
65
34
|
readonly: boolean;
|
|
66
35
|
openaiApiKey: string;
|
|
67
36
|
openaiModel: string;
|
|
68
37
|
openaiOrganization: string;
|
|
38
|
+
tooltipTitle: string;
|
|
39
|
+
tooltipDescription: string;
|
|
69
40
|
showAiButton: boolean;
|
|
70
41
|
hintText: string;
|
|
71
42
|
errorMessage: string;
|
|
@@ -78,7 +49,6 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
78
49
|
oldText: string;
|
|
79
50
|
newText: string;
|
|
80
51
|
tagsOnly: boolean;
|
|
81
|
-
showTooltip: boolean;
|
|
82
52
|
stage: DescriptionStage;
|
|
83
53
|
destructive: boolean;
|
|
84
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Descriptions Component Interfaces
|
|
3
|
+
* @module interfaces/ui/descriptions
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Possible stages for the Descriptions component visual state
|
|
7
|
+
*/
|
|
8
|
+
export type DescriptionStage = 'placeholder' | 'default' | 'focused' | 'disabled' | 'error';
|
|
9
|
+
/**
|
|
10
|
+
* Type of description field
|
|
11
|
+
*/
|
|
12
|
+
export type DescriptionType = 'default' | 'tags';
|
|
13
|
+
/**
|
|
14
|
+
* Props interface for the Descriptions component
|
|
15
|
+
*/
|
|
16
|
+
export interface DescriptionsProps {
|
|
17
|
+
/** The current value of the description field */
|
|
18
|
+
modelValue?: string;
|
|
19
|
+
/** Label text for the field */
|
|
20
|
+
label?: string;
|
|
21
|
+
/** Placeholder text */
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
/** Whether the field is disabled */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Whether the field is readonly */
|
|
26
|
+
readonly?: boolean;
|
|
27
|
+
/** Whether the field is required */
|
|
28
|
+
required?: boolean;
|
|
29
|
+
/** Tooltip title (supports HTML) */
|
|
30
|
+
tooltipTitle?: string;
|
|
31
|
+
/** Tooltip description (supports HTML) */
|
|
32
|
+
tooltipDescription?: string;
|
|
33
|
+
/** Whether to show the AI assistance button */
|
|
34
|
+
showAiButton?: boolean;
|
|
35
|
+
/** Visual stage of the component */
|
|
36
|
+
stage?: DescriptionStage;
|
|
37
|
+
/** Type of description field */
|
|
38
|
+
type?: DescriptionType;
|
|
39
|
+
/** Whether to show destructive/error styling */
|
|
40
|
+
destructive?: boolean;
|
|
41
|
+
/** Array of tags */
|
|
42
|
+
tags?: string[];
|
|
43
|
+
/** Hint text shown below the field */
|
|
44
|
+
hintText?: string;
|
|
45
|
+
/** Error message text */
|
|
46
|
+
errorMessage?: string;
|
|
47
|
+
/** Title for the expand modal */
|
|
48
|
+
modalTitle?: string;
|
|
49
|
+
/** Description for the expand modal */
|
|
50
|
+
modalDescription?: string;
|
|
51
|
+
/** OpenAI API key for AI features */
|
|
52
|
+
openaiApiKey?: string;
|
|
53
|
+
/** OpenAI model to use */
|
|
54
|
+
openaiModel?: string;
|
|
55
|
+
/** OpenAI organization ID */
|
|
56
|
+
openaiOrganization?: string;
|
|
57
|
+
/** Whether to show underlines on text elements */
|
|
58
|
+
showUnderlines?: boolean;
|
|
59
|
+
/** Dynamic title to override the label */
|
|
60
|
+
dynamicTitle?: string;
|
|
61
|
+
/** Whether to show hint text */
|
|
62
|
+
showHint?: boolean;
|
|
63
|
+
/** Whether to enable diff checker mode */
|
|
64
|
+
diffMode?: boolean;
|
|
65
|
+
/** Old text for diff mode */
|
|
66
|
+
oldText?: string;
|
|
67
|
+
/** New text for diff mode */
|
|
68
|
+
newText?: string;
|
|
69
|
+
/** Whether this is a tags-only field (no text input) */
|
|
70
|
+
tagsOnly?: boolean;
|
|
71
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aitronos/freddy-plugins",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.68",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -128,4 +128,4 @@
|
|
|
128
128
|
"vue-tsc": "^2.2.10"
|
|
129
129
|
},
|
|
130
130
|
"packageManager": "yarn@4.7.0"
|
|
131
|
-
}
|
|
131
|
+
}
|