devextreme-react 24.1.2-beta → 24.1.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 (312) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/cjs/accordion.d.ts +3 -3
  4. package/cjs/accordion.js +34 -37
  5. package/cjs/action-sheet.d.ts +3 -3
  6. package/cjs/action-sheet.js +34 -37
  7. package/cjs/autocomplete.d.ts +2 -2
  8. package/cjs/autocomplete.js +79 -82
  9. package/cjs/bar-gauge.d.ts +2 -2
  10. package/cjs/bar-gauge.js +97 -100
  11. package/cjs/box.d.ts +3 -3
  12. package/cjs/box.js +34 -37
  13. package/cjs/bullet.d.ts +2 -2
  14. package/cjs/bullet.js +44 -50
  15. package/cjs/button-group.d.ts +2 -2
  16. package/cjs/button-group.js +34 -37
  17. package/cjs/button.d.ts +2 -2
  18. package/cjs/button.js +22 -28
  19. package/cjs/calendar.d.ts +2 -2
  20. package/cjs/calendar.js +27 -31
  21. package/cjs/chart.d.ts +2 -2
  22. package/cjs/chart.js +305 -308
  23. package/cjs/check-box.d.ts +2 -2
  24. package/cjs/check-box.js +24 -29
  25. package/cjs/circular-gauge.d.ts +2 -2
  26. package/cjs/circular-gauge.js +103 -106
  27. package/cjs/color-box.d.ts +2 -2
  28. package/cjs/color-box.js +76 -79
  29. package/cjs/common/charts.d.ts +2 -2
  30. package/cjs/common/charts.js +2 -2
  31. package/cjs/common/data/custom-store.d.ts +2 -2
  32. package/cjs/common/data/custom-store.js +2 -2
  33. package/cjs/common/grids.d.ts +2 -2
  34. package/cjs/common/grids.js +2 -2
  35. package/cjs/common/index.d.ts +2 -2
  36. package/cjs/common/index.js +2 -2
  37. package/cjs/context-menu.d.ts +3 -3
  38. package/cjs/context-menu.js +76 -79
  39. package/cjs/core/component-base.d.ts +2 -2
  40. package/cjs/core/component-base.js +107 -141
  41. package/cjs/core/component.d.ts +2 -2
  42. package/cjs/core/component.js +29 -43
  43. package/cjs/core/config.d.ts +2 -2
  44. package/cjs/core/config.js +4 -15
  45. package/cjs/core/configuration/comparer.d.ts +2 -2
  46. package/cjs/core/configuration/comparer.js +27 -27
  47. package/cjs/core/configuration/config-node.d.ts +2 -2
  48. package/cjs/core/configuration/config-node.js +2 -2
  49. package/cjs/core/configuration/react/element.d.ts +2 -3
  50. package/cjs/core/configuration/react/element.js +10 -10
  51. package/cjs/core/configuration/react/templates.d.ts +2 -2
  52. package/cjs/core/configuration/react/templates.js +2 -2
  53. package/cjs/core/configuration/react/tree.d.ts +2 -2
  54. package/cjs/core/configuration/react/tree.js +33 -40
  55. package/cjs/core/configuration/tree.d.ts +2 -2
  56. package/cjs/core/configuration/tree.js +24 -24
  57. package/cjs/core/configuration/utils.d.ts +2 -2
  58. package/cjs/core/configuration/utils.js +12 -17
  59. package/cjs/core/extension-component.d.ts +2 -2
  60. package/cjs/core/extension-component.js +20 -35
  61. package/cjs/core/helpers.d.ts +2 -3
  62. package/cjs/core/helpers.js +30 -161
  63. package/cjs/core/nested-option.d.ts +2 -2
  64. package/cjs/core/nested-option.js +8 -8
  65. package/cjs/core/options-manager.d.ts +2 -2
  66. package/cjs/core/options-manager.js +85 -128
  67. package/cjs/core/template-manager.d.ts +2 -2
  68. package/cjs/core/template-manager.js +51 -82
  69. package/cjs/core/template-wrapper.d.ts +2 -2
  70. package/cjs/core/template-wrapper.js +32 -49
  71. package/cjs/core/template.d.ts +2 -2
  72. package/cjs/core/template.js +4 -4
  73. package/cjs/core/types.d.ts +2 -2
  74. package/cjs/core/types.js +2 -2
  75. package/cjs/core/widget-config.d.ts +2 -2
  76. package/cjs/core/widget-config.js +21 -22
  77. package/cjs/data-grid.d.ts +3 -3
  78. package/cjs/data-grid.js +290 -292
  79. package/cjs/date-box.d.ts +2 -2
  80. package/cjs/date-box.js +83 -85
  81. package/cjs/date-range-box.d.ts +2 -2
  82. package/cjs/date-range-box.js +82 -85
  83. package/cjs/defer-rendering.d.ts +2 -2
  84. package/cjs/defer-rendering.js +50 -56
  85. package/cjs/diagram.d.ts +16 -16
  86. package/cjs/diagram.js +109 -112
  87. package/cjs/draggable.d.ts +2 -2
  88. package/cjs/draggable.js +29 -34
  89. package/cjs/drawer.d.ts +2 -2
  90. package/cjs/drawer.js +27 -31
  91. package/cjs/drop-down-box.d.ts +2 -2
  92. package/cjs/drop-down-box.js +76 -79
  93. package/cjs/drop-down-button.d.ts +2 -2
  94. package/cjs/drop-down-button.js +68 -73
  95. package/cjs/file-manager.d.ts +2 -2
  96. package/cjs/file-manager.js +59 -65
  97. package/cjs/file-uploader.d.ts +2 -2
  98. package/cjs/file-uploader.js +24 -29
  99. package/cjs/filter-builder.d.ts +2 -2
  100. package/cjs/filter-builder.js +47 -50
  101. package/cjs/form.d.ts +2 -2
  102. package/cjs/form.js +94 -98
  103. package/cjs/funnel.d.ts +2 -2
  104. package/cjs/funnel.js +109 -113
  105. package/cjs/gallery.d.ts +3 -3
  106. package/cjs/gallery.js +34 -37
  107. package/cjs/gantt.d.ts +2 -2
  108. package/cjs/gantt.js +101 -106
  109. package/cjs/html-editor.d.ts +2 -2
  110. package/cjs/html-editor.js +64 -68
  111. package/cjs/index.d.ts +2 -2
  112. package/cjs/index.js +2 -2
  113. package/cjs/linear-gauge.d.ts +2 -2
  114. package/cjs/linear-gauge.js +103 -107
  115. package/cjs/list.d.ts +3 -3
  116. package/cjs/list.js +52 -55
  117. package/cjs/load-indicator.d.ts +2 -2
  118. package/cjs/load-indicator.js +19 -26
  119. package/cjs/load-panel.d.ts +2 -2
  120. package/cjs/load-panel.js +62 -65
  121. package/cjs/lookup.d.ts +2 -2
  122. package/cjs/lookup.js +79 -82
  123. package/cjs/map.d.ts +2 -2
  124. package/cjs/map.js +46 -50
  125. package/cjs/menu.d.ts +3 -3
  126. package/cjs/menu.js +76 -79
  127. package/cjs/multi-view.d.ts +3 -3
  128. package/cjs/multi-view.js +34 -37
  129. package/cjs/number-box.d.ts +2 -2
  130. package/cjs/number-box.js +37 -41
  131. package/cjs/pie-chart.d.ts +2 -2
  132. package/cjs/pie-chart.js +136 -139
  133. package/cjs/pivot-grid-field-chooser.d.ts +2 -2
  134. package/cjs/pivot-grid-field-chooser.js +38 -44
  135. package/cjs/pivot-grid.d.ts +2 -2
  136. package/cjs/pivot-grid.js +62 -68
  137. package/cjs/polar-chart.d.ts +2 -2
  138. package/cjs/polar-chart.js +238 -242
  139. package/cjs/popover.d.ts +2 -2
  140. package/cjs/popover.js +74 -76
  141. package/cjs/popup.d.ts +2 -2
  142. package/cjs/popup.js +68 -70
  143. package/cjs/progress-bar.d.ts +2 -2
  144. package/cjs/progress-bar.js +24 -29
  145. package/cjs/radio-group.d.ts +2 -2
  146. package/cjs/radio-group.js +34 -37
  147. package/cjs/range-selector.d.ts +2 -2
  148. package/cjs/range-selector.js +208 -212
  149. package/cjs/range-slider.d.ts +2 -2
  150. package/cjs/range-slider.js +37 -41
  151. package/cjs/recurrence-editor.d.ts +2 -2
  152. package/cjs/recurrence-editor.js +24 -29
  153. package/cjs/resizable.d.ts +2 -2
  154. package/cjs/resizable.js +24 -29
  155. package/cjs/responsive-box.d.ts +3 -3
  156. package/cjs/responsive-box.js +43 -46
  157. package/cjs/sankey.d.ts +2 -2
  158. package/cjs/sankey.js +85 -89
  159. package/cjs/scheduler.d.ts +2 -2
  160. package/cjs/scheduler.js +46 -49
  161. package/cjs/scroll-view.d.ts +2 -2
  162. package/cjs/scroll-view.js +19 -26
  163. package/cjs/select-box.d.ts +2 -2
  164. package/cjs/select-box.js +79 -82
  165. package/cjs/slider.d.ts +2 -2
  166. package/cjs/slider.js +37 -41
  167. package/cjs/sortable.d.ts +2 -2
  168. package/cjs/sortable.js +29 -34
  169. package/cjs/sparkline.d.ts +2 -2
  170. package/cjs/sparkline.js +44 -50
  171. package/cjs/speed-dial-action.d.ts +2 -2
  172. package/cjs/speed-dial-action.js +19 -26
  173. package/cjs/splitter.d.ts +6 -6
  174. package/cjs/splitter.js +34 -37
  175. package/cjs/switch.d.ts +2 -2
  176. package/cjs/switch.js +24 -29
  177. package/cjs/tab-panel.d.ts +3 -3
  178. package/cjs/tab-panel.js +34 -37
  179. package/cjs/tabs.d.ts +3 -3
  180. package/cjs/tabs.js +34 -37
  181. package/cjs/tag-box.d.ts +2 -2
  182. package/cjs/tag-box.js +79 -82
  183. package/cjs/text-area.d.ts +2 -2
  184. package/cjs/text-area.js +24 -29
  185. package/cjs/text-box.d.ts +2 -2
  186. package/cjs/text-box.js +34 -38
  187. package/cjs/tile-view.d.ts +3 -3
  188. package/cjs/tile-view.js +34 -37
  189. package/cjs/toast.d.ts +2 -2
  190. package/cjs/toast.js +65 -67
  191. package/cjs/toolbar.d.ts +3 -3
  192. package/cjs/toolbar.js +34 -37
  193. package/cjs/tooltip.d.ts +2 -2
  194. package/cjs/tooltip.js +71 -73
  195. package/cjs/tree-list.d.ts +3 -3
  196. package/cjs/tree-list.js +250 -254
  197. package/cjs/tree-map.d.ts +2 -2
  198. package/cjs/tree-map.js +91 -95
  199. package/cjs/tree-view.d.ts +3 -3
  200. package/cjs/tree-view.js +43 -46
  201. package/cjs/validation-group.d.ts +2 -2
  202. package/cjs/validation-group.js +19 -26
  203. package/cjs/validation-summary.d.ts +3 -3
  204. package/cjs/validation-summary.js +34 -37
  205. package/cjs/validator.d.ts +2 -2
  206. package/cjs/validator.js +57 -63
  207. package/cjs/vector-map.d.ts +2 -2
  208. package/cjs/vector-map.js +106 -110
  209. package/esm/accordion.js +29 -32
  210. package/esm/action-sheet.js +29 -32
  211. package/esm/autocomplete.js +74 -77
  212. package/esm/bar-gauge.js +92 -95
  213. package/esm/box.js +29 -32
  214. package/esm/bullet.js +39 -45
  215. package/esm/button-group.js +29 -32
  216. package/esm/button.js +18 -24
  217. package/esm/calendar.js +23 -27
  218. package/esm/chart.js +300 -303
  219. package/esm/check-box.js +20 -25
  220. package/esm/circular-gauge.js +98 -101
  221. package/esm/color-box.js +71 -74
  222. package/esm/common/charts.js +2 -2
  223. package/esm/common/data/custom-store.js +2 -2
  224. package/esm/common/grids.js +2 -2
  225. package/esm/common/index.js +2 -2
  226. package/esm/context-menu.js +71 -74
  227. package/esm/core/component-base.js +94 -131
  228. package/esm/core/component.js +25 -39
  229. package/esm/core/config.js +4 -15
  230. package/esm/core/configuration/comparer.js +25 -25
  231. package/esm/core/configuration/config-node.js +2 -2
  232. package/esm/core/configuration/react/element.js +9 -9
  233. package/esm/core/configuration/react/templates.js +2 -2
  234. package/esm/core/configuration/react/tree.js +28 -35
  235. package/esm/core/configuration/tree.js +23 -23
  236. package/esm/core/configuration/utils.js +12 -17
  237. package/esm/core/extension-component.js +17 -32
  238. package/esm/core/helpers.js +30 -163
  239. package/esm/core/nested-option.js +6 -6
  240. package/esm/core/options-manager.js +81 -124
  241. package/esm/core/template-manager.js +44 -75
  242. package/esm/core/template-wrapper.js +27 -44
  243. package/esm/core/template.js +3 -3
  244. package/esm/core/types.js +2 -2
  245. package/esm/core/widget-config.js +21 -22
  246. package/esm/data-grid.js +285 -287
  247. package/esm/date-box.js +78 -80
  248. package/esm/date-range-box.js +77 -80
  249. package/esm/defer-rendering.js +45 -51
  250. package/esm/diagram.js +104 -107
  251. package/esm/draggable.js +24 -29
  252. package/esm/drawer.js +23 -27
  253. package/esm/drop-down-box.js +71 -74
  254. package/esm/drop-down-button.js +63 -68
  255. package/esm/file-manager.js +54 -60
  256. package/esm/file-uploader.js +20 -25
  257. package/esm/filter-builder.js +42 -45
  258. package/esm/form.js +89 -93
  259. package/esm/funnel.js +104 -108
  260. package/esm/gallery.js +29 -32
  261. package/esm/gantt.js +96 -101
  262. package/esm/html-editor.js +59 -63
  263. package/esm/index.js +2 -2
  264. package/esm/linear-gauge.js +98 -102
  265. package/esm/list.js +47 -50
  266. package/esm/load-indicator.js +15 -22
  267. package/esm/load-panel.js +57 -60
  268. package/esm/lookup.js +74 -77
  269. package/esm/map.js +41 -45
  270. package/esm/menu.js +71 -74
  271. package/esm/multi-view.js +29 -32
  272. package/esm/number-box.js +32 -36
  273. package/esm/pie-chart.js +131 -134
  274. package/esm/pivot-grid-field-chooser.js +33 -39
  275. package/esm/pivot-grid.js +57 -63
  276. package/esm/polar-chart.js +233 -237
  277. package/esm/popover.js +69 -71
  278. package/esm/popup.js +63 -65
  279. package/esm/progress-bar.js +20 -25
  280. package/esm/radio-group.js +29 -32
  281. package/esm/range-selector.js +203 -207
  282. package/esm/range-slider.js +32 -36
  283. package/esm/recurrence-editor.js +20 -25
  284. package/esm/resizable.js +20 -25
  285. package/esm/responsive-box.js +38 -41
  286. package/esm/sankey.js +80 -84
  287. package/esm/scheduler.js +41 -44
  288. package/esm/scroll-view.js +15 -22
  289. package/esm/select-box.js +74 -77
  290. package/esm/slider.js +32 -36
  291. package/esm/sortable.js +24 -29
  292. package/esm/sparkline.js +39 -45
  293. package/esm/speed-dial-action.js +15 -22
  294. package/esm/splitter.js +29 -32
  295. package/esm/switch.js +20 -25
  296. package/esm/tab-panel.js +29 -32
  297. package/esm/tabs.js +29 -32
  298. package/esm/tag-box.js +74 -77
  299. package/esm/text-area.js +20 -25
  300. package/esm/text-box.js +29 -33
  301. package/esm/tile-view.js +29 -32
  302. package/esm/toast.js +60 -62
  303. package/esm/toolbar.js +29 -32
  304. package/esm/tooltip.js +66 -68
  305. package/esm/tree-list.js +245 -249
  306. package/esm/tree-map.js +86 -90
  307. package/esm/tree-view.js +38 -41
  308. package/esm/validation-group.js +15 -22
  309. package/esm/validation-summary.js +29 -32
  310. package/esm/validator.js +52 -58
  311. package/esm/vector-map.js +101 -105
  312. package/package.json +50 -51
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.1.2-beta
4
- * Build date: Mon May 13 2024
3
+ * Version: 24.1.3
4
+ * Build date: Tue Jun 11 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -11,104 +11,32 @@
11
11
  * https://github.com/DevExpress/devextreme-react
12
12
  */
13
13
 
14
- var __extends = (this && this.__extends) || (function () {
15
- var extendStatics = function (d, b) {
16
- extendStatics = Object.setPrototypeOf ||
17
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
19
- return extendStatics(d, b);
20
- };
21
- return function (d, b) {
22
- if (typeof b !== "function" && b !== null)
23
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
24
- extendStatics(d, b);
25
- function __() { this.constructor = d; }
26
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27
- };
28
- })();
29
- var __generator = (this && this.__generator) || function (thisArg, body) {
30
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
31
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
32
- function verb(n) { return function (v) { return step([n, v]); }; }
33
- function step(op) {
34
- if (f) throw new TypeError("Generator is already executing.");
35
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
36
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
37
- if (y = 0, t) op = [op[0] & 2, t.value];
38
- switch (op[0]) {
39
- case 0: case 1: t = op; break;
40
- case 4: _.label++; return { value: op[1], done: false };
41
- case 5: _.label++; y = op[1]; op = [0]; continue;
42
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
43
- default:
44
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
45
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
46
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
47
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
48
- if (t[2]) _.ops.pop();
49
- _.trys.pop(); continue;
50
- }
51
- op = body.call(thisArg, _);
52
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
53
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
54
- }
55
- };
56
- var __values = (this && this.__values) || function(o) {
57
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
58
- if (m) return m.call(o);
59
- if (o && typeof o.length === "number") return {
60
- next: function () {
61
- if (o && i >= o.length) o = void 0;
62
- return { value: o && o[i++], done: !o };
63
- }
64
- };
65
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
66
- };
67
- var __read = (this && this.__read) || function (o, n) {
68
- var m = typeof Symbol === "function" && o[Symbol.iterator];
69
- if (!m) return o;
70
- var i = m.call(o), r, ar = [], e;
71
- try {
72
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
73
- }
74
- catch (error) { e = { error: error }; }
75
- finally {
76
- try {
77
- if (r && !r.done && (m = i["return"])) m.call(i);
78
- }
79
- finally { if (e) throw e.error; }
80
- }
81
- return ar;
82
- };
83
14
  /* eslint-disable max-classes-per-file, no-restricted-syntax */
84
15
  import { createContext } from 'react';
85
- export var RemovalLockerContext = createContext(undefined);
16
+ export const RemovalLockerContext = createContext(undefined);
86
17
  // eslint-disable-next-line @typescript-eslint/no-extra-parens
87
- export var RestoreTreeContext = createContext(undefined);
18
+ export const RestoreTreeContext = createContext(undefined);
88
19
  export function generateID() {
89
20
  return Math.random().toString(36).substring(2);
90
21
  }
91
- var DoubleKeyMap = /** @class */ (function () {
92
- function DoubleKeyMap() {
22
+ export class DoubleKeyMap {
23
+ constructor() {
93
24
  this._map = new Map();
94
25
  }
95
- DoubleKeyMap.prototype.set = function (_a, value) {
96
- var key1 = _a.key1, key2 = _a.key2;
97
- var innerMap = this._map.get(key1);
26
+ set({ key1, key2 }, value) {
27
+ let innerMap = this._map.get(key1);
98
28
  if (!innerMap) {
99
29
  innerMap = new Map();
100
30
  this._map.set(key1, innerMap);
101
31
  }
102
32
  innerMap.set(key2, value);
103
- };
104
- DoubleKeyMap.prototype.get = function (_a) {
105
- var key1 = _a.key1, key2 = _a.key2;
106
- var innerMap = this._map.get(key1);
33
+ }
34
+ get({ key1, key2 }) {
35
+ const innerMap = this._map.get(key1);
107
36
  return innerMap ? innerMap.get(key2) : undefined;
108
- };
109
- DoubleKeyMap.prototype.delete = function (_a) {
110
- var key1 = _a.key1, key2 = _a.key2;
111
- var innerMap = this._map.get(key1);
37
+ }
38
+ delete({ key1, key2 }) {
39
+ const innerMap = this._map.get(key1);
112
40
  if (!innerMap) {
113
41
  return;
114
42
  }
@@ -116,89 +44,28 @@ var DoubleKeyMap = /** @class */ (function () {
116
44
  if (innerMap.size === 0) {
117
45
  this._map.delete(key1);
118
46
  }
119
- };
120
- Object.defineProperty(DoubleKeyMap.prototype, "empty", {
121
- get: function () {
122
- return this._map.size === 0;
123
- },
124
- enumerable: false,
125
- configurable: true
126
- });
127
- DoubleKeyMap.prototype.shallowCopy = function () {
128
- var copy = new DoubleKeyMap();
47
+ }
48
+ get empty() {
49
+ return this._map.size === 0;
50
+ }
51
+ shallowCopy() {
52
+ const copy = new DoubleKeyMap();
129
53
  copy._map = this._map;
130
54
  return copy;
131
- };
132
- DoubleKeyMap.prototype[Symbol.iterator] = function () {
133
- var _a, _b, _c, key1, innerMap, innerMap_1, innerMap_1_1, _d, key2, value, e_1_1, e_2_1;
134
- var e_2, _e, e_1, _f;
135
- return __generator(this, function (_g) {
136
- switch (_g.label) {
137
- case 0:
138
- _g.trys.push([0, 11, 12, 13]);
139
- _a = __values(this._map), _b = _a.next();
140
- _g.label = 1;
141
- case 1:
142
- if (!!_b.done) return [3 /*break*/, 10];
143
- _c = __read(_b.value, 2), key1 = _c[0], innerMap = _c[1];
144
- _g.label = 2;
145
- case 2:
146
- _g.trys.push([2, 7, 8, 9]);
147
- innerMap_1 = (e_1 = void 0, __values(innerMap)), innerMap_1_1 = innerMap_1.next();
148
- _g.label = 3;
149
- case 3:
150
- if (!!innerMap_1_1.done) return [3 /*break*/, 6];
151
- _d = __read(innerMap_1_1.value, 2), key2 = _d[0], value = _d[1];
152
- return [4 /*yield*/, [{ key1: key1, key2: key2 }, value]];
153
- case 4:
154
- _g.sent();
155
- _g.label = 5;
156
- case 5:
157
- innerMap_1_1 = innerMap_1.next();
158
- return [3 /*break*/, 3];
159
- case 6: return [3 /*break*/, 9];
160
- case 7:
161
- e_1_1 = _g.sent();
162
- e_1 = { error: e_1_1 };
163
- return [3 /*break*/, 9];
164
- case 8:
165
- try {
166
- if (innerMap_1_1 && !innerMap_1_1.done && (_f = innerMap_1.return)) _f.call(innerMap_1);
167
- }
168
- finally { if (e_1) throw e_1.error; }
169
- return [7 /*endfinally*/];
170
- case 9:
171
- _b = _a.next();
172
- return [3 /*break*/, 1];
173
- case 10: return [3 /*break*/, 13];
174
- case 11:
175
- e_2_1 = _g.sent();
176
- e_2 = { error: e_2_1 };
177
- return [3 /*break*/, 13];
178
- case 12:
179
- try {
180
- if (_b && !_b.done && (_e = _a.return)) _e.call(_a);
181
- }
182
- finally { if (e_2) throw e_2.error; }
183
- return [7 /*endfinally*/];
184
- case 13: return [2 /*return*/];
55
+ }
56
+ *[Symbol.iterator]() {
57
+ for (const [key1, innerMap] of this._map) {
58
+ for (const [key2, value] of innerMap) {
59
+ yield [{ key1, key2 }, value];
185
60
  }
186
- });
187
- };
188
- return DoubleKeyMap;
189
- }());
190
- export { DoubleKeyMap };
191
- var TemplateInstantiationModels = /** @class */ (function (_super) {
192
- __extends(TemplateInstantiationModels, _super);
193
- function TemplateInstantiationModels() {
194
- return _super !== null && _super.apply(this, arguments) || this;
61
+ }
195
62
  }
196
- return TemplateInstantiationModels;
197
- }(DoubleKeyMap));
198
- export { TemplateInstantiationModels };
63
+ }
64
+ export class TemplateInstantiationModels extends DoubleKeyMap {
65
+ }
199
66
  export function capitalizeFirstLetter(text) {
200
67
  if (text.length) {
201
- return "".concat(text[0].toUpperCase()).concat(text.substr(1));
68
+ return `${text[0].toUpperCase()}${text.substr(1)}`;
202
69
  }
203
70
  return '';
204
71
  }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.1.2-beta
4
- * Build date: Mon May 13 2024
3
+ * Version: 24.1.3
4
+ * Build date: Tue Jun 11 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -13,11 +13,11 @@
13
13
 
14
14
  import * as React from 'react';
15
15
  import { ElementType, getElementInfo } from './configuration/react/element';
16
- var NestedOption = function (props) {
16
+ const NestedOption = (props) => {
17
17
  // @ts-expect-error TS2339
18
- var stateChildren = props.children;
19
- var children = React.Children.map(stateChildren, function (child) {
20
- var childElementInfo = getElementInfo(child);
18
+ const { children: stateChildren } = props;
19
+ const children = React.Children.map(stateChildren, (child) => {
20
+ const childElementInfo = getElementInfo(child);
21
21
  return childElementInfo.type === ElementType.Option ? child : null;
22
22
  });
23
23
  return React.createElement(React.Fragment, {}, children);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * devextreme-react
3
- * Version: 24.1.2-beta
4
- * Build date: Mon May 13 2024
3
+ * Version: 24.1.3
4
+ * Build date: Tue Jun 11 2024
5
5
  *
6
6
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  *
@@ -11,123 +11,92 @@
11
11
  * https://github.com/DevExpress/devextreme-react
12
12
  */
13
13
 
14
- var __read = (this && this.__read) || function (o, n) {
15
- var m = typeof Symbol === "function" && o[Symbol.iterator];
16
- if (!m) return o;
17
- var i = m.call(o), r, ar = [], e;
18
- try {
19
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
20
- }
21
- catch (error) { e = { error: error }; }
22
- finally {
23
- try {
24
- if (r && !r.done && (m = i["return"])) m.call(i);
25
- }
26
- finally { if (e) throw e.error; }
27
- }
28
- return ar;
29
- };
30
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
31
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
32
- if (ar || !(i in from)) {
33
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
34
- ar[i] = from[i];
35
- }
36
- }
37
- return to.concat(ar || Array.prototype.slice.call(from));
38
- };
39
14
  /* eslint-disable no-restricted-globals */
40
15
  import { getChanges } from './configuration/comparer';
41
16
  import { buildConfig, findValue, ValueType } from './configuration/tree';
42
17
  import { mergeNameParts, shallowEquals } from './configuration/utils';
43
18
  import { capitalizeFirstLetter } from './helpers';
44
- var optionsManagers = new Set();
45
- var guardTimeoutHandler = -1;
46
- var innerGuardTimeoutHandler = -1;
19
+ const optionsManagers = new Set();
20
+ let guardTimeoutHandler = -1;
21
+ let innerGuardTimeoutHandler = -1;
47
22
  export function unscheduleGuards() {
48
23
  clearTimeout(guardTimeoutHandler);
49
24
  clearTimeout(innerGuardTimeoutHandler);
50
25
  }
51
26
  export function scheduleGuards() {
52
27
  unscheduleGuards();
53
- guardTimeoutHandler = window.setTimeout(function () {
54
- innerGuardTimeoutHandler = window.setTimeout(function () {
55
- optionsManagers.forEach(function (optionManager) { return optionManager.execGuards(); });
28
+ guardTimeoutHandler = window.setTimeout(() => {
29
+ innerGuardTimeoutHandler = window.setTimeout(() => {
30
+ optionsManagers.forEach((optionManager) => optionManager.execGuards());
56
31
  });
57
32
  });
58
33
  }
59
- var OptionsManager = /** @class */ (function () {
60
- function OptionsManager() {
34
+ class OptionsManager {
35
+ constructor() {
61
36
  this.guards = {};
62
37
  this.isUpdating = false;
63
38
  this.onOptionChanged = this.onOptionChanged.bind(this);
64
39
  this.wrapOptionValue = this.wrapOptionValue.bind(this);
65
40
  }
66
- OptionsManager.prototype.setInstance = function (instance, config, subscribableOptions, independentEvents) {
41
+ setInstance(instance, config, subscribableOptions, independentEvents) {
67
42
  this.instance = instance;
68
43
  this.currentConfig = config;
69
44
  this.subscribableOptions = new Set(subscribableOptions);
70
45
  this.independentEvents = new Set(independentEvents);
71
46
  optionsManagers.add(this);
72
- };
73
- OptionsManager.prototype.getInitialOptions = function (rootNode) {
74
- var _this = this;
75
- var config = buildConfig(rootNode, false);
76
- var options = {};
77
- Object.keys(config.options).forEach(function (key) {
78
- options[key] = _this.wrapOptionValue(key, config.options[key]);
47
+ }
48
+ getInitialOptions(rootNode) {
49
+ const config = buildConfig(rootNode, false);
50
+ const options = {};
51
+ Object.keys(config.options).forEach((key) => {
52
+ options[key] = this.wrapOptionValue(key, config.options[key]);
79
53
  });
80
54
  return options;
81
- };
82
- OptionsManager.prototype.getTemplateOptions = function (rootNode) {
83
- var config = buildConfig(rootNode, false);
55
+ }
56
+ getTemplateOptions(rootNode) {
57
+ const config = buildConfig(rootNode, false);
84
58
  return config.templates;
85
- };
86
- OptionsManager.prototype.update = function (config, dxtemplates) {
87
- var _this = this;
88
- var changedOptions = [];
89
- var optionChangedHandler = function (_a) {
90
- var value = _a.value, fullName = _a.fullName;
59
+ }
60
+ update(config, dxtemplates) {
61
+ const changedOptions = [];
62
+ const optionChangedHandler = ({ value, fullName }) => {
91
63
  changedOptions.push([fullName, value]);
92
64
  };
93
65
  this.instance.on('optionChanged', optionChangedHandler);
94
- var changes = getChanges(config, this.currentConfig);
66
+ const changes = getChanges(config, this.currentConfig);
95
67
  if (!changes.options && !changes.templates && !changes.removedOptions.length) {
96
68
  return;
97
69
  }
98
70
  this.instance.beginUpdate();
99
71
  this.isUpdating = true;
100
- changes.removedOptions.forEach(function (optionName) {
101
- _this.resetOption(optionName);
72
+ changes.removedOptions.forEach((optionName) => {
73
+ this.resetOption(optionName);
102
74
  });
103
75
  if (Object.keys(dxtemplates).length > 0) {
104
76
  this.setValue('integrationOptions', {
105
77
  templates: dxtemplates,
106
78
  });
107
79
  }
108
- Object.keys(changes.options).forEach(function (key) {
109
- _this.setValue(key, changes.options[key]);
80
+ Object.keys(changes.options).forEach((key) => {
81
+ this.setValue(key, changes.options[key]);
110
82
  });
111
83
  this.isUpdating = false;
112
84
  this.instance.off('optionChanged', optionChangedHandler);
113
85
  this.currentConfig = config;
114
- changedOptions.forEach(function (_a) {
115
- var _b = __read(_a, 2), name = _b[0], value = _b[1];
116
- var currentPropValue = config.options[name];
86
+ changedOptions.forEach(([name, value]) => {
87
+ const currentPropValue = config.options[name];
117
88
  if (Object.prototype.hasOwnProperty.call(config.options, name)
118
89
  && currentPropValue !== value) {
119
- _this.setValue(name, currentPropValue);
90
+ this.setValue(name, currentPropValue);
120
91
  }
121
92
  });
122
93
  this.instance.endUpdate();
123
- };
124
- OptionsManager.prototype.onOptionChanged = function (e) {
125
- var _this = this;
126
- var _a;
94
+ }
95
+ onOptionChanged(e) {
127
96
  if (this.isUpdating) {
128
97
  return;
129
98
  }
130
- var valueDescriptor = findValue(this.currentConfig, e.fullName.split('.'));
99
+ let valueDescriptor = findValue(this.currentConfig, e.fullName.split('.'));
131
100
  if (!valueDescriptor || valueDescriptor.value !== e.value) {
132
101
  this.callOptionChangeHandler(e.fullName, e.value);
133
102
  }
@@ -135,27 +104,26 @@ var OptionsManager = /** @class */ (function () {
135
104
  if (!valueDescriptor) {
136
105
  return;
137
106
  }
138
- var value = valueDescriptor.value, type = valueDescriptor.type;
107
+ const { value, type } = valueDescriptor;
139
108
  if (value instanceof Array && type === ValueType.Array) {
140
- for (var i = 0; i < value.length; i += 1) {
141
- if (value[i] !== ((_a = e.value) === null || _a === void 0 ? void 0 : _a[i])) {
109
+ for (let i = 0; i < value.length; i += 1) {
110
+ if (value[i] !== e.value?.[i]) {
142
111
  this.addGuard(e.fullName, value);
143
112
  return;
144
113
  }
145
114
  }
146
115
  }
147
116
  else if (type === ValueType.Complex && value instanceof Object) {
148
- Object.keys(value).forEach(function (key) {
149
- var _a;
150
- if (value[key] === ((_a = e.value) === null || _a === void 0 ? void 0 : _a[key])) {
117
+ Object.keys(value).forEach((key) => {
118
+ if (value[key] === e.value?.[key]) {
151
119
  return;
152
120
  }
153
- _this.addGuard(mergeNameParts(e.fullName, key), value[key]);
121
+ this.addGuard(mergeNameParts(e.fullName, key), value[key]);
154
122
  });
155
123
  }
156
124
  else {
157
- var valuesAreEqual = value === e.value;
158
- var valuesAreEqualObjects = !valuesAreEqual
125
+ const valuesAreEqual = value === e.value;
126
+ const valuesAreEqualObjects = !valuesAreEqual
159
127
  && value instanceof Object
160
128
  && e.value instanceof Object
161
129
  && shallowEquals(value, e.value);
@@ -164,88 +132,77 @@ var OptionsManager = /** @class */ (function () {
164
132
  }
165
133
  this.addGuard(e.fullName, value);
166
134
  }
167
- };
168
- Object.defineProperty(OptionsManager.prototype, "isInstanceSet", {
169
- get: function () {
170
- return !!this.instance;
171
- },
172
- enumerable: false,
173
- configurable: true
174
- });
175
- OptionsManager.prototype.dispose = function () {
176
- var _this = this;
135
+ }
136
+ get isInstanceSet() {
137
+ return !!this.instance;
138
+ }
139
+ dispose() {
177
140
  optionsManagers.delete(this);
178
- Object.keys(this.guards).forEach(function (optionName) {
179
- delete _this.guards[optionName];
141
+ Object.keys(this.guards).forEach((optionName) => {
142
+ delete this.guards[optionName];
180
143
  });
181
144
  this.instance = null;
182
- };
183
- OptionsManager.prototype.isOptionSubscribable = function (optionName) {
145
+ }
146
+ isOptionSubscribable(optionName) {
184
147
  return this.subscribableOptions.has(optionName);
185
- };
186
- OptionsManager.prototype.isIndependentEvent = function (optionName) {
148
+ }
149
+ isIndependentEvent(optionName) {
187
150
  return this.independentEvents.has(optionName);
188
- };
189
- OptionsManager.prototype.callOptionChangeHandler = function (optionName, optionValue) {
151
+ }
152
+ callOptionChangeHandler(optionName, optionValue) {
190
153
  if (!this.isOptionSubscribable(optionName)) {
191
154
  return;
192
155
  }
193
- var parts = optionName.split('.');
194
- var propName = parts[parts.length - 1];
156
+ const parts = optionName.split('.');
157
+ const propName = parts[parts.length - 1];
195
158
  if (propName.startsWith('on')) {
196
159
  return;
197
160
  }
198
- var eventName = "on".concat(capitalizeFirstLetter(propName), "Change");
161
+ const eventName = `on${capitalizeFirstLetter(propName)}Change`;
199
162
  parts[parts.length - 1] = eventName;
200
- var changeEvent = findValue(this.currentConfig, parts);
163
+ const changeEvent = findValue(this.currentConfig, parts);
201
164
  if (!changeEvent) {
202
165
  return;
203
166
  }
204
167
  if (typeof changeEvent.value !== 'function') {
205
- throw new Error("Invalid value for the ".concat(eventName, " property.\n ").concat(eventName, " must be a function."));
168
+ throw new Error(`Invalid value for the ${eventName} property.
169
+ ${eventName} must be a function.`);
206
170
  }
207
171
  changeEvent.value(optionValue);
208
- };
209
- OptionsManager.prototype.wrapOptionValue = function (name, value) {
210
- var _this = this;
172
+ }
173
+ wrapOptionValue(name, value) {
211
174
  if (name.substr(0, 2) === 'on' && typeof value === 'function') {
212
- return function () {
213
- var args = [];
214
- for (var _i = 0; _i < arguments.length; _i++) {
215
- args[_i] = arguments[_i];
216
- }
217
- if (!_this.isUpdating || _this.isIndependentEvent(name)) {
218
- value.apply(void 0, __spreadArray([], __read(args), false));
175
+ return (...args) => {
176
+ if (!this.isUpdating || this.isIndependentEvent(name)) {
177
+ value(...args);
219
178
  }
220
179
  };
221
180
  }
222
181
  return value;
223
- };
224
- OptionsManager.prototype.addGuard = function (optionName, optionValue) {
225
- var _this = this;
182
+ }
183
+ addGuard(optionName, optionValue) {
226
184
  if (this.guards[optionName] !== undefined) {
227
185
  return;
228
186
  }
229
- var handler = function () {
230
- _this.setValue(optionName, optionValue);
231
- delete _this.guards[optionName];
187
+ const handler = () => {
188
+ this.setValue(optionName, optionValue);
189
+ delete this.guards[optionName];
232
190
  };
233
191
  this.guards[optionName] = handler;
234
192
  scheduleGuards();
235
- };
236
- OptionsManager.prototype.execGuards = function () {
193
+ }
194
+ execGuards() {
237
195
  Object.values(this.guards)
238
- .forEach(function (handler) { return handler(); });
239
- };
240
- OptionsManager.prototype.resetOption = function (name) {
196
+ .forEach((handler) => handler());
197
+ }
198
+ resetOption(name) {
241
199
  this.instance.resetOption(name);
242
- };
243
- OptionsManager.prototype.setValue = function (name, value) {
200
+ }
201
+ setValue(name, value) {
244
202
  if (this.guards[name]) {
245
203
  delete this.guards[name];
246
204
  }
247
205
  this.instance.option(name, this.wrapOptionValue(name, value));
248
- };
249
- return OptionsManager;
250
- }());
206
+ }
207
+ }
251
208
  export { OptionsManager, };