@aheart-ui/ai 1.0.0 → 1.2.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 (130) hide show
  1. package/README.md +10 -1
  2. package/es/actions/index.d.ts +2 -0
  3. package/es/actions/index.js +5 -0
  4. package/es/actions/style.css +36 -0
  5. package/es/actions.vue.d.ts +4 -4
  6. package/es/agent/index.d.ts +5 -0
  7. package/es/agent/index.js +12 -0
  8. package/es/agent/style.css +3241 -0
  9. package/es/agent-execution.vue.d.ts +4 -4
  10. package/es/agent-execution.vue.js +2 -2
  11. package/es/agent-workbench/index.d.ts +2 -0
  12. package/es/agent-workbench/index.js +5 -0
  13. package/es/agent-workbench/style.css +2423 -0
  14. package/es/agent-workbench.vue.d.ts +4 -4
  15. package/es/agent-workbench.vue.js +10 -7
  16. package/es/attachments/index.d.ts +2 -0
  17. package/es/attachments/index.js +5 -0
  18. package/es/attachments/style.css +62 -0
  19. package/es/attachments.vue.d.ts +4 -4
  20. package/es/bubble/index.d.ts +2 -0
  21. package/es/bubble/index.js +5 -0
  22. package/es/bubble/style.css +241 -0
  23. package/es/bubble.vue.d.ts +3 -3
  24. package/es/chat/index.d.ts +11 -0
  25. package/es/chat/index.js +23 -0
  26. package/es/chat/style.css +595 -0
  27. package/es/chat-panel/index.d.ts +3 -0
  28. package/es/chat-panel/index.js +8 -0
  29. package/es/chat-panel/style.css +591 -0
  30. package/es/chat-panel.vue.d.ts +4 -4
  31. package/es/conversations/index.d.ts +2 -0
  32. package/es/conversations/index.js +5 -0
  33. package/es/conversations/style.css +48 -0
  34. package/es/conversations.vue.d.ts +4 -4
  35. package/es/form/index.d.ts +3 -0
  36. package/es/form/index.js +9 -0
  37. package/es/form/style.css +3175 -0
  38. package/es/form-field.vue.d.ts +4 -4
  39. package/es/form-field.vue.js +53 -43
  40. package/es/form.vue.d.ts +4 -4
  41. package/es/form.vue.js +7 -6
  42. package/es/process/index.d.ts +2 -0
  43. package/es/process/index.js +5 -0
  44. package/es/process/style.css +77 -0
  45. package/es/process.vue.d.ts +3 -3
  46. package/es/prompts/index.d.ts +2 -0
  47. package/es/prompts/index.js +5 -0
  48. package/es/prompts/style.css +76 -0
  49. package/es/prompts.vue.d.ts +4 -4
  50. package/es/sender/index.d.ts +2 -0
  51. package/es/sender/index.js +5 -0
  52. package/es/sender/style.css +88 -0
  53. package/es/sender.vue.d.ts +4 -4
  54. package/es/sources/index.d.ts +2 -0
  55. package/es/sources/index.js +5 -0
  56. package/es/sources/style.css +54 -0
  57. package/es/sources.vue.d.ts +3 -3
  58. package/es/thought-chain/index.d.ts +2 -0
  59. package/es/thought-chain/index.js +5 -0
  60. package/es/thought-chain/style.css +77 -0
  61. package/es/thought-chain.vue.d.ts +3 -3
  62. package/es/welcome/index.d.ts +2 -0
  63. package/es/welcome/index.js +5 -0
  64. package/es/welcome/style.css +33 -0
  65. package/es/welcome.vue.d.ts +3 -3
  66. package/lib/actions/index.d.ts +2 -0
  67. package/lib/actions/index.js +1 -0
  68. package/lib/actions/style.css +36 -0
  69. package/lib/actions.vue.d.ts +4 -4
  70. package/lib/agent/index.d.ts +5 -0
  71. package/lib/agent/index.js +1 -0
  72. package/lib/agent/style.css +3241 -0
  73. package/lib/agent-execution.vue.d.ts +4 -4
  74. package/lib/agent-execution.vue.js +1 -1
  75. package/lib/agent-workbench/index.d.ts +2 -0
  76. package/lib/agent-workbench/index.js +1 -0
  77. package/lib/agent-workbench/style.css +2423 -0
  78. package/lib/agent-workbench.vue.d.ts +4 -4
  79. package/lib/agent-workbench.vue.js +1 -1
  80. package/lib/attachments/index.d.ts +2 -0
  81. package/lib/attachments/index.js +1 -0
  82. package/lib/attachments/style.css +62 -0
  83. package/lib/attachments.vue.d.ts +4 -4
  84. package/lib/bubble/index.d.ts +2 -0
  85. package/lib/bubble/index.js +1 -0
  86. package/lib/bubble/style.css +241 -0
  87. package/lib/bubble.vue.d.ts +3 -3
  88. package/lib/chat/index.d.ts +11 -0
  89. package/lib/chat/index.js +1 -0
  90. package/lib/chat/style.css +595 -0
  91. package/lib/chat-panel/index.d.ts +3 -0
  92. package/lib/chat-panel/index.js +1 -0
  93. package/lib/chat-panel/style.css +591 -0
  94. package/lib/chat-panel.vue.d.ts +4 -4
  95. package/lib/conversations/index.d.ts +2 -0
  96. package/lib/conversations/index.js +1 -0
  97. package/lib/conversations/style.css +48 -0
  98. package/lib/conversations.vue.d.ts +4 -4
  99. package/lib/form/index.d.ts +3 -0
  100. package/lib/form/index.js +1 -0
  101. package/lib/form/style.css +3175 -0
  102. package/lib/form-field.vue.d.ts +4 -4
  103. package/lib/form-field.vue.js +1 -1
  104. package/lib/form.vue.d.ts +4 -4
  105. package/lib/form.vue.js +1 -1
  106. package/lib/process/index.d.ts +2 -0
  107. package/lib/process/index.js +1 -0
  108. package/lib/process/style.css +77 -0
  109. package/lib/process.vue.d.ts +3 -3
  110. package/lib/prompts/index.d.ts +2 -0
  111. package/lib/prompts/index.js +1 -0
  112. package/lib/prompts/style.css +76 -0
  113. package/lib/prompts.vue.d.ts +4 -4
  114. package/lib/sender/index.d.ts +2 -0
  115. package/lib/sender/index.js +1 -0
  116. package/lib/sender/style.css +88 -0
  117. package/lib/sender.vue.d.ts +4 -4
  118. package/lib/sources/index.d.ts +2 -0
  119. package/lib/sources/index.js +1 -0
  120. package/lib/sources/style.css +54 -0
  121. package/lib/sources.vue.d.ts +3 -3
  122. package/lib/thought-chain/index.d.ts +2 -0
  123. package/lib/thought-chain/index.js +1 -0
  124. package/lib/thought-chain/style.css +77 -0
  125. package/lib/thought-chain.vue.d.ts +3 -3
  126. package/lib/welcome/index.d.ts +2 -0
  127. package/lib/welcome/index.js +1 -0
  128. package/lib/welcome/style.css +33 -0
  129. package/lib/welcome.vue.d.ts +3 -3
  130. package/package.json +106 -4
@@ -1,21 +1,21 @@
1
1
  import type { AIFormFieldV1 } from './form-schema';
2
- declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
3
  field: AIFormFieldV1;
4
4
  value: unknown;
5
5
  disabled?: boolean | undefined;
6
6
  error?: string | undefined;
7
7
  }>>, {
8
8
  focus: () => void;
9
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  update: (value: unknown) => void;
11
- }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
12
  field: AIFormFieldV1;
13
13
  value: unknown;
14
14
  disabled?: boolean | undefined;
15
15
  error?: string | undefined;
16
16
  }>>> & Readonly<{
17
17
  onUpdate?: ((value: unknown) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
19
  export default _default;
20
20
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
21
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,10 +1,20 @@
1
- import { defineComponent as x, ref as k, computed as f, openBlock as a, createElementBlock as y, normalizeClass as g, createElementVNode as B, createTextVNode as C, toDisplayString as m, createCommentVNode as v, createBlock as t, unref as u } from "vue";
2
- import { Textarea as S, TreeSelect as T, Upload as h, RadioGroup as D, CheckboxGroup as E, Select as N, Switch as P, InputNumber as q, DatePicker as I, DateRangePicker as R, TimePicker as w, TimeRangePicker as A, Input as G } from "aheart-ui";
1
+ import { defineComponent as x, ref as k, computed as y, openBlock as a, createElementBlock as n, normalizeClass as g, createElementVNode as B, createTextVNode as C, toDisplayString as m, createCommentVNode as v, createBlock as t, unref as o } from "vue";
2
+ import { CheckboxGroup as S } from "aheart-ui/checkbox";
3
+ import { DatePicker as T, DateRangePicker as h } from "aheart-ui/date-picker";
4
+ import { Input as D } from "aheart-ui/input";
5
+ import { InputNumber as E } from "aheart-ui/input-number";
6
+ import { RadioGroup as N } from "aheart-ui/radio";
7
+ import { Select as P } from "aheart-ui/select";
8
+ import { Switch as q } from "aheart-ui/switch";
9
+ import { Textarea as I } from "aheart-ui/textarea";
10
+ import { TimePicker as R, TimeRangePicker as w } from "aheart-ui/time-picker";
11
+ import { TreeSelect as A } from "aheart-ui/tree-select";
12
+ import { Upload as G } from "aheart-ui/upload";
3
13
  const j = ["data-field-key", "aria-invalid", "aria-describedby"], z = ["id", "for"], L = {
4
14
  key: 0,
5
15
  class: "aheart-ai-form__required",
6
16
  "aria-hidden": "true"
7
- }, F = ["id"], H = ["id"], M = /* @__PURE__ */ x({
17
+ }, F = ["id"], H = ["id"], le = /* @__PURE__ */ x({
8
18
  __name: "form-field",
9
19
  props: {
10
20
  field: {},
@@ -14,33 +24,33 @@ const j = ["data-field-key", "aria-invalid", "aria-describedby"], z = ["id", "fo
14
24
  },
15
25
  emits: ["update"],
16
26
  setup(e, { expose: c, emit: V }) {
17
- const b = e, i = V, s = k(), n = k(), U = f(
18
- () => (b.field.options ?? []).map((r) => ({
19
- key: r.value,
20
- title: r.label,
21
- disabled: r.disabled
27
+ const r = e, i = V, s = k(), f = k(), U = y(
28
+ () => (r.field.options ?? []).map((b) => ({
29
+ key: b.value,
30
+ title: b.label,
31
+ disabled: b.disabled
22
32
  }))
23
- ), o = f(
24
- () => [b.field.description && `${b.field.key}-description`, b.error && `${b.field.key}-error`].filter(Boolean).join(" ") || void 0
25
- ), $ = f(
26
- () => b.field.type === "date-range" || b.field.type === "time-range" ? `${b.field.key}-start` : b.field.key
33
+ ), u = y(
34
+ () => [r.field.description && `${r.field.key}-description`, r.error && `${r.field.key}-error`].filter(Boolean).join(" ") || void 0
35
+ ), $ = y(
36
+ () => r.field.type === "date-range" || r.field.type === "time-range" ? `${r.field.key}-start` : r.field.key
27
37
  );
28
38
  return c({
29
39
  focus: () => {
30
- var r, l;
31
- if (n.value) {
32
- n.value.focus("start");
40
+ var b, l;
41
+ if (f.value) {
42
+ f.value.focus("start");
33
43
  return;
34
44
  }
35
- (l = (r = s.value) == null ? void 0 : r.querySelector('input, button, [role="combobox"], [tabindex="0"]')) == null || l.focus({ preventScroll: !0 });
45
+ (l = (b = s.value) == null ? void 0 : b.querySelector('input, button, [role="combobox"], [tabindex="0"]')) == null || l.focus({ preventScroll: !0 });
36
46
  }
37
- }), (r, l) => (a(), y("div", {
47
+ }), (b, l) => (a(), n("div", {
38
48
  ref_key: "fieldElement",
39
49
  ref: s,
40
50
  class: g(["aheart-ai-form__field", { "is-error": !!e.error, "is-disabled": e.disabled }]),
41
51
  "data-field-key": e.field.key,
42
52
  "aria-invalid": e.error ? "true" : void 0,
43
- "aria-describedby": o.value,
53
+ "aria-describedby": u.value,
44
54
  tabindex: "-1"
45
55
  }, [
46
56
  B("label", {
@@ -48,23 +58,23 @@ const j = ["data-field-key", "aria-invalid", "aria-describedby"], z = ["id", "fo
48
58
  for: $.value
49
59
  }, [
50
60
  C(m(e.field.label) + " ", 1),
51
- e.field.required ? (a(), y("span", L, "*")) : v("", !0)
61
+ e.field.required ? (a(), n("span", L, "*")) : v("", !0)
52
62
  ], 8, z),
53
- e.field.description ? (a(), y("p", {
63
+ e.field.description ? (a(), n("p", {
54
64
  key: 0,
55
65
  id: `${e.field.key}-description`,
56
66
  class: "aheart-ai-form__field-description"
57
67
  }, m(e.field.description), 9, F)) : v("", !0),
58
- e.field.type === "textarea" ? (a(), t(u(S), {
68
+ e.field.type === "textarea" ? (a(), t(o(I), {
59
69
  key: 1,
60
70
  id: e.field.key,
61
71
  "aria-labelledby": `${e.field.key}-label`,
62
- "aria-describedby": o.value,
72
+ "aria-describedby": u.value,
63
73
  "model-value": e.value,
64
74
  placeholder: e.field.placeholder,
65
75
  disabled: e.disabled,
66
76
  "onUpdate:modelValue": l[0] || (l[0] = (d) => i("update", d))
67
- }, null, 8, ["id", "aria-labelledby", "aria-describedby", "model-value", "placeholder", "disabled"])) : e.field.type === "tree-select" ? (a(), t(u(T), {
77
+ }, null, 8, ["id", "aria-labelledby", "aria-describedby", "model-value", "placeholder", "disabled"])) : e.field.type === "tree-select" ? (a(), t(o(A), {
68
78
  key: 2,
69
79
  id: e.field.key,
70
80
  "labelled-by": `${e.field.key}-label`,
@@ -73,24 +83,24 @@ const j = ["data-field-key", "aria-invalid", "aria-describedby"], z = ["id", "fo
73
83
  multiple: Array.isArray(e.value),
74
84
  disabled: e.disabled,
75
85
  "onUpdate:modelValue": l[1] || (l[1] = (d) => i("update", d))
76
- }, null, 8, ["id", "labelled-by", "model-value", "tree-data", "multiple", "disabled"])) : e.field.type === "upload" ? (a(), t(u(h), {
86
+ }, null, 8, ["id", "labelled-by", "model-value", "tree-data", "multiple", "disabled"])) : e.field.type === "upload" ? (a(), t(o(G), {
77
87
  key: 3,
78
88
  "file-list": e.value,
79
89
  disabled: e.disabled,
80
90
  "onUpdate:fileList": l[2] || (l[2] = (d) => i("update", d))
81
- }, null, 8, ["file-list", "disabled"])) : e.field.type === "radio" ? (a(), t(u(D), {
91
+ }, null, 8, ["file-list", "disabled"])) : e.field.type === "radio" ? (a(), t(o(N), {
82
92
  key: 4,
83
93
  "model-value": e.value,
84
94
  options: e.field.options,
85
95
  disabled: e.disabled,
86
96
  "onUpdate:modelValue": l[3] || (l[3] = (d) => i("update", d))
87
- }, null, 8, ["model-value", "options", "disabled"])) : e.field.type === "checkbox" ? (a(), t(u(E), {
97
+ }, null, 8, ["model-value", "options", "disabled"])) : e.field.type === "checkbox" ? (a(), t(o(S), {
88
98
  key: 5,
89
99
  "model-value": e.value,
90
100
  options: e.field.options,
91
101
  disabled: e.disabled,
92
102
  "onUpdate:modelValue": l[4] || (l[4] = (d) => i("update", d))
93
- }, null, 8, ["model-value", "options", "disabled"])) : e.field.type === "select" ? (a(), t(u(N), {
103
+ }, null, 8, ["model-value", "options", "disabled"])) : e.field.type === "select" ? (a(), t(o(P), {
94
104
  key: 6,
95
105
  id: e.field.key,
96
106
  "labelled-by": `${e.field.key}-label`,
@@ -98,71 +108,71 @@ const j = ["data-field-key", "aria-invalid", "aria-describedby"], z = ["id", "fo
98
108
  disabled: e.disabled,
99
109
  options: e.field.options,
100
110
  "onUpdate:modelValue": l[5] || (l[5] = (d) => i("update", d))
101
- }, null, 8, ["id", "labelled-by", "model-value", "disabled", "options"])) : e.field.type === "switch" ? (a(), t(u(P), {
111
+ }, null, 8, ["id", "labelled-by", "model-value", "disabled", "options"])) : e.field.type === "switch" ? (a(), t(o(q), {
102
112
  key: 7,
103
113
  id: e.field.key,
104
114
  "model-value": !!e.value,
105
115
  disabled: e.disabled,
106
116
  "onUpdate:modelValue": l[6] || (l[6] = (d) => i("update", d))
107
- }, null, 8, ["id", "model-value", "disabled"])) : e.field.type === "number" ? (a(), t(u(q), {
117
+ }, null, 8, ["id", "model-value", "disabled"])) : e.field.type === "number" ? (a(), t(o(E), {
108
118
  key: 8,
109
119
  id: e.field.key,
110
120
  "model-value": e.value,
111
121
  placeholder: e.field.placeholder,
112
122
  disabled: e.disabled,
113
123
  "onUpdate:modelValue": l[7] || (l[7] = (d) => i("update", d))
114
- }, null, 8, ["id", "model-value", "placeholder", "disabled"])) : e.field.type === "date" ? (a(), t(u(I), {
124
+ }, null, 8, ["id", "model-value", "placeholder", "disabled"])) : e.field.type === "date" ? (a(), t(o(T), {
115
125
  key: 9,
116
126
  id: e.field.key,
117
127
  "labelled-by": `${e.field.key}-label`,
118
- "described-by": o.value,
128
+ "described-by": u.value,
119
129
  status: e.error ? "error" : void 0,
120
130
  "model-value": e.value,
121
131
  placeholder: e.field.placeholder,
122
132
  disabled: e.disabled,
123
133
  "onUpdate:modelValue": l[8] || (l[8] = (d) => i("update", d))
124
- }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "placeholder", "disabled"])) : e.field.type === "date-range" ? (a(), t(u(R), {
134
+ }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "placeholder", "disabled"])) : e.field.type === "date-range" ? (a(), t(o(h), {
125
135
  key: 10,
126
136
  ref_key: "rangeControl",
127
- ref: n,
137
+ ref: f,
128
138
  id: e.field.key,
129
139
  "labelled-by": `${e.field.key}-label`,
130
- "described-by": o.value,
140
+ "described-by": u.value,
131
141
  status: e.error ? "error" : void 0,
132
142
  "model-value": e.value,
133
143
  disabled: e.disabled,
134
144
  "onUpdate:modelValue": l[9] || (l[9] = (d) => i("update", d))
135
- }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "disabled"])) : e.field.type === "time" ? (a(), t(u(w), {
145
+ }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "disabled"])) : e.field.type === "time" ? (a(), t(o(R), {
136
146
  key: 11,
137
147
  id: e.field.key,
138
148
  "labelled-by": `${e.field.key}-label`,
139
- "described-by": o.value,
149
+ "described-by": u.value,
140
150
  status: e.error ? "error" : void 0,
141
151
  "model-value": e.value,
142
152
  placeholder: e.field.placeholder,
143
153
  disabled: e.disabled,
144
154
  "onUpdate:modelValue": l[10] || (l[10] = (d) => i("update", d))
145
- }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "placeholder", "disabled"])) : e.field.type === "time-range" ? (a(), t(u(A), {
155
+ }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "placeholder", "disabled"])) : e.field.type === "time-range" ? (a(), t(o(w), {
146
156
  key: 12,
147
157
  ref_key: "rangeControl",
148
- ref: n,
158
+ ref: f,
149
159
  id: e.field.key,
150
160
  "labelled-by": `${e.field.key}-label`,
151
- "described-by": o.value,
161
+ "described-by": u.value,
152
162
  status: e.error ? "error" : void 0,
153
163
  "model-value": e.value,
154
164
  disabled: e.disabled,
155
165
  "onUpdate:modelValue": l[11] || (l[11] = (d) => i("update", d))
156
- }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "disabled"])) : (a(), t(u(G), {
166
+ }, null, 8, ["id", "labelled-by", "described-by", "status", "model-value", "disabled"])) : (a(), t(o(D), {
157
167
  key: 13,
158
168
  id: e.field.key,
159
169
  "model-value": e.value,
160
170
  placeholder: e.field.placeholder,
161
171
  disabled: e.disabled,
162
- "aria-describedby": o.value,
172
+ "aria-describedby": u.value,
163
173
  "onUpdate:modelValue": l[12] || (l[12] = (d) => i("update", d))
164
174
  }, null, 8, ["id", "model-value", "placeholder", "disabled", "aria-describedby"])),
165
- e.error ? (a(), y("p", {
175
+ e.error ? (a(), n("p", {
166
176
  key: 14,
167
177
  id: `${e.field.key}-error`,
168
178
  class: "aheart-ai-form__field-error",
@@ -172,5 +182,5 @@ const j = ["data-field-key", "aria-invalid", "aria-describedby"], z = ["id", "fo
172
182
  }
173
183
  });
174
184
  export {
175
- M as default
185
+ le as default
176
186
  };
package/es/form.vue.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type AIFormAsyncValidator } from './form-schema';
2
- declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  modelValue?: Record<string, unknown> | undefined;
4
4
  schema: unknown;
5
5
  disabled?: boolean | undefined;
@@ -22,7 +22,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
22
22
  name: string;
23
23
  errors: string[];
24
24
  }[]) => void;
25
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  submit: (value: Record<string, unknown>) => void;
27
27
  "update:modelValue": (value: Record<string, unknown>) => void;
28
28
  "schema-error": (errors: string[]) => void;
@@ -30,7 +30,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
30
30
  key: string;
31
31
  message: string;
32
32
  }[]) => void;
33
- }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
33
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
34
34
  modelValue?: Record<string, unknown> | undefined;
35
35
  schema: unknown;
36
36
  disabled?: boolean | undefined;
@@ -60,7 +60,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
60
60
  submitText: string;
61
61
  submitError: string;
62
62
  validators: Record<string, AIFormAsyncValidator>;
63
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
63
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
64
64
  export default _default;
65
65
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
66
  type __VLS_TypePropsToRuntimeProps<T> = {
package/es/form.vue.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { defineComponent as Ae, computed as R, reactive as D, ref as q, onMounted as Fe, watch as k, toRaw as J, onBeforeUnmount as Ve, openBlock as c, createBlock as Q, unref as X, withCtx as W, createElementBlock as d, toDisplayString as v, createCommentVNode as V, createElementVNode as j, Fragment as K, renderList as I, resolveDynamicComponent as je, createVNode as ne, createTextVNode as we, nextTick as le } from "vue";
2
- import { Form as Ee, FormItem as $e, Button as Se } from "aheart-ui";
2
+ import { Button as Ee } from "aheart-ui/button";
3
+ import { Form as $e, FormItem as Se } from "aheart-ui/form";
3
4
  import Re from "./form-field.vue.js";
4
5
  import { validateAIFormSchema as qe } from "./form-schema.js";
5
6
  const Ce = {
@@ -18,7 +19,7 @@ const Ce = {
18
19
  key: 1,
19
20
  class: "aheart-ai-form__error",
20
21
  role: "alert"
21
- }, Qe = /* @__PURE__ */ Ae({
22
+ }, Xe = /* @__PURE__ */ Ae({
22
23
  name: "AAIForm",
23
24
  __name: "form",
24
25
  props: {
@@ -279,7 +280,7 @@ const Ce = {
279
280
  }), (r = (t = _.value) == null ? void 0 : t.setFieldsErrors) == null || r.call(t, e);
280
281
  } }), Ve(() => {
281
282
  for (const e of m.values()) e.abort();
282
- }), (e, t) => i.value.valid && i.value.schema ? (c(), Q(X(Ee), {
283
+ }), (e, t) => i.value.valid && i.value.schema ? (c(), Q(X($e), {
283
284
  key: 0,
284
285
  ref_key: "formElement",
285
286
  ref: _,
@@ -323,7 +324,7 @@ const Ce = {
323
324
  j("span", null, v(r.group.title), 1),
324
325
  r.group.description ? (c(), d("small", Ue, v(r.group.description), 1)) : V("", !0)
325
326
  ])) : V("", !0),
326
- (c(!0), d(K, null, I(r.fields, (s) => (c(), Q(X($e), {
327
+ (c(!0), d(K, null, I(r.fields, (s) => (c(), Q(X(Se), {
327
328
  key: pe(s),
328
329
  name: s.key,
329
330
  rules: ve(s),
@@ -349,7 +350,7 @@ const Ce = {
349
350
  }), 128)),
350
351
  p.submitError ? (c(), d("p", Be, v(p.submitError), 1)) : V("", !0),
351
352
  j("footer", De, [
352
- ne(X(Se), {
353
+ ne(X(Ee), {
353
354
  "html-type": "submit",
354
355
  type: "primary",
355
356
  loading: p.submitting,
@@ -372,5 +373,5 @@ const Ce = {
372
373
  }
373
374
  });
374
375
  export {
375
- Qe as default
376
+ Xe as default
376
377
  };
@@ -0,0 +1,2 @@
1
+ export { default as AIProcess, default } from '../process.vue';
2
+ export type * from '../types';
@@ -0,0 +1,5 @@
1
+ import { default as f, default as o } from "../process.vue.js";
2
+ export {
3
+ f as AIProcess,
4
+ o as default
5
+ };
@@ -0,0 +1,77 @@
1
+ :root {
2
+ --aheart-ai-cyan: #0e7490;
3
+ --aheart-ai-cyan-strong: #0e7490;
4
+ --aheart-ai-brand-strong: #0958d9;
5
+ --aheart-ai-cyan-soft: #ecfeff;
6
+ --aheart-ai-line: #e4e7ec;
7
+ --aheart-ai-surface: #ffffff;
8
+ --aheart-ai-surface-subtle: #f8fafc;
9
+ --aheart-ai-text: #182230;
10
+ --aheart-ai-text-secondary: #667085;
11
+ }
12
+
13
+ .aheart-ai-process h3 {
14
+ margin: 0;
15
+ }
16
+
17
+ .aheart-ai-process small {
18
+ display: block;
19
+ color: var(--aheart-ai-text-secondary);
20
+ font-size: 12px;
21
+ }
22
+
23
+ .aheart-ai-process {
24
+ display: grid;
25
+ gap: 8px;
26
+ }
27
+
28
+ .aheart-ai-process ol {
29
+ margin: 0;
30
+ padding: 0;
31
+ list-style: none;
32
+ }
33
+
34
+ .aheart-ai-process h3 {
35
+ font-size: 12px;
36
+ color: var(--aheart-ai-text-secondary);
37
+ }
38
+
39
+ .aheart-ai-process ol {
40
+ display: grid;
41
+ gap: 6px;
42
+ }
43
+
44
+ .aheart-ai-process li {
45
+ position: relative;
46
+ display: grid;
47
+ gap: 2px;
48
+ padding-inline-start: 16px;
49
+ }
50
+
51
+ .aheart-ai-process li::before {
52
+ content: "";
53
+ position: absolute;
54
+ inset-block-start: 7px;
55
+ inset-inline-start: 2px;
56
+ inline-size: 6px;
57
+ block-size: 6px;
58
+ border-radius: 50%;
59
+ background: #98a2b3;
60
+ }
61
+
62
+ .aheart-ai-process li.is-running::before {
63
+ background: var(--aheart-ai-cyan);
64
+ box-shadow: 0 0 0 3px #cffafe;
65
+ }
66
+
67
+ .aheart-ai-process li.is-complete::before {
68
+ background: #12b76a;
69
+ }
70
+
71
+ .aheart-ai-process li.is-stopped::before {
72
+ background: #98a2b3;
73
+ }
74
+
75
+ .aheart-ai-process li.is-error {
76
+ color: var(--aheart-color-danger, #d92d20);
77
+ }
@@ -1,15 +1,15 @@
1
1
  import type { AIProcessItem } from './types';
2
- declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  items?: AIProcessItem[] | undefined;
4
4
  }>, {
5
5
  items: () => never[];
6
- }>>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
7
  items?: AIProcessItem[] | undefined;
8
8
  }>, {
9
9
  items: () => never[];
10
10
  }>>> & Readonly<{}>, {
11
11
  items: AIProcessItem[];
12
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
13
  export default _default;
14
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
15
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,2 @@
1
+ export { default as AIPrompts, default } from '../prompts.vue';
2
+ export type * from '../types';
@@ -0,0 +1,5 @@
1
+ import { default as e, default as f } from "../prompts.vue.js";
2
+ export {
3
+ e as AIPrompts,
4
+ f as default
5
+ };
@@ -0,0 +1,76 @@
1
+ :root {
2
+ --aheart-ai-cyan: #0e7490;
3
+ --aheart-ai-cyan-strong: #0e7490;
4
+ --aheart-ai-brand-strong: #0958d9;
5
+ --aheart-ai-cyan-soft: #ecfeff;
6
+ --aheart-ai-line: #e4e7ec;
7
+ --aheart-ai-surface: #ffffff;
8
+ --aheart-ai-surface-subtle: #f8fafc;
9
+ --aheart-ai-text: #182230;
10
+ --aheart-ai-text-secondary: #667085;
11
+ }
12
+
13
+ .aheart-ai-prompts {
14
+ display: grid;
15
+ grid-template-columns: repeat(2, minmax(0, 1fr));
16
+ gap: 8px;
17
+ margin: 0;
18
+ padding: 0;
19
+ list-style: none;
20
+ }
21
+
22
+ .aheart-ai-prompts li {
23
+ margin: 0;
24
+ padding: 0;
25
+ min-inline-size: 0;
26
+ list-style: none !important;
27
+ }
28
+
29
+ .aheart-ai-prompts li::marker {
30
+ content: "";
31
+ }
32
+
33
+ .aheart-ai-prompts button {
34
+ display: grid;
35
+ gap: 4px;
36
+ min-block-size: 64px;
37
+ inline-size: 100%;
38
+ padding: 11px 12px;
39
+ border: 1px solid #d0d5dd;
40
+ border-radius: 6px;
41
+ background: rgba(255, 255, 255, 0.96);
42
+ color: var(--aheart-ai-text);
43
+ font: inherit;
44
+ text-align: left;
45
+ cursor: pointer;
46
+ transition: transform 120ms ease-out, border-color 120ms ease-out, background-color 120ms ease-out;
47
+ }
48
+
49
+ .aheart-ai-prompts button:hover,
50
+ .aheart-ai-prompts button:focus-visible {
51
+ transform: translateY(-2px);
52
+ border-color: #69b1ff;
53
+ background: #f0f7ff;
54
+ outline: none;
55
+ }
56
+
57
+ .aheart-ai-prompts span {
58
+ display: block;
59
+ color: var(--aheart-ai-text-secondary);
60
+ font-size: 12px;
61
+ }
62
+
63
+ @media (max-width: 760px) {
64
+
65
+ .aheart-ai-prompts {
66
+ grid-template-columns: minmax(0, 1fr);
67
+ }
68
+ }
69
+
70
+ @media (prefers-reduced-motion: reduce) {
71
+
72
+ .aheart-ai-prompts button:hover,
73
+ .aheart-ai-prompts button:focus-visible {
74
+ transform: none;
75
+ }
76
+ }
@@ -1,13 +1,13 @@
1
1
  import type { AIPrompt } from './types';
2
- declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  prompts?: AIPrompt[] | undefined;
4
4
  disabled?: boolean | undefined;
5
5
  }>, {
6
6
  prompts: () => never[];
7
7
  disabled: boolean;
8
- }>>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  select: (prompt: AIPrompt) => void;
10
- }, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
11
  prompts?: AIPrompt[] | undefined;
12
12
  disabled?: boolean | undefined;
13
13
  }>, {
@@ -18,7 +18,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<import("@vue
18
18
  }>, {
19
19
  disabled: boolean;
20
20
  prompts: AIPrompt[];
21
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
22
  export default _default;
23
23
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
24
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,2 @@
1
+ export { default as AISender, default } from '../sender.vue';
2
+ export type * from '../types';
@@ -0,0 +1,5 @@
1
+ import { default as d, default as f } from "../sender.vue.js";
2
+ export {
3
+ d as AISender,
4
+ f as default
5
+ };
@@ -0,0 +1,88 @@
1
+ :root {
2
+ --aheart-ai-cyan: #0e7490;
3
+ --aheart-ai-cyan-strong: #0e7490;
4
+ --aheart-ai-brand-strong: #0958d9;
5
+ --aheart-ai-cyan-soft: #ecfeff;
6
+ --aheart-ai-line: #e4e7ec;
7
+ --aheart-ai-surface: #ffffff;
8
+ --aheart-ai-surface-subtle: #f8fafc;
9
+ --aheart-ai-text: #182230;
10
+ --aheart-ai-text-secondary: #667085;
11
+ }
12
+
13
+ .aheart-ai-sender {
14
+ display: grid;
15
+ grid-template-columns: minmax(0, 1fr) auto;
16
+ align-items: end;
17
+ gap: 8px;
18
+ padding: 6px;
19
+ border: 1px solid #b9c2cf;
20
+ border-radius: 7px;
21
+ background: #fff;
22
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
23
+ transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
24
+ }
25
+
26
+ .aheart-ai-sender:focus-within {
27
+ border-color: var(--aheart-color-primary, #1677ff);
28
+ box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
29
+ }
30
+
31
+ .aheart-ai-sender textarea {
32
+ inline-size: 100%;
33
+ min-block-size: 56px;
34
+ max-block-size: 160px;
35
+ resize: vertical;
36
+ padding: 8px;
37
+ border: 0;
38
+ background: transparent;
39
+ color: var(--aheart-ai-text);
40
+ font: inherit;
41
+ line-height: 1.55;
42
+ outline: none;
43
+ }
44
+
45
+ .aheart-ai-sender button {
46
+ min-inline-size: 72px;
47
+ min-block-size: 36px;
48
+ padding: 7px 14px;
49
+ border: 1px solid var(--aheart-color-primary, #1677ff);
50
+ border-radius: 5px;
51
+ background: var(--aheart-color-primary, #1677ff);
52
+ color: #fff;
53
+ font: 500 14px/1 inherit;
54
+ cursor: pointer;
55
+ transition: background-color 120ms ease-out, border-color 120ms ease-out;
56
+ }
57
+
58
+ .aheart-ai-sender button:hover:not(:disabled),
59
+ .aheart-ai-sender button:focus-visible {
60
+ border-color: #0958d9;
61
+ background: #0958d9;
62
+ outline: none;
63
+ }
64
+
65
+ .aheart-ai-sender button:disabled {
66
+ border-color: #d0d5dd;
67
+ background: #eaecf0;
68
+ color: #98a2b3;
69
+ cursor: not-allowed;
70
+ }
71
+
72
+ @media (max-width: 760px) {
73
+
74
+ .aheart-ai-sender {
75
+ grid-template-columns: minmax(0, 1fr);
76
+ }
77
+
78
+ .aheart-ai-sender button {
79
+ inline-size: 100%;
80
+ }
81
+ }
82
+
83
+ @media (pointer: coarse) {
84
+ .aheart-ai-sender button {
85
+ min-block-size: 44px;
86
+ min-inline-size: 44px;
87
+ }
88
+ }