@progress/kendo-react-grid 14.0.0-develop.1 → 14.0.0-develop.3

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 (72) hide show
  1. package/columnMenu/GridColumnMenuFilter.mjs +2 -2
  2. package/components/noRecords/GridNoRecordsContainer.mjs +1 -1
  3. package/constants/index.mjs +2 -2
  4. package/dist/cdn/js/kendo-react-grid.js +1 -1
  5. package/hooks/index.d.ts +8 -0
  6. package/hooks/useGridAIRequest.d.ts +150 -0
  7. package/hooks/useGridAIRequest.js +8 -0
  8. package/hooks/useGridAIRequest.mjs +93 -0
  9. package/index.d.mts +3 -1
  10. package/index.d.ts +3 -1
  11. package/index.js +1 -1
  12. package/index.mjs +56 -50
  13. package/messages/index.d.ts +75 -0
  14. package/messages/index.js +2 -2
  15. package/messages/index.mjs +108 -78
  16. package/package-metadata.js +1 -1
  17. package/package-metadata.mjs +1 -1
  18. package/package.json +19 -19
  19. package/toolbar-tools/GridToolbarAIAssistant.d.ts +2 -34
  20. package/toolbar-tools/GridToolbarAIAssistant.js +2 -2
  21. package/toolbar-tools/GridToolbarAIAssistant.mjs +167 -164
  22. package/toolbar-tools/GridToolbarFilter.mjs +5 -5
  23. package/toolbar-tools/smartbox/SegmentedControl.d.ts +13 -0
  24. package/toolbar-tools/smartbox/SegmentedControl.js +8 -0
  25. package/toolbar-tools/smartbox/SegmentedControl.mjs +109 -0
  26. package/toolbar-tools/smartbox/SmartBox.d.ts +20 -0
  27. package/toolbar-tools/smartbox/SmartBox.js +8 -0
  28. package/toolbar-tools/smartbox/SmartBox.mjs +380 -0
  29. package/toolbar-tools/smartbox/defaultConfigs.d.ts +30 -0
  30. package/toolbar-tools/smartbox/defaultConfigs.js +8 -0
  31. package/toolbar-tools/smartbox/defaultConfigs.mjs +36 -0
  32. package/toolbar-tools/smartbox/hooks/index.d.ts +17 -0
  33. package/toolbar-tools/smartbox/hooks/useDebounce.d.ts +11 -0
  34. package/toolbar-tools/smartbox/hooks/useDebounce.js +9 -0
  35. package/toolbar-tools/smartbox/hooks/useDebounce.mjs +21 -0
  36. package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.d.ts +251 -0
  37. package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.js +9 -0
  38. package/toolbar-tools/smartbox/hooks/useSmartBoxGridState.mjs +68 -0
  39. package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.d.ts +80 -0
  40. package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.js +9 -0
  41. package/toolbar-tools/smartbox/hooks/useSmartBoxHistory.mjs +66 -0
  42. package/toolbar-tools/smartbox/hooks/useSmartBoxInput.d.ts +96 -0
  43. package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.d.ts +93 -0
  44. package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.js +9 -0
  45. package/toolbar-tools/smartbox/hooks/useSmartBoxLabels.mjs +61 -0
  46. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.d.ts +163 -0
  47. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.js +9 -0
  48. package/toolbar-tools/smartbox/hooks/useSmartBoxListData.mjs +102 -0
  49. package/toolbar-tools/smartbox/hooks/useSmartBoxModes.d.ts +115 -0
  50. package/toolbar-tools/smartbox/hooks/useSmartBoxModes.js +9 -0
  51. package/toolbar-tools/smartbox/hooks/useSmartBoxModes.mjs +65 -0
  52. package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.d.ts +56 -0
  53. package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.js +9 -0
  54. package/toolbar-tools/smartbox/hooks/useSmartBoxPopup.mjs +25 -0
  55. package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.d.ts +82 -0
  56. package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.js +9 -0
  57. package/toolbar-tools/smartbox/hooks/useSmartBoxSearch.mjs +67 -0
  58. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.d.ts +70 -0
  59. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.js +9 -0
  60. package/toolbar-tools/smartbox/hooks/useSmartBoxSegmentedControl.mjs +57 -0
  61. package/toolbar-tools/smartbox/index.d.ts +10 -0
  62. package/toolbar-tools/smartbox/interfaces/SearchTypes.d.ts +45 -0
  63. package/toolbar-tools/smartbox/interfaces/SegmentedControlTypes.d.ts +66 -0
  64. package/toolbar-tools/smartbox/interfaces/SmartBoxTypes.d.ts +461 -0
  65. package/toolbar-tools/smartbox/interfaces/index.d.ts +11 -0
  66. package/toolbar-tools/smartbox/interfaces/utilTypes.d.ts +25 -0
  67. package/toolbar-tools/smartbox/listItemRenders.d.ts +165 -0
  68. package/toolbar-tools/smartbox/listItemRenders.js +8 -0
  69. package/toolbar-tools/smartbox/listItemRenders.mjs +68 -0
  70. package/toolbar-tools/smartbox/utils.d.ts +14 -0
  71. package/toolbar-tools/smartbox/utils.js +8 -0
  72. package/toolbar-tools/smartbox/utils.mjs +14 -0
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import * as e from "react";
9
+ import { IconWrap as o } from "@progress/kendo-react-common";
10
+ import { checkIcon as u, fileClockOutlineIcon as x } from "@progress/kendo-svg-icons";
11
+ import { useLocalization as E } from "@progress/kendo-react-intl";
12
+ import { smartBoxNoPreviousPrompts as c, messages as m, smartBoxNoPreviousSearches as i } from "../../messages/index.mjs";
13
+ function g({
14
+ historyItemRender: n,
15
+ promptSuggestionRender: a,
16
+ handleListItemClick: s
17
+ }) {
18
+ return (r, l) => {
19
+ const t = l.dataItem;
20
+ return t.isHistoryItem && n ? n(
21
+ { text: t.text, timestamp: t.timestamp },
22
+ () => s(t.text)
23
+ ) : !t.isHistoryItem && a ? a(t.text, () => s(t.text)) : e.cloneElement(
24
+ r,
25
+ {
26
+ ...r.props,
27
+ title: t.text,
28
+ onMouseDown: (p) => p.preventDefault()
29
+ },
30
+ /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "k-list-item-text" }, t.text), t.description && /* @__PURE__ */ e.createElement("span", { className: "k-list-item-description" }, t.description))
31
+ );
32
+ };
33
+ }
34
+ function I(n, a) {
35
+ const s = a.dataItem;
36
+ return e.cloneElement(
37
+ n,
38
+ {
39
+ ...n.props,
40
+ onMouseDown: (r) => r.preventDefault()
41
+ },
42
+ /* @__PURE__ */ e.createElement(e.Fragment, null, s.selected && /* @__PURE__ */ e.createElement("span", { className: "k-list-item-icon-wrapper" }, /* @__PURE__ */ e.createElement(o, { className: "k-list-item-icon k-smart-box-check-icon", icon: u })), /* @__PURE__ */ e.createElement("span", { className: "k-list-item-text" }, s.text), /* @__PURE__ */ e.createElement("span", { className: "k-list-item-description" }, s.description))
43
+ );
44
+ }
45
+ function v(n, a) {
46
+ const s = a.groupItem, r = s == null ? void 0 : s.groupSvgIcon;
47
+ return e.cloneElement(
48
+ n,
49
+ n.props,
50
+ /* @__PURE__ */ e.createElement(e.Fragment, null, r && /* @__PURE__ */ e.createElement("span", { className: "k-list-item-icon-wrapper" }, /* @__PURE__ */ e.createElement(o, { className: "k-list-item-icon", icon: r })), /* @__PURE__ */ e.createElement("span", { className: "k-list-item-text" }, a.group))
51
+ );
52
+ }
53
+ function D({ selectedView: n }) {
54
+ const a = E();
55
+ return /* @__PURE__ */ e.createElement("span", { className: "k-no-data k-smart-box-no-data" }, /* @__PURE__ */ e.createElement(o, { icon: x, size: "xxxlarge" }), /* @__PURE__ */ e.createElement("span", null, n === "aiAssistant" ? a.toLanguageString(
56
+ c,
57
+ m[c]
58
+ ) : a.toLanguageString(
59
+ i,
60
+ m[i]
61
+ )));
62
+ }
63
+ export {
64
+ D as NoDataRender,
65
+ g as createListItemRender,
66
+ v as listGroupHeaderRender,
67
+ I as searchModeItemRender
68
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { GridSmartBoxHistoryProps } from './interfaces/utilTypes.js';
9
+ /**
10
+ * Normalizes history settings from various input formats.
11
+ *
12
+ * @hidden
13
+ */
14
+ export declare function normalizeHistorySettings(modeHistory: boolean | GridSmartBoxHistoryProps | undefined): GridSmartBoxHistoryProps | null;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./defaultConfigs.js");function r(t){return t===!0||t===void 0?e.defaultHistoryProps:t===!1?null:{...e.defaultHistoryProps,...t}}exports.normalizeHistorySettings=r;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { defaultHistoryProps as t } from "./defaultConfigs.mjs";
9
+ function u(r) {
10
+ return r === !0 || r === void 0 ? t : r === !1 ? null : { ...t, ...r };
11
+ }
12
+ export {
13
+ u as normalizeHistorySettings
14
+ };