devextreme-react 23.2.1-alpha-23255-1813 → 23.2.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.
- package/cjs/accordion.d.ts +2 -2
- package/cjs/accordion.js +3 -2
- package/cjs/action-sheet.d.ts +2 -2
- package/cjs/action-sheet.js +3 -2
- package/cjs/autocomplete.d.ts +2 -2
- package/cjs/autocomplete.js +5 -3
- package/cjs/bar-gauge.d.ts +22 -22
- package/cjs/bar-gauge.js +3 -2
- package/cjs/box.d.ts +3 -3
- package/cjs/box.js +3 -2
- package/cjs/bullet.d.ts +6 -6
- package/cjs/bullet.js +3 -2
- package/cjs/button-group.d.ts +2 -2
- package/cjs/button-group.js +3 -2
- package/cjs/button.d.ts +2 -2
- package/cjs/button.js +3 -2
- package/cjs/calendar.d.ts +4 -4
- package/cjs/calendar.js +19 -2
- package/cjs/chart.d.ts +133 -134
- package/cjs/chart.js +3 -2
- package/cjs/check-box.d.ts +2 -2
- package/cjs/check-box.js +3 -2
- package/cjs/circular-gauge.d.ts +15 -16
- package/cjs/circular-gauge.js +3 -2
- package/cjs/color-box.d.ts +2 -2
- package/cjs/color-box.js +5 -3
- package/cjs/common/charts.d.ts +3 -3
- package/cjs/common/charts.js +2 -2
- package/cjs/common/data/custom-store.d.ts +2 -2
- package/cjs/common/data/custom-store.js +2 -2
- package/cjs/common/grids.d.ts +2 -2
- package/cjs/common/grids.js +2 -2
- package/cjs/common/index.d.ts +2 -2
- package/cjs/common/index.js +2 -2
- package/cjs/context-menu.d.ts +2 -2
- package/cjs/context-menu.js +3 -2
- package/cjs/core/component-base.d.ts +14 -6
- package/cjs/core/component-base.js +84 -33
- package/cjs/core/component.d.ts +2 -2
- package/cjs/core/component.js +2 -2
- package/cjs/core/config.d.ts +2 -2
- package/cjs/core/config.js +2 -2
- package/cjs/core/configuration/comparer.d.ts +2 -2
- package/cjs/core/configuration/comparer.js +2 -2
- package/cjs/core/configuration/config-node.d.ts +2 -2
- package/cjs/core/configuration/config-node.js +2 -2
- package/cjs/core/configuration/react/element.d.ts +2 -2
- package/cjs/core/configuration/react/element.js +2 -2
- package/cjs/core/configuration/react/templates.d.ts +2 -2
- package/cjs/core/configuration/react/templates.js +2 -2
- package/cjs/core/configuration/react/tree.d.ts +2 -2
- package/cjs/core/configuration/react/tree.js +2 -2
- package/cjs/core/configuration/tree.d.ts +2 -2
- package/cjs/core/configuration/tree.js +2 -2
- package/cjs/core/configuration/utils.d.ts +2 -2
- package/cjs/core/configuration/utils.js +2 -2
- package/cjs/core/extension-component.d.ts +2 -2
- package/cjs/core/extension-component.js +2 -2
- package/cjs/core/helpers.d.ts +14 -3
- package/cjs/core/helpers.js +155 -4
- package/cjs/core/nested-option.d.ts +2 -2
- package/cjs/core/nested-option.js +2 -2
- package/cjs/core/options-manager.d.ts +7 -7
- package/cjs/core/options-manager.js +33 -20
- package/cjs/core/template-manager.d.ts +16 -0
- package/cjs/core/template-manager.js +182 -0
- package/cjs/core/template-wrapper.d.ts +4 -29
- package/cjs/core/template-wrapper.js +94 -98
- package/cjs/core/template.d.ts +2 -2
- package/cjs/core/template.js +2 -2
- package/cjs/core/types.d.ts +69 -0
- package/cjs/core/types.js +15 -0
- package/cjs/core/widget-config.d.ts +2 -2
- package/cjs/core/widget-config.js +2 -2
- package/cjs/data-grid.d.ts +23 -30
- package/cjs/data-grid.js +3 -2
- package/cjs/date-box.d.ts +13 -13
- package/cjs/date-box.js +20 -3
- package/cjs/date-range-box.d.ts +17 -17
- package/cjs/date-range-box.js +25 -3
- package/cjs/defer-rendering.d.ts +5 -3
- package/cjs/defer-rendering.js +3 -2
- package/cjs/diagram.d.ts +2 -2
- package/cjs/diagram.js +3 -2
- package/cjs/draggable.d.ts +2 -2
- package/cjs/draggable.js +3 -2
- package/cjs/drawer.d.ts +2 -2
- package/cjs/drawer.js +3 -2
- package/cjs/drop-down-box.d.ts +2 -2
- package/cjs/drop-down-box.js +5 -3
- package/cjs/drop-down-button.d.ts +3 -10
- package/cjs/drop-down-button.js +12 -2
- package/cjs/file-manager.d.ts +2 -2
- package/cjs/file-manager.js +3 -2
- package/cjs/file-uploader.d.ts +2 -2
- package/cjs/file-uploader.js +3 -2
- package/cjs/filter-builder.d.ts +8 -8
- package/cjs/filter-builder.js +3 -2
- package/cjs/form.d.ts +8 -8
- package/cjs/form.js +3 -2
- package/cjs/funnel.d.ts +20 -20
- package/cjs/funnel.js +3 -2
- package/cjs/gallery.d.ts +2 -2
- package/cjs/gallery.js +3 -2
- package/cjs/gantt.d.ts +6 -6
- package/cjs/gantt.js +5 -2
- package/cjs/html-editor.d.ts +2 -2
- package/cjs/html-editor.js +3 -2
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +2 -2
- package/cjs/linear-gauge.d.ts +15 -16
- package/cjs/linear-gauge.js +3 -2
- package/cjs/list.d.ts +3 -3
- package/cjs/list.js +3 -2
- package/cjs/load-indicator.d.ts +2 -2
- package/cjs/load-indicator.js +3 -2
- package/cjs/load-panel.d.ts +2 -2
- package/cjs/load-panel.js +3 -2
- package/cjs/lookup.d.ts +2 -2
- package/cjs/lookup.js +5 -3
- package/cjs/map.d.ts +2 -2
- package/cjs/map.js +3 -2
- package/cjs/menu.d.ts +2 -2
- package/cjs/menu.js +3 -2
- package/cjs/multi-view.d.ts +2 -2
- package/cjs/multi-view.js +3 -2
- package/cjs/number-box.d.ts +4 -4
- package/cjs/number-box.js +5 -3
- package/cjs/pie-chart.d.ts +28 -29
- package/cjs/pie-chart.js +3 -2
- package/cjs/pivot-grid-field-chooser.d.ts +2 -2
- package/cjs/pivot-grid-field-chooser.js +3 -2
- package/cjs/pivot-grid.d.ts +2 -2
- package/cjs/pivot-grid.js +3 -2
- package/cjs/polar-chart.d.ts +95 -95
- package/cjs/polar-chart.js +3 -2
- package/cjs/popover.d.ts +2 -2
- package/cjs/popover.js +3 -2
- package/cjs/popup.d.ts +2 -2
- package/cjs/popup.js +3 -2
- package/cjs/progress-bar.d.ts +2 -2
- package/cjs/progress-bar.js +3 -2
- package/cjs/radio-group.d.ts +2 -2
- package/cjs/radio-group.js +3 -2
- package/cjs/range-selector.d.ts +49 -50
- package/cjs/range-selector.js +3 -2
- package/cjs/range-slider.d.ts +4 -4
- package/cjs/range-slider.js +3 -2
- package/cjs/recurrence-editor.d.ts +2 -2
- package/cjs/recurrence-editor.js +3 -2
- package/cjs/resizable.d.ts +2 -2
- package/cjs/resizable.js +3 -2
- package/cjs/responsive-box.d.ts +4 -4
- package/cjs/responsive-box.js +3 -2
- package/cjs/sankey.d.ts +11 -11
- package/cjs/sankey.js +3 -2
- package/cjs/scheduler.d.ts +6 -5
- package/cjs/scheduler.js +19 -2
- package/cjs/scroll-view.d.ts +2 -2
- package/cjs/scroll-view.js +3 -2
- package/cjs/select-box.d.ts +2 -2
- package/cjs/select-box.js +5 -3
- package/cjs/slider.d.ts +4 -4
- package/cjs/slider.js +3 -2
- package/cjs/sortable.d.ts +2 -2
- package/cjs/sortable.js +3 -2
- package/cjs/sparkline.d.ts +6 -6
- package/cjs/sparkline.js +3 -2
- package/cjs/speed-dial-action.d.ts +2 -2
- package/cjs/speed-dial-action.js +3 -2
- package/cjs/switch.d.ts +2 -2
- package/cjs/switch.js +3 -2
- package/cjs/tab-panel.d.ts +2 -2
- package/cjs/tab-panel.js +3 -2
- package/cjs/tabs.d.ts +2 -2
- package/cjs/tabs.js +3 -2
- package/cjs/tag-box.d.ts +2 -2
- package/cjs/tag-box.js +5 -3
- package/cjs/text-area.d.ts +2 -2
- package/cjs/text-area.js +5 -3
- package/cjs/text-box.d.ts +2 -2
- package/cjs/text-box.js +5 -3
- package/cjs/tile-view.d.ts +2 -2
- package/cjs/tile-view.js +3 -2
- package/cjs/toast.d.ts +2 -2
- package/cjs/toast.js +3 -2
- package/cjs/toolbar.d.ts +2 -2
- package/cjs/toolbar.js +3 -2
- package/cjs/tooltip.d.ts +2 -2
- package/cjs/tooltip.js +3 -2
- package/cjs/tree-list.d.ts +14 -14
- package/cjs/tree-list.js +3 -2
- package/cjs/tree-map.d.ts +15 -15
- package/cjs/tree-map.js +3 -2
- package/cjs/tree-view.d.ts +3 -3
- package/cjs/tree-view.js +3 -2
- package/cjs/validation-group.d.ts +2 -2
- package/cjs/validation-group.js +3 -2
- package/cjs/validation-summary.d.ts +2 -2
- package/cjs/validation-summary.js +3 -2
- package/cjs/validator.d.ts +8 -8
- package/cjs/validator.js +3 -2
- package/cjs/vector-map.d.ts +21 -21
- package/cjs/vector-map.js +3 -2
- package/core/component/package.json +6 -0
- package/core/config/package.json +6 -0
- package/core/extension-component/package.json +6 -0
- package/core/nested-option/package.json +6 -0
- package/esm/accordion.js +3 -2
- package/esm/action-sheet.js +3 -2
- package/esm/autocomplete.js +5 -3
- package/esm/bar-gauge.js +3 -2
- package/esm/box.js +3 -2
- package/esm/bullet.js +3 -2
- package/esm/button-group.js +3 -2
- package/esm/button.js +3 -2
- package/esm/calendar.js +19 -2
- package/esm/chart.js +3 -2
- package/esm/check-box.js +3 -2
- package/esm/circular-gauge.js +3 -2
- package/esm/color-box.js +5 -3
- package/esm/common/charts.js +2 -2
- package/esm/common/data/custom-store.js +2 -2
- package/esm/common/grids.js +2 -2
- package/esm/common/index.js +2 -2
- package/esm/context-menu.js +3 -2
- package/esm/core/component-base.js +85 -31
- package/esm/core/component.js +2 -2
- package/esm/core/config.js +2 -2
- package/esm/core/configuration/comparer.js +2 -2
- package/esm/core/configuration/config-node.js +2 -2
- package/esm/core/configuration/react/element.js +2 -2
- package/esm/core/configuration/react/templates.js +2 -2
- package/esm/core/configuration/react/tree.js +2 -2
- package/esm/core/configuration/tree.js +2 -2
- package/esm/core/configuration/utils.js +2 -2
- package/esm/core/extension-component.js +2 -2
- package/esm/core/helpers.js +154 -3
- package/esm/core/nested-option.js +2 -2
- package/esm/core/options-manager.js +33 -20
- package/esm/core/template-manager.js +159 -0
- package/esm/core/template-wrapper.js +94 -98
- package/esm/core/template.js +2 -2
- package/esm/core/types.js +14 -0
- package/esm/core/widget-config.js +2 -2
- package/esm/data-grid.js +3 -2
- package/esm/date-box.js +20 -3
- package/esm/date-range-box.js +25 -3
- package/esm/defer-rendering.js +3 -2
- package/esm/diagram.js +3 -2
- package/esm/draggable.js +3 -2
- package/esm/drawer.js +3 -2
- package/esm/drop-down-box.js +5 -3
- package/esm/drop-down-button.js +12 -2
- package/esm/file-manager.js +3 -2
- package/esm/file-uploader.js +3 -2
- package/esm/filter-builder.js +3 -2
- package/esm/form.js +3 -2
- package/esm/funnel.js +3 -2
- package/esm/gallery.js +3 -2
- package/esm/gantt.js +5 -2
- package/esm/html-editor.js +3 -2
- package/esm/index.js +2 -2
- package/esm/linear-gauge.js +3 -2
- package/esm/list.js +3 -2
- package/esm/load-indicator.js +3 -2
- package/esm/load-panel.js +3 -2
- package/esm/lookup.js +5 -3
- package/esm/map.js +3 -2
- package/esm/menu.js +3 -2
- package/esm/multi-view.js +3 -2
- package/esm/number-box.js +5 -3
- package/esm/pie-chart.js +3 -2
- package/esm/pivot-grid-field-chooser.js +3 -2
- package/esm/pivot-grid.js +3 -2
- package/esm/polar-chart.js +3 -2
- package/esm/popover.js +3 -2
- package/esm/popup.js +3 -2
- package/esm/progress-bar.js +3 -2
- package/esm/radio-group.js +3 -2
- package/esm/range-selector.js +3 -2
- package/esm/range-slider.js +3 -2
- package/esm/recurrence-editor.js +3 -2
- package/esm/resizable.js +3 -2
- package/esm/responsive-box.js +3 -2
- package/esm/sankey.js +3 -2
- package/esm/scheduler.js +19 -2
- package/esm/scroll-view.js +3 -2
- package/esm/select-box.js +5 -3
- package/esm/slider.js +3 -2
- package/esm/sortable.js +3 -2
- package/esm/sparkline.js +3 -2
- package/esm/speed-dial-action.js +3 -2
- package/esm/switch.js +3 -2
- package/esm/tab-panel.js +3 -2
- package/esm/tabs.js +3 -2
- package/esm/tag-box.js +5 -3
- package/esm/text-area.js +5 -3
- package/esm/text-box.js +5 -3
- package/esm/tile-view.js +3 -2
- package/esm/toast.js +3 -2
- package/esm/toolbar.js +3 -2
- package/esm/tooltip.js +3 -2
- package/esm/tree-list.js +3 -2
- package/esm/tree-map.js +3 -2
- package/esm/tree-view.js +3 -2
- package/esm/validation-group.js +3 -2
- package/esm/validation-summary.js +3 -2
- package/esm/validator.js +3 -2
- package/esm/vector-map.js +3 -2
- package/package.json +6 -7
- package/cjs/core/dx-template.d.ts +0 -26
- package/cjs/core/dx-template.js +0 -99
- package/cjs/core/templates-manager.d.ts +0 -25
- package/cjs/core/templates-manager.js +0 -88
- package/cjs/core/templates-renderer.d.ts +0 -28
- package/cjs/core/templates-renderer.js +0 -103
- package/cjs/core/templates-store.d.ts +0 -24
- package/cjs/core/templates-store.js +0 -50
- package/esm/core/dx-template.js +0 -77
- package/esm/core/templates-manager.js +0 -67
- package/esm/core/templates-renderer.js +0 -81
- package/esm/core/templates-store.js +0 -47
package/cjs/core/config.js
CHANGED
package/cjs/core/helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date: Tue
|
|
3
|
+
* Version: 23.2.3
|
|
4
|
+
* Build date: Tue Nov 28 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
/// <reference types="react" />
|
|
15
|
+
import { TemplateInstantiationModel, UpdateLocker } from './types';
|
|
16
|
+
export declare const RemovalLockerContext: import("react").Context<UpdateLocker>;
|
|
14
17
|
export declare function generateID(): string;
|
|
15
18
|
export declare class DoubleKeyMap<TKey1, TKey2, TValue> {
|
|
16
|
-
private
|
|
19
|
+
private _map;
|
|
17
20
|
set({ key1, key2 }: {
|
|
18
21
|
key1: TKey1;
|
|
19
22
|
key2: TKey2;
|
|
@@ -26,5 +29,13 @@ export declare class DoubleKeyMap<TKey1, TKey2, TValue> {
|
|
|
26
29
|
key1: TKey1;
|
|
27
30
|
key2: TKey2;
|
|
28
31
|
}): void;
|
|
32
|
+
get empty(): boolean;
|
|
33
|
+
shallowCopy(): DoubleKeyMap<TKey1, TKey2, TValue>;
|
|
34
|
+
[Symbol.iterator](): Generator<[{
|
|
35
|
+
key1: TKey1;
|
|
36
|
+
key2: TKey2;
|
|
37
|
+
}, TValue]>;
|
|
38
|
+
}
|
|
39
|
+
export declare class TemplateInstantiationModels extends DoubleKeyMap<any, HTMLElement, TemplateInstantiationModel> {
|
|
29
40
|
}
|
|
30
41
|
export declare function capitalizeFirstLetter(text: string): string;
|
package/cjs/core/helpers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date: Tue
|
|
3
|
+
* Version: 23.2.3
|
|
4
|
+
* Build date: Tue Nov 28 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -12,10 +12,85 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
"use strict";
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
31
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
32
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
33
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
|
+
function step(op) {
|
|
35
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
+
while (_) try {
|
|
37
|
+
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;
|
|
38
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
|
+
switch (op[0]) {
|
|
40
|
+
case 0: case 1: t = op; break;
|
|
41
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
42
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
43
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
44
|
+
default:
|
|
45
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
46
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
47
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
48
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
49
|
+
if (t[2]) _.ops.pop();
|
|
50
|
+
_.trys.pop(); continue;
|
|
51
|
+
}
|
|
52
|
+
op = body.call(thisArg, _);
|
|
53
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
54
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var __values = (this && this.__values) || function(o) {
|
|
58
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
59
|
+
if (m) return m.call(o);
|
|
60
|
+
if (o && typeof o.length === "number") return {
|
|
61
|
+
next: function () {
|
|
62
|
+
if (o && i >= o.length) o = void 0;
|
|
63
|
+
return { value: o && o[i++], done: !o };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
67
|
+
};
|
|
68
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
69
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
70
|
+
if (!m) return o;
|
|
71
|
+
var i = m.call(o), r, ar = [], e;
|
|
72
|
+
try {
|
|
73
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
74
|
+
}
|
|
75
|
+
catch (error) { e = { error: error }; }
|
|
76
|
+
finally {
|
|
77
|
+
try {
|
|
78
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
79
|
+
}
|
|
80
|
+
finally { if (e) throw e.error; }
|
|
81
|
+
}
|
|
82
|
+
return ar;
|
|
83
|
+
};
|
|
15
84
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.capitalizeFirstLetter = exports.DoubleKeyMap = exports.generateID = void 0;
|
|
85
|
+
exports.capitalizeFirstLetter = exports.TemplateInstantiationModels = exports.DoubleKeyMap = exports.generateID = exports.RemovalLockerContext = void 0;
|
|
86
|
+
/* eslint-disable max-classes-per-file, no-restricted-syntax */
|
|
87
|
+
var react_1 = require("react");
|
|
88
|
+
exports.RemovalLockerContext = react_1.createContext({
|
|
89
|
+
lock: function () { return undefined; },
|
|
90
|
+
unlock: function () { return undefined; },
|
|
91
|
+
});
|
|
17
92
|
function generateID() {
|
|
18
|
-
return Math.random().toString(36).
|
|
93
|
+
return Math.random().toString(36).substring(2);
|
|
19
94
|
}
|
|
20
95
|
exports.generateID = generateID;
|
|
21
96
|
var DoubleKeyMap = /** @class */ (function () {
|
|
@@ -47,9 +122,85 @@ var DoubleKeyMap = /** @class */ (function () {
|
|
|
47
122
|
this._map.delete(key1);
|
|
48
123
|
}
|
|
49
124
|
};
|
|
125
|
+
Object.defineProperty(DoubleKeyMap.prototype, "empty", {
|
|
126
|
+
get: function () {
|
|
127
|
+
return this._map.size === 0;
|
|
128
|
+
},
|
|
129
|
+
enumerable: false,
|
|
130
|
+
configurable: true
|
|
131
|
+
});
|
|
132
|
+
DoubleKeyMap.prototype.shallowCopy = function () {
|
|
133
|
+
var copy = new DoubleKeyMap();
|
|
134
|
+
copy._map = this._map;
|
|
135
|
+
return copy;
|
|
136
|
+
};
|
|
137
|
+
DoubleKeyMap.prototype[Symbol.iterator] = function () {
|
|
138
|
+
var _a, _b, _c, key1, innerMap, innerMap_1, innerMap_1_1, _d, key2, value, e_1_1, e_2_1;
|
|
139
|
+
var e_2, _e, e_1, _f;
|
|
140
|
+
return __generator(this, function (_g) {
|
|
141
|
+
switch (_g.label) {
|
|
142
|
+
case 0:
|
|
143
|
+
_g.trys.push([0, 11, 12, 13]);
|
|
144
|
+
_a = __values(this._map), _b = _a.next();
|
|
145
|
+
_g.label = 1;
|
|
146
|
+
case 1:
|
|
147
|
+
if (!!_b.done) return [3 /*break*/, 10];
|
|
148
|
+
_c = __read(_b.value, 2), key1 = _c[0], innerMap = _c[1];
|
|
149
|
+
_g.label = 2;
|
|
150
|
+
case 2:
|
|
151
|
+
_g.trys.push([2, 7, 8, 9]);
|
|
152
|
+
innerMap_1 = (e_1 = void 0, __values(innerMap)), innerMap_1_1 = innerMap_1.next();
|
|
153
|
+
_g.label = 3;
|
|
154
|
+
case 3:
|
|
155
|
+
if (!!innerMap_1_1.done) return [3 /*break*/, 6];
|
|
156
|
+
_d = __read(innerMap_1_1.value, 2), key2 = _d[0], value = _d[1];
|
|
157
|
+
return [4 /*yield*/, [{ key1: key1, key2: key2 }, value]];
|
|
158
|
+
case 4:
|
|
159
|
+
_g.sent();
|
|
160
|
+
_g.label = 5;
|
|
161
|
+
case 5:
|
|
162
|
+
innerMap_1_1 = innerMap_1.next();
|
|
163
|
+
return [3 /*break*/, 3];
|
|
164
|
+
case 6: return [3 /*break*/, 9];
|
|
165
|
+
case 7:
|
|
166
|
+
e_1_1 = _g.sent();
|
|
167
|
+
e_1 = { error: e_1_1 };
|
|
168
|
+
return [3 /*break*/, 9];
|
|
169
|
+
case 8:
|
|
170
|
+
try {
|
|
171
|
+
if (innerMap_1_1 && !innerMap_1_1.done && (_f = innerMap_1.return)) _f.call(innerMap_1);
|
|
172
|
+
}
|
|
173
|
+
finally { if (e_1) throw e_1.error; }
|
|
174
|
+
return [7 /*endfinally*/];
|
|
175
|
+
case 9:
|
|
176
|
+
_b = _a.next();
|
|
177
|
+
return [3 /*break*/, 1];
|
|
178
|
+
case 10: return [3 /*break*/, 13];
|
|
179
|
+
case 11:
|
|
180
|
+
e_2_1 = _g.sent();
|
|
181
|
+
e_2 = { error: e_2_1 };
|
|
182
|
+
return [3 /*break*/, 13];
|
|
183
|
+
case 12:
|
|
184
|
+
try {
|
|
185
|
+
if (_b && !_b.done && (_e = _a.return)) _e.call(_a);
|
|
186
|
+
}
|
|
187
|
+
finally { if (e_2) throw e_2.error; }
|
|
188
|
+
return [7 /*endfinally*/];
|
|
189
|
+
case 13: return [2 /*return*/];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
};
|
|
50
193
|
return DoubleKeyMap;
|
|
51
194
|
}());
|
|
52
195
|
exports.DoubleKeyMap = DoubleKeyMap;
|
|
196
|
+
var TemplateInstantiationModels = /** @class */ (function (_super) {
|
|
197
|
+
__extends(TemplateInstantiationModels, _super);
|
|
198
|
+
function TemplateInstantiationModels() {
|
|
199
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
200
|
+
}
|
|
201
|
+
return TemplateInstantiationModels;
|
|
202
|
+
}(DoubleKeyMap));
|
|
203
|
+
exports.TemplateInstantiationModels = TemplateInstantiationModels;
|
|
53
204
|
function capitalizeFirstLetter(text) {
|
|
54
205
|
if (text.length) {
|
|
55
206
|
return "" + text[0].toUpperCase() + text.substr(1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date: Tue
|
|
3
|
+
* Version: 23.2.3
|
|
4
|
+
* Build date: Tue Nov 28 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,22 +11,22 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import type
|
|
15
|
-
import
|
|
14
|
+
import type { IConfigNode, ITemplate } from './configuration/config-node';
|
|
15
|
+
import { DXTemplateCollection } from './types';
|
|
16
16
|
export declare function unscheduleGuards(): void;
|
|
17
17
|
export declare function scheduleGuards(): void;
|
|
18
18
|
declare class OptionsManager {
|
|
19
19
|
private readonly guards;
|
|
20
|
-
private readonly templatesManager;
|
|
21
20
|
private instance;
|
|
22
21
|
private isUpdating;
|
|
23
22
|
private currentConfig;
|
|
24
23
|
private subscribableOptions;
|
|
25
24
|
private independentEvents;
|
|
26
|
-
constructor(
|
|
25
|
+
constructor();
|
|
27
26
|
setInstance(instance: unknown, config: IConfigNode, subscribableOptions: string[], independentEvents: string[]): void;
|
|
28
27
|
getInitialOptions(rootNode: IConfigNode): Record<string, unknown>;
|
|
29
|
-
|
|
28
|
+
getTemplateOptions(rootNode: IConfigNode): Record<string, ITemplate>;
|
|
29
|
+
update(config: IConfigNode, dxtemplates: DXTemplateCollection): void;
|
|
30
30
|
onOptionChanged(e: {
|
|
31
31
|
name: string;
|
|
32
32
|
fullName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date: Tue
|
|
3
|
+
* Version: 23.2.3
|
|
4
|
+
* Build date: Tue Nov 28 2023
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -12,6 +12,27 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
"use strict";
|
|
15
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
16
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
17
|
+
if (!m) return o;
|
|
18
|
+
var i = m.call(o), r, ar = [], e;
|
|
19
|
+
try {
|
|
20
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
21
|
+
}
|
|
22
|
+
catch (error) { e = { error: error }; }
|
|
23
|
+
finally {
|
|
24
|
+
try {
|
|
25
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
26
|
+
}
|
|
27
|
+
finally { if (e) throw e.error; }
|
|
28
|
+
}
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
32
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
33
|
+
to[j] = from[i];
|
|
34
|
+
return to;
|
|
35
|
+
};
|
|
15
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
37
|
exports.OptionsManager = exports.scheduleGuards = exports.unscheduleGuards = void 0;
|
|
17
38
|
/* eslint-disable no-restricted-globals */
|
|
@@ -33,10 +54,9 @@ function scheduleGuards() {
|
|
|
33
54
|
}
|
|
34
55
|
exports.scheduleGuards = scheduleGuards;
|
|
35
56
|
var OptionsManager = /** @class */ (function () {
|
|
36
|
-
function OptionsManager(
|
|
57
|
+
function OptionsManager() {
|
|
37
58
|
this.guards = {};
|
|
38
59
|
this.isUpdating = false;
|
|
39
|
-
this.templatesManager = templatesManager;
|
|
40
60
|
optionsManagers.add(this);
|
|
41
61
|
this.onOptionChanged = this.onOptionChanged.bind(this);
|
|
42
62
|
this.wrapOptionValue = this.wrapOptionValue.bind(this);
|
|
@@ -50,21 +70,17 @@ var OptionsManager = /** @class */ (function () {
|
|
|
50
70
|
OptionsManager.prototype.getInitialOptions = function (rootNode) {
|
|
51
71
|
var _this = this;
|
|
52
72
|
var config = tree_1.buildConfig(rootNode, false);
|
|
53
|
-
Object.keys(config.templates).forEach(function (key) {
|
|
54
|
-
_this.templatesManager.add(key, config.templates[key]);
|
|
55
|
-
});
|
|
56
73
|
var options = {};
|
|
57
74
|
Object.keys(config.options).forEach(function (key) {
|
|
58
75
|
options[key] = _this.wrapOptionValue(key, config.options[key]);
|
|
59
76
|
});
|
|
60
|
-
if (this.templatesManager.templatesCount > 0) {
|
|
61
|
-
options.integrationOptions = {
|
|
62
|
-
templates: this.templatesManager.templates,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
77
|
return options;
|
|
66
78
|
};
|
|
67
|
-
OptionsManager.prototype.
|
|
79
|
+
OptionsManager.prototype.getTemplateOptions = function (rootNode) {
|
|
80
|
+
var config = tree_1.buildConfig(rootNode, false);
|
|
81
|
+
return config.templates;
|
|
82
|
+
};
|
|
83
|
+
OptionsManager.prototype.update = function (config, dxtemplates) {
|
|
68
84
|
var _this = this;
|
|
69
85
|
var changedOptions = [];
|
|
70
86
|
var optionChangedHandler = function (_a) {
|
|
@@ -81,12 +97,9 @@ var OptionsManager = /** @class */ (function () {
|
|
|
81
97
|
changes.removedOptions.forEach(function (optionName) {
|
|
82
98
|
_this.resetOption(optionName);
|
|
83
99
|
});
|
|
84
|
-
Object.keys(
|
|
85
|
-
_this.templatesManager.add(key, changes.templates[key]);
|
|
86
|
-
});
|
|
87
|
-
if (this.templatesManager.templatesCount > 0) {
|
|
100
|
+
if (Object.keys(dxtemplates).length > 0) {
|
|
88
101
|
this.setValue('integrationOptions', {
|
|
89
|
-
templates:
|
|
102
|
+
templates: dxtemplates,
|
|
90
103
|
});
|
|
91
104
|
}
|
|
92
105
|
Object.keys(changes.options).forEach(function (key) {
|
|
@@ -96,7 +109,7 @@ var OptionsManager = /** @class */ (function () {
|
|
|
96
109
|
this.instance.off('optionChanged', optionChangedHandler);
|
|
97
110
|
this.currentConfig = config;
|
|
98
111
|
changedOptions.forEach(function (_a) {
|
|
99
|
-
var name =
|
|
112
|
+
var _b = __read(_a, 2), name = _b[0], value = _b[1];
|
|
100
113
|
var currentPropValue = config.options[name];
|
|
101
114
|
if (Object.prototype.hasOwnProperty.call(config.options, name)
|
|
102
115
|
&& currentPropValue !== value) {
|
|
@@ -191,7 +204,7 @@ var OptionsManager = /** @class */ (function () {
|
|
|
191
204
|
args[_i] = arguments[_i];
|
|
192
205
|
}
|
|
193
206
|
if (!_this.isUpdating || _this.isIndependentEvent(name)) {
|
|
194
|
-
value.apply(void 0, args);
|
|
207
|
+
value.apply(void 0, __spreadArray([], __read(args)));
|
|
195
208
|
}
|
|
196
209
|
};
|
|
197
210
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* devextreme-react
|
|
3
|
+
* Version: 23.2.3
|
|
4
|
+
* Build date: Tue Nov 28 2023
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
|
+
*
|
|
8
|
+
* This software may be modified and distributed under the terms
|
|
9
|
+
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
10
|
+
*
|
|
11
|
+
* https://github.com/DevExpress/devextreme-react
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { FC } from 'react';
|
|
15
|
+
import { TemplateManagerProps } from './types';
|
|
16
|
+
export declare const TemplateManager: FC<TemplateManagerProps>;
|