@progress/kendo-react-grid 13.1.0-develop.3 → 13.1.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.
@@ -6,67 +6,77 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as e from "react";
9
- import { promptViewDefaults as l, AIPrompt as D, outputViewDefaults as g, AIPromptView as q, AIPromptOutputView as z } from "@progress/kendo-react-conversational-ui";
9
+ import { promptViewDefaults as l, AIPrompt as R, outputViewDefaults as g, AIPromptView as D, AIPromptOutputView as q } from "@progress/kendo-react-conversational-ui";
10
10
  import { Button as L } from "@progress/kendo-react-buttons";
11
11
  import { TextArea as O } from "@progress/kendo-react-inputs";
12
12
  import { tableWizardIcon as B } from "@progress/kendo-svg-icons";
13
13
  import { toolbarAIApply as a, messages as d } from "../../messages/index.mjs";
14
- import { useLocalization as T } from "@progress/kendo-react-intl";
15
- const H = (s) => {
16
- const { responseContent: o } = s, r = o.split(`
14
+ import { useLocalization as H } from "@progress/kendo-react-intl";
15
+ const T = (i) => {
16
+ const { responseContent: o } = i, r = o.split(`
17
17
  `);
18
- return /* @__PURE__ */ e.createElement("div", { className: "k-card-body" }, r.map((n, i) => /* @__PURE__ */ e.createElement("div", { key: n.trim() + i, className: "k-card-text" }, n)));
19
- }, J = (s) => {
18
+ return /* @__PURE__ */ e.createElement("div", { className: "k-card-body" }, r.map((n, s) => /* @__PURE__ */ e.createElement("div", { key: n.trim() + s, className: "k-card-text" }, n)));
19
+ }, J = (i) => {
20
20
  const {
21
21
  activeView: o,
22
22
  onActiveViewChange: r,
23
23
  toolbarItems: n,
24
- outputs: i,
24
+ outputs: s,
25
25
  promptValue: f,
26
26
  promptInput: w,
27
- generateButton: A,
28
- onCopy: y,
29
- onOutputRating: C,
27
+ generateButton: y,
28
+ onCopy: A,
29
+ onOutputRating: h,
30
30
  onPromptRequest: u,
31
- suggestionsList: I,
32
- outputCard: V,
33
- promptPlaceHolder: h,
34
- streaming: b,
35
- loading: E,
31
+ suggestionsList: x,
32
+ outputCard: C,
33
+ promptPlaceHolder: I,
34
+ streaming: V,
35
+ loading: b,
36
36
  onCancel: v,
37
37
  onClose: p,
38
- enableSpeechToText: x
39
- } = s, m = T(), [P, c] = e.useState(l.name), k = (t, K) => {
38
+ enableSpeechToText: E
39
+ } = i, m = H(), [S, c] = e.useState(l.name), P = (t, K) => {
40
40
  t && (u && u(t), c(g.name));
41
- }, R = (t) => {
41
+ }, k = (t) => {
42
42
  r && r(t), c(t);
43
- }, S = (t) => {
43
+ }, z = (t) => {
44
44
  t.key === "Escape" && p && p();
45
45
  };
46
46
  return e.useEffect(() => {
47
47
  const t = document.querySelector(".k-prompt-view .k-textarea textarea");
48
48
  t && t.focus();
49
49
  }, []), /* @__PURE__ */ e.createElement(
50
- D,
50
+ R,
51
51
  {
52
52
  style: { maxHeight: "100%" },
53
- activeView: o != null ? o : P,
54
- onActiveViewChange: R,
55
- onPromptRequest: k,
53
+ activeView: o != null ? o : S,
54
+ onActiveViewChange: k,
55
+ onPromptRequest: P,
56
56
  toolbarItems: n || [l, g],
57
- streaming: b,
58
- loading: E,
57
+ streaming: V,
58
+ loading: b,
59
59
  suggestionsView: "modern",
60
60
  onCancel: v,
61
- onKeyDown: S
61
+ onKeyDown: z
62
62
  },
63
63
  /* @__PURE__ */ e.createElement(
64
- q,
64
+ D,
65
65
  {
66
- promptSuggestions: I,
66
+ promptSuggestions: x,
67
67
  promptValue: f,
68
- promptInput: w || /* @__PURE__ */ e.createElement(O, { placeholder: h, rows: 2 }),
69
- generateButton: A || /* @__PURE__ */ e.createElement(
68
+ promptInput: w || /* @__PURE__ */ e.createElement(
69
+ O,
70
+ {
71
+ flow: "vertical",
72
+ resizable: "none",
73
+ autoSize: !0,
74
+ textareaStyle: { maxHeight: "110px" },
75
+ placeholder: I,
76
+ rows: 2
77
+ }
78
+ ),
79
+ generateButton: y || /* @__PURE__ */ e.createElement(
70
80
  L,
71
81
  {
72
82
  svgIcon: B,
@@ -76,17 +86,17 @@ const H = (s) => {
76
86
  },
77
87
  m.toLanguageString(a, d[a])
78
88
  ),
79
- enableSpeechToText: x
89
+ enableSpeechToText: E
80
90
  }
81
91
  ),
82
92
  /* @__PURE__ */ e.createElement(
83
- z,
93
+ q,
84
94
  {
85
- outputs: i,
95
+ outputs: s,
86
96
  showOutputRating: !0,
87
- onCopy: y,
88
- onOutputRating: C,
89
- outputCard: V || { body: H }
97
+ onCopy: A,
98
+ onOutputRating: h,
99
+ outputCard: C || { body: T }
90
100
  }
91
101
  )
92
102
  );