ant-design-x-vue 1.2.6 → 1.2.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.
Files changed (86) hide show
  1. package/dist/index.esm.js +39148 -0
  2. package/dist/index.umd.js +244 -13
  3. package/es/_util/cssinjs/StyleContext.mjs +48 -42
  4. package/es/_util/motion.mjs +11 -13
  5. package/es/attachments/Attachments2.mjs +14 -14
  6. package/es/attachments/FileList/FileListCard.mjs +21 -21
  7. package/es/attachments/index.mjs +7 -4
  8. package/es/bubble/Bubble.mjs +11 -11
  9. package/es/bubble/BubbleList.mjs +28 -29
  10. package/es/bubble/index.mjs +10 -7
  11. package/es/components.mjs +31 -0
  12. package/es/components.ts2.mjs +35 -0
  13. package/es/conversations/Conversations.mjs +14 -15
  14. package/es/conversations/index.mjs +6 -3
  15. package/es/hooks.mjs +13 -0
  16. package/es/index.mjs +81 -36
  17. package/es/prompts/Prompts.mjs +16 -13
  18. package/es/prompts/index.mjs +6 -3
  19. package/es/sender/Sender.mjs +154 -134
  20. package/es/sender/components/ActionButton/index.mjs +15 -12
  21. package/es/sender/components/ClearButton.mjs +15 -12
  22. package/es/sender/components/LoadingButton.mjs +16 -13
  23. package/es/sender/components/SendButton.mjs +17 -14
  24. package/es/sender/components/SpeechButton/RecordingIcon.mjs +21 -18
  25. package/es/sender/components/SpeechButton/index.mjs +31 -25
  26. package/es/sender/index.mjs +9 -6
  27. package/es/suggestion/Suggestion.mjs +155 -50
  28. package/es/suggestion/index.mjs +6 -3
  29. package/es/theme/genStyleUtils.mjs +7 -8
  30. package/es/thought-chain/ThoughtChain.mjs +17 -18
  31. package/es/thought-chain/index.mjs +6 -3
  32. package/es/welcome/Welcome.mjs +45 -37
  33. package/es/welcome/index.mjs +6 -3
  34. package/es/x-provider/index.mjs +9 -6
  35. package/es/x-provider/index2.mjs +5 -5
  36. package/lib/_util/cssinjs/StyleContext.js +1 -1
  37. package/lib/_util/motion.js +1 -1
  38. package/lib/attachments/Attachments2.js +2 -2
  39. package/lib/attachments/FileList/FileListCard.js +1 -1
  40. package/lib/attachments/index.js +1 -1
  41. package/lib/bubble/Bubble.js +1 -1
  42. package/lib/bubble/BubbleList.js +1 -1
  43. package/lib/bubble/index.js +1 -1
  44. package/lib/components.js +1 -0
  45. package/lib/components.ts2.js +1 -0
  46. package/lib/conversations/Conversations.js +1 -1
  47. package/lib/conversations/index.js +1 -1
  48. package/lib/hooks.js +1 -0
  49. package/lib/index.js +1 -1
  50. package/lib/prompts/Prompts.js +1 -1
  51. package/lib/prompts/index.js +1 -1
  52. package/lib/sender/Sender.js +1 -1
  53. package/lib/sender/components/ActionButton/index.js +1 -1
  54. package/lib/sender/components/ClearButton.js +1 -1
  55. package/lib/sender/components/LoadingButton.js +1 -1
  56. package/lib/sender/components/SendButton.js +1 -1
  57. package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -1
  58. package/lib/sender/components/SpeechButton/index.js +1 -1
  59. package/lib/sender/index.js +1 -1
  60. package/lib/suggestion/Suggestion.js +1 -1
  61. package/lib/suggestion/index.js +1 -1
  62. package/lib/theme/genStyleUtils.js +1 -1
  63. package/lib/thought-chain/ThoughtChain.js +1 -1
  64. package/lib/thought-chain/index.js +1 -1
  65. package/lib/welcome/Welcome.js +1 -1
  66. package/lib/welcome/index.js +1 -1
  67. package/lib/x-provider/index.js +1 -1
  68. package/lib/x-provider/index2.js +1 -1
  69. package/package.json +6 -5
  70. package/typings/_util/cssinjs/StyleContext.d.ts +6 -6
  71. package/typings/_util/cssinjs/index.d.ts +3 -3
  72. package/typings/attachments/index.d.ts +1 -1
  73. package/typings/bubble/Bubble.vue.d.ts +6 -6
  74. package/typings/bubble/hooks/useTypingConfig.d.ts +1 -1
  75. package/typings/bubble/index.d.ts +12 -12
  76. package/typings/bubble/interface.d.ts +1 -1
  77. package/typings/components.d.ts +9 -0
  78. package/typings/hooks.d.ts +4 -0
  79. package/typings/index.d.ts +9 -13
  80. package/typings/prompts/interface.d.ts +1 -1
  81. package/typings/sender/Sender.vue.d.ts +4 -4
  82. package/typings/sender/SenderHeader.vue.d.ts +12 -10
  83. package/typings/sender/index.d.ts +19 -32
  84. package/typings/sender/interface.d.ts +19 -3
  85. package/typings/sender/useSpeech.d.ts +5 -1
  86. package/typings/welcome/interface.d.ts +4 -4
@@ -1,243 +1,263 @@
1
- import { defineComponent as ee, toRef as te, useSlots as ne, computed as a, ref as d, watch as ae, createVNode as o, mergeProps as oe } from "vue";
2
- import { a as le, c } from "../attachments/Attachments2.mjs";
3
- import { Input as se, Flex as ie } from "ant-design-vue";
4
- import ue from "../_util/pick-attrs.mjs";
1
+ import { defineComponent as ee, mergeDefaults as ne, toRef as te, useSlots as ae, computed as a, ref as d, watch as le, createVNode as l, mergeProps as oe } from "vue";
2
+ import { a as se, c as r } from "../attachments/Attachments2.mjs";
3
+ import { Input as ie, Flex as ue } from "ant-design-vue";
4
+ import ce from "../_util/pick-attrs.mjs";
5
5
  import re from "../_util/hooks/use-x-component-config.mjs";
6
- import ce from "../x-provider/hooks/use-x-provider-context.mjs";
7
- import "../x-provider/context.mjs";
6
+ import "../x-provider/index.mjs";
8
7
  import { SenderHeaderContextProvider as fe } from "./context.mjs";
9
8
  import { ActionButtonContextProvider as de } from "./components/ActionButton/context.mjs";
10
9
  import me from "./components/ClearButton.mjs";
11
- import D from "./components/LoadingButton.mjs";
12
- import K from "./components/SendButton.mjs";
13
- import R from "./components/SpeechButton/index.mjs";
10
+ import $ from "./components/LoadingButton.mjs";
11
+ import I from "./components/SendButton.mjs";
12
+ import B from "./components/SpeechButton/index.mjs";
14
13
  import ve from "./style/index.mjs";
15
14
  import ye from "./useSpeech.mjs";
16
15
  import Ce from "../_util/getValue.mjs";
17
- const Ae = /* @__PURE__ */ ee({
16
+ import he from "../x-provider/hooks/use-x-provider-context.mjs";
17
+ const ze = /* @__PURE__ */ ee({
18
18
  name: "AXSender",
19
19
  __name: "Sender",
20
- props: {
21
- onKeyPress: {},
22
- onFocus: {},
23
- onBlur: {},
24
- prefixCls: {},
25
- defaultValue: {},
26
- value: {},
20
+ props: ne({
21
+ onKeyPress: {
22
+ type: Function
23
+ },
24
+ onFocus: null,
25
+ onBlur: null,
26
+ prefixCls: null,
27
+ defaultValue: null,
28
+ value: null,
27
29
  loading: {
28
30
  type: Boolean
29
31
  },
30
- placeholder: {},
32
+ placeholder: null,
31
33
  readOnly: {
32
34
  type: Boolean
33
35
  },
34
36
  submitType: {
35
- type: [String, Boolean],
36
- default: "enter"
37
+ type: [String, Boolean]
37
38
  },
38
39
  disabled: {
39
- type: Boolean,
40
- default: void 0
40
+ type: Boolean
41
+ },
42
+ onSubmit: {
43
+ type: Function
44
+ },
45
+ onChange: {
46
+ type: Function
41
47
  },
42
- onSubmit: {},
43
- onChange: {},
44
- onCancel: {},
45
- onKeyDown: {},
46
- onPaste: {},
47
- onPasteFile: {},
48
- components: {},
49
- styles: {
50
- default: () => ({})
48
+ onCancel: null,
49
+ onKeyDown: {
50
+ type: Function
51
51
  },
52
- rootClassName: {},
53
- classNames: {
54
- default: () => ({})
52
+ onPaste: {
53
+ type: Function
55
54
  },
56
- style: {},
57
- className: {},
55
+ onPasteFile: {
56
+ type: Function
57
+ },
58
+ components: null,
59
+ styles: null,
60
+ rootClassName: null,
61
+ classNames: null,
62
+ style: null,
63
+ className: null,
58
64
  actions: {
59
- type: [Object, Function, Boolean],
60
- default: void 0
65
+ type: [Function, Boolean]
61
66
  },
62
- allowSpeech: {},
63
- prefix: {},
64
- footer: {},
65
- header: {},
66
- autoSize: {
67
- default: () => ({
68
- maxRows: 8
69
- })
70
- }
71
- },
67
+ allowSpeech: null,
68
+ prefix: {
69
+ type: Function
70
+ },
71
+ footer: {
72
+ type: Function
73
+ },
74
+ header: {
75
+ type: Function
76
+ },
77
+ autoSize: null
78
+ }, {
79
+ styles: () => ({}),
80
+ classNames: () => ({}),
81
+ submitType: "enter",
82
+ actions: void 0,
83
+ disabled: void 0,
84
+ autoSize: () => ({
85
+ maxRows: 8
86
+ })
87
+ }),
72
88
  emits: ["update:value"],
73
89
  setup(e, {
74
- expose: I,
75
- emit: F
90
+ expose: K,
91
+ emit: R
76
92
  }) {
77
- const V = le(e, ["prefixCls", "styles", "classNames", "className", "rootClassName", "style", "defaultValue", "value", "placeholder", "readOnly", "submitType", "onSubmit", "loading", "components", "onCancel", "onChange", "actions", "onKeyPress", "onKeyDown", "disabled", "allowSpeech", "prefix", "footer", "header", "onPaste", "onPasteFile", "autoSize"]);
93
+ const V = se(e, ["prefixCls", "styles", "classNames", "className", "rootClassName", "style", "defaultValue", "value", "placeholder", "readOnly", "submitType", "onSubmit", "loading", "components", "onCancel", "onChange", "actions", "onKeyPress", "onKeyDown", "disabled", "allowSpeech", "prefix", "footer", "header", "onPaste", "onPasteFile", "autoSize"]);
78
94
  te(e, "prefixCls");
79
- function A(t, n, r) {
80
- return Ce(t, n) || r;
95
+ function T(n, t, c) {
96
+ return Ce(n, t) || c;
81
97
  }
82
98
  const m = {
83
- SendButton: K,
99
+ SendButton: I,
84
100
  ClearButton: me,
85
- LoadingButton: D,
86
- SpeechButton: R
87
- }, E = F, i = ne(), {
88
- direction: O,
89
- getPrefixCls: T
90
- } = ce(), l = a(() => T("sender", e.prefixCls)), v = d(null), f = d(null), s = re("sender"), g = a(() => `${l.value}-input`), [k, z, X] = ve(l.value), L = a(() => c(l.value, s.value.className, e.className, e.rootClassName, z.value, X, {
91
- [`${l.value}-rtl`]: O.value === "rtl",
92
- [`${l.value}-disabled`]: e.disabled
93
- })), M = a(() => `${l.value}-actions-btn`), S = a(() => `${l.value}-actions-list`), u = d(e.value ?? e.defaultValue ?? ""), x = (t) => {
94
- u.value = t;
101
+ LoadingButton: $,
102
+ SpeechButton: B
103
+ }, z = R, i = ae(), {
104
+ direction: A,
105
+ getPrefixCls: E
106
+ } = he(), o = a(() => E("sender", e.prefixCls)), v = d(null), f = d(null), s = re("sender"), g = a(() => `${o.value}-input`), [k, O, X] = ve(o.value), L = a(() => r(o.value, s.value.className, e.className, e.rootClassName, O.value, X, {
107
+ [`${o.value}-rtl`]: A.value === "rtl",
108
+ [`${o.value}-disabled`]: e.disabled
109
+ })), M = a(() => `${o.value}-actions-btn`), S = a(() => `${o.value}-actions-list`), u = d(e.value ?? e.defaultValue ?? ""), b = (n) => {
110
+ u.value = n;
95
111
  };
96
- ae(() => e.value, () => {
97
- x(e.value);
112
+ le(() => e.value, () => {
113
+ b(e.value);
98
114
  });
99
- const y = (t, n) => {
100
- x(t), E("update:value", t), e.onChange && e.onChange(t, n);
115
+ const y = (n, t) => {
116
+ b(n), z("update:value", n), e.onChange && e.onChange(n, t);
101
117
  }, {
102
118
  speechPermission: j,
103
- triggerSpeech: b,
119
+ triggerSpeech: x,
104
120
  recording: q
105
- } = ye((t) => {
106
- y(`${u.value} ${t}`);
107
- }, () => e.allowSpeech), H = A(e.components, ["input"], se.TextArea), G = a(() => ue(V, {
121
+ } = ye((n) => {
122
+ y(`${u.value} ${n}`);
123
+ }, () => e.allowSpeech), H = T(e.components, ["input"], ie.TextArea), p = a(() => ce(V, {
108
124
  attr: !0,
109
125
  aria: !0,
110
126
  data: !0
111
- })), J = a(() => ({
112
- ...G.value,
127
+ })), G = a(() => ({
128
+ ...p.value,
113
129
  ref: f
114
130
  })), C = () => {
115
131
  u.value && e.onSubmit && !e.loading && e.onSubmit(u.value);
116
- }, Q = () => {
132
+ }, J = () => {
117
133
  y("");
118
- }, h = d(!1), U = () => {
134
+ }, h = d(!1), Q = () => {
119
135
  h.value = !0;
120
- }, W = () => {
136
+ }, U = () => {
121
137
  h.value = !1;
122
- }, Y = (t) => {
123
- const n = t.key === "Enter" && !h.value;
138
+ }, W = (n) => {
139
+ const t = n.key === "Enter" && !h.value;
124
140
  switch (e.submitType) {
125
141
  case "enter":
126
- n && !t.shiftKey && (t.preventDefault(), C());
142
+ t && !n.shiftKey && (n.preventDefault(), C());
127
143
  break;
128
144
  case "shiftEnter":
129
- n && t.shiftKey && (t.preventDefault(), C());
145
+ t && n.shiftKey && (n.preventDefault(), C());
130
146
  break;
131
147
  }
132
- e.onKeyPress && e.onKeyPress(t);
133
- }, Z = (t) => {
134
- var r, B;
135
- const n = (r = t.clipboardData) == null ? void 0 : r.files;
136
- n != null && n.length && e.onPasteFile && (e.onPasteFile(n[0], n), t.preventDefault()), (B = e.onPaste) == null || B.call(e, t);
137
- }, p = (t) => {
138
- var n, r;
139
- t.target !== ((n = v.value) == null ? void 0 : n.querySelector(`.${g.value}`)) && t.preventDefault(), (r = f.value) == null || r.focus();
148
+ e.onKeyPress && e.onKeyPress(n);
149
+ }, Y = (n) => {
150
+ var c, F;
151
+ const t = (c = n.clipboardData) == null ? void 0 : c.files;
152
+ t != null && t.length && e.onPasteFile && (e.onPasteFile(t[0], t), n.preventDefault()), (F = e.onPaste) == null || F.call(e, n);
153
+ }, Z = (n) => {
154
+ var t, c;
155
+ n.target !== ((t = v.value) == null ? void 0 : t.querySelector(`.${g.value}`)) && n.preventDefault(), (c = f.value) == null || c.focus();
140
156
  }, P = a(() => {
141
- let t = o(ie, {
157
+ let n = l(ue, {
142
158
  class: `${S.value}-presets`
143
159
  }, {
144
- default: () => [e.allowSpeech && o(R, null, null), e.loading ? o(D, null, null) : o(K, null, null)]
160
+ default: () => [e.allowSpeech && l(B, typeof e.allowSpeech == "object" ? {
161
+ audioIcon: e.allowSpeech.audioIcon,
162
+ audioDisabledIcon: e.allowSpeech.audioDisabledIcon,
163
+ audioRecordingIcon: e.allowSpeech.audioRecordingIcon
164
+ } : {}, null), e.loading ? l($, null, null) : l(I, null, null)]
145
165
  });
146
- const n = {
166
+ const t = {
147
167
  components: m
148
168
  };
149
- return i.actions ? t = i.actions({
150
- ori: t,
151
- info: n
152
- }) : typeof e.actions == "function" ? t = e.actions(t, n) : (e.actions || e.actions === !1) && (t = e.actions), t;
169
+ return i.actions ? n = i.actions({
170
+ ori: n,
171
+ info: t
172
+ }) : typeof e.actions == "function" ? n = e.actions(n, t) : (e.actions || e.actions === !1) && (n = e.actions), n;
153
173
  }), _ = a(() => ({
154
174
  prefixCls: M.value,
155
175
  onSend: C,
156
176
  onSendDisabled: !u.value,
157
- onClear: Q,
177
+ onClear: J,
158
178
  onClearDisabled: !u.value,
159
179
  onCancel: e.onCancel,
160
180
  onCancelDisabled: !e.loading,
161
- onSpeech: () => b(!1),
181
+ onSpeech: () => x(!1),
162
182
  onSpeechDisabled: !j.value,
163
183
  speechRecording: q.value,
164
184
  disabled: e.disabled
165
185
  })), N = a(() => {
166
- let t = null;
167
- const n = {
186
+ let n = null;
187
+ const t = {
168
188
  components: m
169
189
  };
170
- return i.footer ? t = i.footer({
171
- info: n
172
- }) : typeof e.footer == "function" ? t = e.footer({
190
+ return i.footer ? n = i.footer({
191
+ info: t
192
+ }) : typeof e.footer == "function" ? n = e.footer({
173
193
  components: m
174
- }) : e.footer && (t = e.footer), t;
175
- }), $ = a(() => i.header ? i.header() : typeof e.header == "function" ? e.header() : e.header), w = a(() => i.prefix ? i.prefix() : typeof e.prefix == "function" ? e.prefix() : e.prefix);
176
- return I({
194
+ }) : e.footer && (n = e.footer), n;
195
+ }), w = a(() => i.header ? i.header() : typeof e.header == "function" ? e.header() : e.header), D = a(() => i.prefix ? i.prefix() : typeof e.prefix == "function" ? e.prefix() : e.prefix);
196
+ return K({
177
197
  nativeElement: v.value,
178
198
  // @ts-expect-error
179
- focus: (t) => {
180
- var n;
181
- return (n = f.value) == null ? void 0 : n.focus(t);
199
+ focus: (n) => {
200
+ var t;
201
+ return (t = f.value) == null ? void 0 : t.focus(n);
182
202
  },
183
203
  // @ts-expect-error
184
204
  blur: () => {
185
- var t;
186
- return (t = f.value) == null ? void 0 : t.blur();
205
+ var n;
206
+ return (n = f.value) == null ? void 0 : n.blur();
187
207
  }
188
- }), () => k(o("div", {
208
+ }), () => k(l("div", {
189
209
  ref: v,
190
210
  class: L.value,
191
211
  style: {
192
212
  ...s.value.style,
193
213
  ...e.style
194
214
  }
195
- }, [$.value && o(fe, {
215
+ }, [w.value && l(fe, {
196
216
  value: {
197
- prefixCls: l.value
217
+ prefixCls: o.value
198
218
  }
199
219
  }, {
200
- default: () => [$.value]
201
- }), o(de, {
220
+ default: () => [w.value]
221
+ }), l(de, {
202
222
  value: _.value
203
223
  }, {
204
- default: () => [o("div", {
205
- class: `${l.value}-content`,
206
- onMousedown: p
207
- }, [w.value && o("div", {
208
- class: c(`${l.value}-prefix`, s.value.classNames.prefix, e.classNames.prefix),
224
+ default: () => [l("div", {
225
+ class: `${o.value}-content`,
226
+ onMousedown: Z
227
+ }, [D.value && l("div", {
228
+ class: r(`${o.value}-prefix`, s.value.classNames.prefix, e.classNames.prefix),
209
229
  style: {
210
230
  ...s.value.styles.prefix,
211
231
  ...e.styles.prefix
212
232
  }
213
- }, [w.value]), o(H, oe(J.value, {
233
+ }, [D.value]), l(H, oe(G.value, {
214
234
  disabled: e.disabled,
215
235
  style: {
216
236
  ...s.value.styles.input,
217
237
  ...e.styles.input
218
238
  },
219
- class: c(g.value, s.value.classNames.input, e.classNames.input),
239
+ class: r(g.value, s.value.classNames.input, e.classNames.input),
220
240
  autoSize: e.autoSize,
221
241
  value: u.value,
222
- onChange: (t) => {
223
- y(t.target.value, t), b(!0);
242
+ onChange: (n) => {
243
+ y(n.target.value, n), x(!0);
224
244
  },
225
- onPressEnter: Y,
226
- onCompositionstart: U,
227
- onCompositionend: W,
245
+ onPressEnter: W,
246
+ onCompositionstart: Q,
247
+ onCompositionend: U,
228
248
  onKeydown: e.onKeyDown,
229
249
  placeholder: e.placeholder,
230
- onPaste: Z,
250
+ onPaste: Y,
231
251
  bordered: !1,
232
252
  readOnly: e.readOnly
233
- }), null), P.value && o("div", {
234
- class: c(S.value, s.value.classNames.actions, e.classNames.actions),
253
+ }), null), P.value && l("div", {
254
+ class: r(S.value, s.value.classNames.actions, e.classNames.actions),
235
255
  style: {
236
256
  ...s.value.styles.actions,
237
257
  ...e.styles.actions
238
258
  }
239
- }, [P.value])]), N.value && o("div", {
240
- class: c(`${l.value}-footer`, s.value.classNames.footer, e.classNames.footer),
259
+ }, [P.value])]), N.value && l("div", {
260
+ class: r(`${o.value}-footer`, s.value.classNames.footer, e.classNames.footer),
241
261
  style: {
242
262
  ...s.value.styles.footer,
243
263
  ...e.styles.footer
@@ -247,5 +267,5 @@ const Ae = /* @__PURE__ */ ee({
247
267
  }
248
268
  });
249
269
  export {
250
- Ae as default
270
+ ze as default
251
271
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as d, toRef as u, useSlots as f, computed as s, createVNode as m, mergeProps as y } from "vue";
2
- import { a as b, c as p } from "../../../attachments/Attachments2.mjs";
1
+ import { defineComponent as r, toRef as u, useSlots as f, computed as s, createVNode as m, mergeProps as b } from "vue";
2
+ import { a as y, c as p } from "../../../attachments/Attachments2.mjs";
3
3
  import { Button as C } from "ant-design-vue";
4
4
  import { useActionButtonContextInject as x } from "./context.mjs";
5
- const A = /* @__PURE__ */ d({
5
+ const A = /* @__PURE__ */ r({
6
6
  name: "AXSenderActionButton",
7
7
  __name: "index",
8
8
  props: {
@@ -35,28 +35,31 @@ const A = /* @__PURE__ */ d({
35
35
  target: {},
36
36
  title: {},
37
37
  onClick: {},
38
- onMousedown: {}
38
+ onMousedown: {},
39
+ audioIcon: {},
40
+ audioDisabledIcon: {},
41
+ audioRecordingIcon: {}
39
42
  },
40
43
  setup(e) {
41
- const c = b(e, ["action", "type", "disabled", "onClick"]);
44
+ const c = y(e, ["action", "type", "disabled", "onClick"]);
42
45
  u(e, "disabled");
43
- const r = f(), n = x(), l = s(() => {
46
+ const d = f(), n = x(), i = s(() => {
44
47
  var o;
45
48
  const a = n.value.disabled, t = (o = n.value) == null ? void 0 : o[`${e.action}Disabled`];
46
49
  return e.disabled ?? a ?? t;
47
- }), i = s(() => n.value.prefixCls);
48
- return () => m(C, y({
50
+ }), l = s(() => n.value.prefixCls);
51
+ return () => m(C, b({
49
52
  type: e.type
50
53
  }, c, {
51
54
  onClick: (a) => {
52
55
  var t, o;
53
- l.value || ((o = (t = n.value) == null ? void 0 : t[e.action]) == null || o.call(t), e.onClick && !Array.isArray(e.onClick) && e.onClick(a));
56
+ i.value || ((o = (t = n.value) == null ? void 0 : t[e.action]) == null || o.call(t), e.onClick && !Array.isArray(e.onClick) && e.onClick(a));
54
57
  },
55
- class: p(i.value, {
56
- [`${i.value}-disabled`]: l.value
58
+ class: p(l.value, {
59
+ [`${l.value}-disabled`]: i.value
57
60
  })
58
61
  }), {
59
- icon: () => r.default()
62
+ icon: () => d.default()
60
63
  });
61
64
  }
62
65
  });
@@ -1,11 +1,11 @@
1
- import { defineComponent as r, mergeDefaults as t, createVNode as e, mergeProps as o } from "vue";
2
- import { a as u } from "../../attachments/Attachments2.mjs";
3
- import a from "./ActionButton/index.mjs";
4
- import { i as s } from "../../attachments/FileList/FileList2.mjs";
5
- const f = /* @__PURE__ */ r({
1
+ import { defineComponent as o, mergeDefaults as u, createVNode as n, mergeProps as r } from "vue";
2
+ import { a } from "../../attachments/Attachments2.mjs";
3
+ import t from "./ActionButton/index.mjs";
4
+ import { i } from "../../attachments/FileList/FileList2.mjs";
5
+ const p = /* @__PURE__ */ o({
6
6
  name: "AXSenderClearButton",
7
7
  __name: "ClearButton",
8
- props: t({
8
+ props: u({
9
9
  prefixCls: null,
10
10
  type: null,
11
11
  htmlType: null,
@@ -21,21 +21,24 @@ const f = /* @__PURE__ */ r({
21
21
  target: null,
22
22
  title: null,
23
23
  onClick: null,
24
- onMousedown: null
24
+ onMousedown: null,
25
+ audioIcon: null,
26
+ audioDisabledIcon: null,
27
+ audioRecordingIcon: null
25
28
  }, {
26
29
  disabled: void 0
27
30
  }),
28
31
  setup(l) {
29
- const n = u(l, ["disabled"]);
30
- return () => e(a, o({
32
+ const e = a(l, ["disabled"]);
33
+ return () => n(t, r({
31
34
  disabled: l.disabled
32
- }, n, {
35
+ }, e, {
33
36
  action: "onClear"
34
37
  }), {
35
- default: () => [e(s, null, null)]
38
+ default: () => [n(i, null, null)]
36
39
  });
37
40
  }
38
41
  });
39
42
  export {
40
- f as default
43
+ p as default
41
44
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as a, mergeDefaults as r, createVNode as l, mergeProps as s } from "vue";
2
- import { a as i, c as u } from "../../attachments/Attachments2.mjs";
1
+ import { defineComponent as a, mergeDefaults as i, createVNode as l, mergeProps as r } from "vue";
2
+ import { a as s, c as u } from "../../attachments/Attachments2.mjs";
3
3
  import c from "./ActionButton/index.mjs";
4
4
  import d from "../StopLoading.mjs";
5
5
  import { useActionButtonContextInject as m } from "./ActionButton/context.mjs";
@@ -7,7 +7,7 @@ import { theme as p } from "ant-design-vue";
7
7
  const x = /* @__PURE__ */ a({
8
8
  name: "AXSenderLoadingButton",
9
9
  __name: "LoadingButton",
10
- props: r({
10
+ props: i({
11
11
  prefixCls: null,
12
12
  type: null,
13
13
  htmlType: null,
@@ -23,32 +23,35 @@ const x = /* @__PURE__ */ a({
23
23
  target: null,
24
24
  title: null,
25
25
  onClick: null,
26
- onMousedown: null
26
+ onMousedown: null,
27
+ audioIcon: null,
28
+ audioDisabledIcon: null,
29
+ audioRecordingIcon: null
27
30
  }, {
28
31
  type: "primary",
29
32
  shape: "circle",
30
33
  icon: void 0,
31
34
  disabled: void 0
32
35
  }),
33
- setup(e) {
34
- const o = i(e, ["type", "shape", "icon", "disabled"]), n = m(), {
36
+ setup(n) {
37
+ const o = s(n, ["type", "shape", "icon", "disabled"]), e = m(), {
35
38
  token: t
36
39
  } = p.useToken();
37
- return () => l(c, s({
38
- type: e.type,
39
- disabled: e.disabled,
40
- shape: e.shape,
41
- icon: e.icon
40
+ return () => l(c, r({
41
+ type: n.type,
42
+ disabled: n.disabled,
43
+ shape: n.shape,
44
+ icon: n.icon
42
45
  }, o, {
43
46
  style: {
44
47
  backgroundColor: "transparent",
45
48
  color: t.value.colorPrimary
46
49
  },
47
- class: u(`${n.value.prefixCls}-loading-button`),
50
+ class: u(`${e.value.prefixCls}-loading-button`),
48
51
  action: "onCancel"
49
52
  }), {
50
53
  default: () => [l(d, {
51
- className: `${n.value.prefixCls}-loading-icon`
54
+ className: `${e.value.prefixCls}-loading-icon`
52
55
  }, null)]
53
56
  });
54
57
  }
@@ -1,11 +1,11 @@
1
- import { defineComponent as t, mergeDefaults as o, createVNode as l, mergeProps as r } from "vue";
1
+ import { defineComponent as o, mergeDefaults as t, createVNode as e, mergeProps as u } from "vue";
2
2
  import { a } from "../../attachments/Attachments2.mjs";
3
- import u from "./ActionButton/index.mjs";
4
- import { A as s } from "../../attachments/FileList/FileList2.mjs";
5
- const f = /* @__PURE__ */ t({
3
+ import r from "./ActionButton/index.mjs";
4
+ import { A as d } from "../../attachments/FileList/FileList2.mjs";
5
+ const c = /* @__PURE__ */ o({
6
6
  name: "AXSenderLoadingButton",
7
7
  __name: "SendButton",
8
- props: o({
8
+ props: t({
9
9
  prefixCls: null,
10
10
  type: null,
11
11
  htmlType: null,
@@ -21,25 +21,28 @@ const f = /* @__PURE__ */ t({
21
21
  target: null,
22
22
  title: null,
23
23
  onClick: null,
24
- onMousedown: null
24
+ onMousedown: null,
25
+ audioIcon: null,
26
+ audioDisabledIcon: null,
27
+ audioRecordingIcon: null
25
28
  }, {
26
29
  type: "primary",
27
30
  shape: "circle",
28
31
  disabled: void 0
29
32
  }),
30
- setup(e) {
31
- const n = a(e, ["type", "shape", "disabled"]);
32
- return () => l(u, r({
33
- type: e.type,
34
- shape: e.shape,
35
- disabled: e.disabled
33
+ setup(l) {
34
+ const n = a(l, ["type", "shape", "disabled"]);
35
+ return () => e(r, u({
36
+ type: l.type,
37
+ shape: l.shape,
38
+ disabled: l.disabled
36
39
  }, n, {
37
40
  action: "onSend"
38
41
  }), {
39
- default: () => [l(s, null, null)]
42
+ default: () => [e(d, null, null)]
40
43
  });
41
44
  }
42
45
  });
43
46
  export {
44
- f as default
47
+ c as default
45
48
  };