devextreme-react 21.2.9 → 21.2.10
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.
- package/accordion.d.ts +2 -2
- package/accordion.js +2 -2
- package/action-sheet.d.ts +2 -2
- package/action-sheet.js +2 -2
- package/autocomplete.d.ts +2 -2
- package/autocomplete.js +2 -2
- package/bar-gauge.d.ts +2 -2
- package/bar-gauge.js +2 -2
- package/box.d.ts +2 -2
- package/box.js +2 -2
- package/bullet.d.ts +2 -2
- package/bullet.js +2 -2
- package/button-group.d.ts +2 -2
- package/button-group.js +2 -2
- package/button.d.ts +2 -2
- package/button.js +2 -2
- package/calendar.d.ts +2 -2
- package/calendar.js +2 -2
- package/chart.d.ts +2 -2
- package/chart.js +2 -2
- package/check-box.d.ts +2 -2
- package/check-box.js +2 -2
- package/circular-gauge.d.ts +2 -2
- package/circular-gauge.js +2 -2
- package/color-box.d.ts +2 -2
- package/color-box.js +2 -2
- package/context-menu.d.ts +2 -2
- package/context-menu.js +2 -2
- package/core/component-base.d.ts +2 -2
- package/core/component-base.js +5 -4
- package/core/component.d.ts +2 -2
- package/core/component.js +2 -2
- package/core/config.d.ts +2 -2
- package/core/config.js +2 -2
- package/core/configuration/comparer.d.ts +2 -2
- package/core/configuration/comparer.js +2 -2
- package/core/configuration/config-node.d.ts +2 -2
- package/core/configuration/config-node.js +2 -2
- package/core/configuration/react/element.d.ts +2 -2
- package/core/configuration/react/element.js +2 -2
- package/core/configuration/react/templates.d.ts +2 -2
- package/core/configuration/react/templates.js +2 -2
- package/core/configuration/react/tree.d.ts +2 -2
- package/core/configuration/react/tree.js +2 -2
- package/core/configuration/tree.d.ts +2 -2
- package/core/configuration/tree.js +2 -2
- package/core/configuration/utils.d.ts +2 -2
- package/core/configuration/utils.js +2 -2
- package/core/dx-template.d.ts +2 -2
- package/core/dx-template.js +21 -6
- package/core/extension-component.d.ts +2 -2
- package/core/extension-component.js +2 -2
- package/core/helpers.d.ts +2 -2
- package/core/helpers.js +2 -2
- package/core/nested-option.d.ts +2 -2
- package/core/nested-option.js +2 -2
- package/core/options-manager.d.ts +8 -5
- package/core/options-manager.js +33 -14
- package/core/template-wrapper.d.ts +2 -2
- package/core/template-wrapper.js +2 -2
- package/core/template.d.ts +2 -2
- package/core/template.js +2 -2
- package/core/templates-manager.d.ts +2 -2
- package/core/templates-manager.js +2 -2
- package/core/templates-renderer.d.ts +3 -3
- package/core/templates-renderer.js +7 -4
- package/core/templates-store.d.ts +2 -2
- package/core/templates-store.js +2 -2
- package/core/widget-config.d.ts +2 -2
- package/core/widget-config.js +2 -2
- package/data-grid.d.ts +2 -2
- package/data-grid.js +2 -2
- package/date-box.d.ts +2 -2
- package/date-box.js +2 -2
- package/defer-rendering.d.ts +2 -2
- package/defer-rendering.js +2 -2
- package/diagram.d.ts +2 -2
- package/diagram.js +2 -2
- package/draggable.d.ts +2 -2
- package/draggable.js +2 -2
- package/drawer.d.ts +2 -2
- package/drawer.js +2 -2
- package/drop-down-box.d.ts +2 -2
- package/drop-down-box.js +2 -2
- package/drop-down-button.d.ts +2 -2
- package/drop-down-button.js +2 -2
- package/file-manager.d.ts +2 -2
- package/file-manager.js +2 -2
- package/file-uploader.d.ts +2 -2
- package/file-uploader.js +2 -2
- package/filter-builder.d.ts +2 -2
- package/filter-builder.js +2 -2
- package/form.d.ts +2 -2
- package/form.js +2 -2
- package/funnel.d.ts +2 -2
- package/funnel.js +2 -2
- package/gallery.d.ts +2 -2
- package/gallery.js +2 -2
- package/gantt.d.ts +2 -2
- package/gantt.js +2 -2
- package/html-editor.d.ts +2 -2
- package/html-editor.js +2 -2
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/linear-gauge.d.ts +2 -2
- package/linear-gauge.js +2 -2
- package/list.d.ts +2 -2
- package/list.js +2 -2
- package/load-indicator.d.ts +2 -2
- package/load-indicator.js +2 -2
- package/load-panel.d.ts +2 -2
- package/load-panel.js +2 -2
- package/lookup.d.ts +2 -2
- package/lookup.js +2 -2
- package/map.d.ts +2 -2
- package/map.js +2 -2
- package/menu.d.ts +2 -2
- package/menu.js +2 -2
- package/multi-view.d.ts +2 -2
- package/multi-view.js +2 -2
- package/nav-bar.d.ts +2 -2
- package/nav-bar.js +2 -2
- package/number-box.d.ts +2 -2
- package/number-box.js +2 -2
- package/package.json +1 -1
- package/pie-chart.d.ts +2 -2
- package/pie-chart.js +2 -2
- package/pivot-grid-field-chooser.d.ts +2 -2
- package/pivot-grid-field-chooser.js +2 -2
- package/pivot-grid.d.ts +2 -2
- package/pivot-grid.js +2 -2
- package/polar-chart.d.ts +2 -2
- package/polar-chart.js +2 -2
- package/popover.d.ts +2 -2
- package/popover.js +2 -2
- package/popup.d.ts +2 -2
- package/popup.js +2 -2
- package/progress-bar.d.ts +2 -2
- package/progress-bar.js +2 -2
- package/radio-group.d.ts +2 -2
- package/radio-group.js +2 -2
- package/range-selector.d.ts +2 -2
- package/range-selector.js +2 -2
- package/range-slider.d.ts +2 -2
- package/range-slider.js +2 -2
- package/recurrence-editor.d.ts +2 -2
- package/recurrence-editor.js +2 -2
- package/resizable.d.ts +2 -2
- package/resizable.js +2 -2
- package/responsive-box.d.ts +2 -2
- package/responsive-box.js +2 -2
- package/sankey.d.ts +2 -2
- package/sankey.js +2 -2
- package/scheduler.d.ts +2 -2
- package/scheduler.js +2 -2
- package/scroll-view.d.ts +2 -2
- package/scroll-view.js +2 -2
- package/select-box.d.ts +2 -2
- package/select-box.js +2 -2
- package/slide-out-view.d.ts +2 -2
- package/slide-out-view.js +2 -2
- package/slide-out.d.ts +2 -2
- package/slide-out.js +2 -2
- package/slider.d.ts +2 -2
- package/slider.js +2 -2
- package/sortable.d.ts +2 -2
- package/sortable.js +2 -2
- package/sparkline.d.ts +2 -2
- package/sparkline.js +2 -2
- package/speed-dial-action.d.ts +2 -2
- package/speed-dial-action.js +2 -2
- package/switch.d.ts +2 -2
- package/switch.js +2 -2
- package/tab-panel.d.ts +2 -2
- package/tab-panel.js +2 -2
- package/tabs.d.ts +2 -2
- package/tabs.js +2 -2
- package/tag-box.d.ts +2 -2
- package/tag-box.js +2 -2
- package/text-area.d.ts +2 -2
- package/text-area.js +2 -2
- package/text-box.d.ts +2 -2
- package/text-box.js +2 -2
- package/tile-view.d.ts +2 -2
- package/tile-view.js +5 -5
- package/toast.d.ts +2 -2
- package/toast.js +2 -2
- package/toolbar.d.ts +2 -2
- package/toolbar.js +2 -2
- package/tooltip.d.ts +2 -2
- package/tooltip.js +2 -2
- package/tree-list.d.ts +2 -2
- package/tree-list.js +2 -2
- package/tree-map.d.ts +2 -2
- package/tree-map.js +2 -2
- package/tree-view.d.ts +2 -2
- package/tree-view.js +2 -2
- package/ui/accordion.d.ts +2 -2
- package/ui/accordion.js +2 -2
- package/ui/action-sheet.d.ts +2 -2
- package/ui/action-sheet.js +2 -2
- package/ui/autocomplete.d.ts +2 -2
- package/ui/autocomplete.js +2 -2
- package/ui/bar-gauge.d.ts +2 -2
- package/ui/bar-gauge.js +2 -2
- package/ui/box.d.ts +2 -2
- package/ui/box.js +2 -2
- package/ui/bullet.d.ts +2 -2
- package/ui/bullet.js +2 -2
- package/ui/button-group.d.ts +2 -2
- package/ui/button-group.js +2 -2
- package/ui/button.d.ts +2 -2
- package/ui/button.js +2 -2
- package/ui/calendar.d.ts +2 -2
- package/ui/calendar.js +2 -2
- package/ui/chart.d.ts +2 -2
- package/ui/chart.js +2 -2
- package/ui/check-box.d.ts +2 -2
- package/ui/check-box.js +2 -2
- package/ui/circular-gauge.d.ts +2 -2
- package/ui/circular-gauge.js +2 -2
- package/ui/color-box.d.ts +2 -2
- package/ui/color-box.js +2 -2
- package/ui/context-menu.d.ts +2 -2
- package/ui/context-menu.js +2 -2
- package/ui/data-grid.d.ts +2 -2
- package/ui/data-grid.js +2 -2
- package/ui/date-box.d.ts +2 -2
- package/ui/date-box.js +2 -2
- package/ui/defer-rendering.d.ts +2 -2
- package/ui/defer-rendering.js +2 -2
- package/ui/diagram.d.ts +2 -2
- package/ui/diagram.js +2 -2
- package/ui/draggable.d.ts +2 -2
- package/ui/draggable.js +2 -2
- package/ui/drawer.d.ts +2 -2
- package/ui/drawer.js +2 -2
- package/ui/drop-down-box.d.ts +2 -2
- package/ui/drop-down-box.js +2 -2
- package/ui/drop-down-button.d.ts +2 -2
- package/ui/drop-down-button.js +2 -2
- package/ui/file-manager.d.ts +2 -2
- package/ui/file-manager.js +2 -2
- package/ui/file-uploader.d.ts +2 -2
- package/ui/file-uploader.js +2 -2
- package/ui/filter-builder.d.ts +2 -2
- package/ui/filter-builder.js +2 -2
- package/ui/form.d.ts +2 -2
- package/ui/form.js +2 -2
- package/ui/funnel.d.ts +2 -2
- package/ui/funnel.js +2 -2
- package/ui/gallery.d.ts +2 -2
- package/ui/gallery.js +2 -2
- package/ui/gantt.d.ts +2 -2
- package/ui/gantt.js +2 -2
- package/ui/html-editor.d.ts +2 -2
- package/ui/html-editor.js +2 -2
- package/ui/linear-gauge.d.ts +2 -2
- package/ui/linear-gauge.js +2 -2
- package/ui/list.d.ts +2 -2
- package/ui/list.js +2 -2
- package/ui/load-indicator.d.ts +2 -2
- package/ui/load-indicator.js +2 -2
- package/ui/load-panel.d.ts +2 -2
- package/ui/load-panel.js +2 -2
- package/ui/lookup.d.ts +2 -2
- package/ui/lookup.js +2 -2
- package/ui/map.d.ts +2 -2
- package/ui/map.js +2 -2
- package/ui/menu.d.ts +2 -2
- package/ui/menu.js +2 -2
- package/ui/multi-view.d.ts +2 -2
- package/ui/multi-view.js +2 -2
- package/ui/nav-bar.d.ts +2 -2
- package/ui/nav-bar.js +2 -2
- package/ui/number-box.d.ts +2 -2
- package/ui/number-box.js +2 -2
- package/ui/pie-chart.d.ts +2 -2
- package/ui/pie-chart.js +2 -2
- package/ui/pivot-grid-field-chooser.d.ts +2 -2
- package/ui/pivot-grid-field-chooser.js +2 -2
- package/ui/pivot-grid.d.ts +2 -2
- package/ui/pivot-grid.js +2 -2
- package/ui/polar-chart.d.ts +2 -2
- package/ui/polar-chart.js +2 -2
- package/ui/popover.d.ts +2 -2
- package/ui/popover.js +2 -2
- package/ui/popup.d.ts +2 -2
- package/ui/popup.js +2 -2
- package/ui/progress-bar.d.ts +2 -2
- package/ui/progress-bar.js +2 -2
- package/ui/radio-group.d.ts +2 -2
- package/ui/radio-group.js +2 -2
- package/ui/range-selector.d.ts +2 -2
- package/ui/range-selector.js +2 -2
- package/ui/range-slider.d.ts +2 -2
- package/ui/range-slider.js +2 -2
- package/ui/recurrence-editor.d.ts +2 -2
- package/ui/recurrence-editor.js +2 -2
- package/ui/resizable.d.ts +2 -2
- package/ui/resizable.js +2 -2
- package/ui/responsive-box.d.ts +2 -2
- package/ui/responsive-box.js +2 -2
- package/ui/sankey.d.ts +2 -2
- package/ui/sankey.js +2 -2
- package/ui/scheduler.d.ts +2 -2
- package/ui/scheduler.js +2 -2
- package/ui/scroll-view.d.ts +2 -2
- package/ui/scroll-view.js +2 -2
- package/ui/select-box.d.ts +2 -2
- package/ui/select-box.js +2 -2
- package/ui/slide-out-view.d.ts +2 -2
- package/ui/slide-out-view.js +2 -2
- package/ui/slide-out.d.ts +2 -2
- package/ui/slide-out.js +2 -2
- package/ui/slider.d.ts +2 -2
- package/ui/slider.js +2 -2
- package/ui/sortable.d.ts +2 -2
- package/ui/sortable.js +2 -2
- package/ui/sparkline.d.ts +2 -2
- package/ui/sparkline.js +2 -2
- package/ui/speed-dial-action.d.ts +2 -2
- package/ui/speed-dial-action.js +2 -2
- package/ui/switch.d.ts +2 -2
- package/ui/switch.js +2 -2
- package/ui/tab-panel.d.ts +2 -2
- package/ui/tab-panel.js +2 -2
- package/ui/tabs.d.ts +2 -2
- package/ui/tabs.js +2 -2
- package/ui/tag-box.d.ts +2 -2
- package/ui/tag-box.js +2 -2
- package/ui/text-area.d.ts +2 -2
- package/ui/text-area.js +2 -2
- package/ui/text-box.d.ts +2 -2
- package/ui/text-box.js +2 -2
- package/ui/tile-view.d.ts +2 -2
- package/ui/tile-view.js +2 -2
- package/ui/toast.d.ts +2 -2
- package/ui/toast.js +2 -2
- package/ui/toolbar.d.ts +2 -2
- package/ui/toolbar.js +2 -2
- package/ui/tooltip.d.ts +2 -2
- package/ui/tooltip.js +2 -2
- package/ui/tree-list.d.ts +2 -2
- package/ui/tree-list.js +2 -2
- package/ui/tree-map.d.ts +2 -2
- package/ui/tree-map.js +2 -2
- package/ui/tree-view.d.ts +2 -2
- package/ui/tree-view.js +2 -2
- package/ui/validation-group.d.ts +2 -2
- package/ui/validation-group.js +2 -2
- package/ui/validation-summary.d.ts +2 -2
- package/ui/validation-summary.js +2 -2
- package/ui/validator.d.ts +2 -2
- package/ui/validator.js +2 -2
- package/ui/vector-map.d.ts +2 -2
- package/ui/vector-map.js +2 -2
- package/validation-group.d.ts +2 -2
- package/validation-group.js +2 -2
- package/validation-summary.d.ts +2 -2
- package/validation-summary.js +2 -2
- package/validator.d.ts +2 -2
- package/validator.js +2 -2
- package/vector-map.d.ts +2 -2
- package/vector-map.js +2 -2
package/core/helpers.d.ts
CHANGED
package/core/helpers.js
CHANGED
package/core/nested-option.d.ts
CHANGED
package/core/nested-option.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 21.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 21.2.10
|
|
4
|
+
* Build date: Fri Sep 02 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import TemplatesManager from './templates-manager';
|
|
15
|
-
import { IConfigNode } from './configuration/config-node';
|
|
14
|
+
import type TemplatesManager from './templates-manager';
|
|
15
|
+
import type { IConfigNode } from './configuration/config-node';
|
|
16
|
+
export declare function unscheduleGuards(): void;
|
|
17
|
+
export declare function scheduleGuards(): void;
|
|
16
18
|
declare class OptionsManager {
|
|
17
19
|
private readonly guards;
|
|
18
20
|
private templatesManager;
|
|
@@ -35,7 +37,8 @@ declare class OptionsManager {
|
|
|
35
37
|
private isIndependentEvent;
|
|
36
38
|
private callOptionChangeHandler;
|
|
37
39
|
private wrapOptionValue;
|
|
38
|
-
private
|
|
40
|
+
private addGuard;
|
|
41
|
+
execGuards(): void;
|
|
39
42
|
private resetOption;
|
|
40
43
|
private setValue;
|
|
41
44
|
}
|
package/core/options-manager.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 21.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 21.2.10
|
|
4
|
+
* Build date: Fri Sep 02 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -13,16 +13,31 @@
|
|
|
13
13
|
|
|
14
14
|
"use strict";
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OptionsManager = void 0;
|
|
16
|
+
exports.OptionsManager = exports.scheduleGuards = exports.unscheduleGuards = void 0;
|
|
17
|
+
/* eslint-disable no-restricted-globals */
|
|
17
18
|
var comparer_1 = require("./configuration/comparer");
|
|
18
19
|
var tree_1 = require("./configuration/tree");
|
|
19
20
|
var utils_1 = require("./configuration/utils");
|
|
20
21
|
var helpers_1 = require("./helpers");
|
|
22
|
+
var optionsManagers = new Set();
|
|
23
|
+
var guardTimeoutHandler = -1;
|
|
24
|
+
function unscheduleGuards() {
|
|
25
|
+
clearTimeout(guardTimeoutHandler);
|
|
26
|
+
}
|
|
27
|
+
exports.unscheduleGuards = unscheduleGuards;
|
|
28
|
+
function scheduleGuards() {
|
|
29
|
+
unscheduleGuards();
|
|
30
|
+
guardTimeoutHandler = window.setTimeout(function () {
|
|
31
|
+
optionsManagers.forEach(function (optionManager) { return optionManager.execGuards(); });
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
exports.scheduleGuards = scheduleGuards;
|
|
21
35
|
var OptionsManager = /** @class */ (function () {
|
|
22
36
|
function OptionsManager(templatesManager) {
|
|
23
37
|
this.guards = {};
|
|
24
38
|
this.isUpdating = false;
|
|
25
39
|
this.templatesManager = templatesManager;
|
|
40
|
+
optionsManagers.add(this);
|
|
26
41
|
this.onOptionChanged = this.onOptionChanged.bind(this);
|
|
27
42
|
this.wrapOptionValue = this.wrapOptionValue.bind(this);
|
|
28
43
|
}
|
|
@@ -83,7 +98,8 @@ var OptionsManager = /** @class */ (function () {
|
|
|
83
98
|
changedOptions.forEach(function (_a) {
|
|
84
99
|
var name = _a[0], value = _a[1];
|
|
85
100
|
var currentPropValue = config.options[name];
|
|
86
|
-
if (
|
|
101
|
+
if (Object.prototype.hasOwnProperty.call(config.options, name)
|
|
102
|
+
&& currentPropValue !== value) {
|
|
87
103
|
_this.setValue(name, currentPropValue);
|
|
88
104
|
}
|
|
89
105
|
});
|
|
@@ -107,7 +123,7 @@ var OptionsManager = /** @class */ (function () {
|
|
|
107
123
|
if (value instanceof Array && type === tree_1.ValueType.Array) {
|
|
108
124
|
for (var i = 0; i < value.length; i += 1) {
|
|
109
125
|
if (value[i] !== ((_a = e.value) === null || _a === void 0 ? void 0 : _a[i])) {
|
|
110
|
-
this.
|
|
126
|
+
this.addGuard(e.fullName, value);
|
|
111
127
|
return;
|
|
112
128
|
}
|
|
113
129
|
}
|
|
@@ -118,7 +134,7 @@ var OptionsManager = /** @class */ (function () {
|
|
|
118
134
|
if (value[key] === ((_a = e.value) === null || _a === void 0 ? void 0 : _a[key])) {
|
|
119
135
|
return;
|
|
120
136
|
}
|
|
121
|
-
_this.
|
|
137
|
+
_this.addGuard(utils_1.mergeNameParts(e.fullName, key), value[key]);
|
|
122
138
|
});
|
|
123
139
|
}
|
|
124
140
|
else {
|
|
@@ -130,13 +146,13 @@ var OptionsManager = /** @class */ (function () {
|
|
|
130
146
|
if (valuesAreEqual || valuesAreEqualObjects || this.instance.skipOptionsRollBack) {
|
|
131
147
|
return;
|
|
132
148
|
}
|
|
133
|
-
this.
|
|
149
|
+
this.addGuard(e.fullName, value);
|
|
134
150
|
}
|
|
135
151
|
};
|
|
136
152
|
OptionsManager.prototype.dispose = function () {
|
|
137
153
|
var _this = this;
|
|
154
|
+
optionsManagers.delete(this);
|
|
138
155
|
Object.keys(this.guards).forEach(function (optionName) {
|
|
139
|
-
window.clearTimeout(_this.guards[optionName]);
|
|
140
156
|
delete _this.guards[optionName];
|
|
141
157
|
});
|
|
142
158
|
};
|
|
@@ -181,24 +197,27 @@ var OptionsManager = /** @class */ (function () {
|
|
|
181
197
|
}
|
|
182
198
|
return value;
|
|
183
199
|
};
|
|
184
|
-
OptionsManager.prototype.
|
|
200
|
+
OptionsManager.prototype.addGuard = function (optionName, optionValue) {
|
|
185
201
|
var _this = this;
|
|
186
202
|
if (this.guards[optionName] !== undefined) {
|
|
187
203
|
return;
|
|
188
204
|
}
|
|
189
|
-
var
|
|
205
|
+
var handler = function () {
|
|
190
206
|
_this.setValue(optionName, optionValue);
|
|
191
|
-
window.clearTimeout(guardId);
|
|
192
207
|
delete _this.guards[optionName];
|
|
193
|
-
}
|
|
194
|
-
this.guards[optionName] =
|
|
208
|
+
};
|
|
209
|
+
this.guards[optionName] = handler;
|
|
210
|
+
scheduleGuards();
|
|
211
|
+
};
|
|
212
|
+
OptionsManager.prototype.execGuards = function () {
|
|
213
|
+
Object.values(this.guards)
|
|
214
|
+
.forEach(function (handler) { return handler(); });
|
|
195
215
|
};
|
|
196
216
|
OptionsManager.prototype.resetOption = function (name) {
|
|
197
217
|
this.instance.resetOption(name);
|
|
198
218
|
};
|
|
199
219
|
OptionsManager.prototype.setValue = function (name, value) {
|
|
200
220
|
if (this.guards[name]) {
|
|
201
|
-
window.clearTimeout(this.guards[name]);
|
|
202
221
|
delete this.guards[name];
|
|
203
222
|
}
|
|
204
223
|
this.instance.option(name, this.wrapOptionValue(name, value));
|
package/core/template-wrapper.js
CHANGED
package/core/template.d.ts
CHANGED
package/core/template.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 21.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 21.2.10
|
|
4
|
+
* Build date: Fri Sep 02 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -20,7 +20,7 @@ declare class TemplatesRenderer extends React.PureComponent<{
|
|
|
20
20
|
private mounted;
|
|
21
21
|
componentDidMount(): void;
|
|
22
22
|
componentWillUnmount(): void;
|
|
23
|
-
scheduleUpdate(useDeferUpdate: boolean): void;
|
|
23
|
+
scheduleUpdate(useDeferUpdate: boolean, onRendered?: () => void): void;
|
|
24
24
|
render(): React.ReactNode;
|
|
25
25
|
}
|
|
26
26
|
export { TemplatesRenderer, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 21.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 21.2.10
|
|
4
|
+
* Build date: Fri Sep 02 2022
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -44,7 +44,7 @@ var TemplatesRenderer = /** @class */ (function (_super) {
|
|
|
44
44
|
TemplatesRenderer.prototype.componentWillUnmount = function () {
|
|
45
45
|
this.mounted = false;
|
|
46
46
|
};
|
|
47
|
-
TemplatesRenderer.prototype.scheduleUpdate = function (useDeferUpdate) {
|
|
47
|
+
TemplatesRenderer.prototype.scheduleUpdate = function (useDeferUpdate, onRendered) {
|
|
48
48
|
var _this = this;
|
|
49
49
|
if (this.updateScheduled) {
|
|
50
50
|
return;
|
|
@@ -53,7 +53,10 @@ var TemplatesRenderer = /** @class */ (function (_super) {
|
|
|
53
53
|
var updateFunc = useDeferUpdate ? common_1.deferUpdate : frame_1.requestAnimationFrame;
|
|
54
54
|
updateFunc(function () {
|
|
55
55
|
if (_this.mounted) {
|
|
56
|
-
_this.forceUpdate()
|
|
56
|
+
_this.forceUpdate(function () {
|
|
57
|
+
_this.updateScheduled = false;
|
|
58
|
+
onRendered === null || onRendered === void 0 ? void 0 : onRendered();
|
|
59
|
+
});
|
|
57
60
|
}
|
|
58
61
|
_this.updateScheduled = false;
|
|
59
62
|
});
|
package/core/templates-store.js
CHANGED
package/core/widget-config.d.ts
CHANGED
package/core/widget-config.js
CHANGED
package/data-grid.d.ts
CHANGED
package/data-grid.js
CHANGED
package/date-box.d.ts
CHANGED
package/date-box.js
CHANGED
package/defer-rendering.d.ts
CHANGED
package/defer-rendering.js
CHANGED
package/diagram.d.ts
CHANGED
package/diagram.js
CHANGED
package/draggable.d.ts
CHANGED
package/draggable.js
CHANGED
package/drawer.d.ts
CHANGED
package/drawer.js
CHANGED
package/drop-down-box.d.ts
CHANGED
package/drop-down-box.js
CHANGED
package/drop-down-button.d.ts
CHANGED
package/drop-down-button.js
CHANGED
package/file-manager.d.ts
CHANGED
package/file-manager.js
CHANGED
package/file-uploader.d.ts
CHANGED
package/file-uploader.js
CHANGED
package/filter-builder.d.ts
CHANGED
package/filter-builder.js
CHANGED
package/form.d.ts
CHANGED
package/form.js
CHANGED