devextreme-react 23.2.2-beta → 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 +2 -2
- package/cjs/action-sheet.d.ts +2 -2
- package/cjs/action-sheet.js +2 -2
- package/cjs/autocomplete.d.ts +2 -2
- package/cjs/autocomplete.js +2 -2
- package/cjs/bar-gauge.d.ts +6 -6
- package/cjs/bar-gauge.js +2 -2
- package/cjs/box.d.ts +2 -2
- package/cjs/box.js +2 -2
- package/cjs/bullet.d.ts +4 -4
- package/cjs/bullet.js +2 -2
- package/cjs/button-group.d.ts +2 -2
- package/cjs/button-group.js +2 -2
- package/cjs/button.d.ts +2 -2
- package/cjs/button.js +2 -2
- package/cjs/calendar.d.ts +4 -4
- package/cjs/calendar.js +18 -2
- package/cjs/chart.d.ts +75 -75
- package/cjs/chart.js +2 -2
- package/cjs/check-box.d.ts +2 -2
- package/cjs/check-box.js +2 -2
- package/cjs/circular-gauge.d.ts +4 -4
- package/cjs/circular-gauge.js +2 -2
- package/cjs/color-box.d.ts +2 -2
- package/cjs/color-box.js +2 -2
- package/cjs/common/charts.d.ts +2 -2
- 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 +2 -2
- package/cjs/core/component-base.d.ts +3 -2
- package/cjs/core/component-base.js +11 -9
- 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 +2 -2
- package/cjs/core/helpers.js +2 -2
- package/cjs/core/nested-option.d.ts +2 -2
- package/cjs/core/nested-option.js +2 -2
- package/cjs/core/options-manager.d.ts +3 -4
- package/cjs/core/options-manager.js +8 -10
- package/cjs/core/template-manager.d.ts +2 -2
- package/cjs/core/template-manager.js +14 -12
- package/cjs/core/template-wrapper.d.ts +2 -2
- package/cjs/core/template-wrapper.js +5 -5
- package/cjs/core/template.d.ts +2 -2
- package/cjs/core/template.js +2 -2
- package/cjs/core/types.d.ts +15 -5
- package/cjs/core/types.js +2 -2
- package/cjs/core/widget-config.d.ts +2 -2
- package/cjs/core/widget-config.js +2 -2
- package/cjs/data-grid.d.ts +20 -20
- package/cjs/data-grid.js +2 -2
- package/cjs/date-box.d.ts +13 -13
- package/cjs/date-box.js +17 -2
- package/cjs/date-range-box.d.ts +17 -17
- package/cjs/date-range-box.js +22 -2
- package/cjs/defer-rendering.d.ts +5 -3
- package/cjs/defer-rendering.js +2 -2
- package/cjs/diagram.d.ts +2 -2
- package/cjs/diagram.js +2 -2
- package/cjs/draggable.d.ts +2 -2
- package/cjs/draggable.js +2 -2
- package/cjs/drawer.d.ts +2 -2
- package/cjs/drawer.js +2 -2
- package/cjs/drop-down-box.d.ts +2 -2
- package/cjs/drop-down-box.js +2 -2
- package/cjs/drop-down-button.d.ts +3 -10
- package/cjs/drop-down-button.js +2 -2
- package/cjs/file-manager.d.ts +2 -2
- package/cjs/file-manager.js +2 -2
- package/cjs/file-uploader.d.ts +2 -2
- package/cjs/file-uploader.js +2 -2
- package/cjs/filter-builder.d.ts +8 -8
- package/cjs/filter-builder.js +2 -2
- package/cjs/form.d.ts +8 -8
- package/cjs/form.js +2 -2
- package/cjs/funnel.d.ts +4 -4
- package/cjs/funnel.js +2 -2
- package/cjs/gallery.d.ts +2 -2
- package/cjs/gallery.js +2 -2
- package/cjs/gantt.d.ts +6 -6
- package/cjs/gantt.js +4 -2
- package/cjs/html-editor.d.ts +2 -2
- package/cjs/html-editor.js +2 -2
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +2 -2
- package/cjs/linear-gauge.d.ts +4 -4
- package/cjs/linear-gauge.js +2 -2
- package/cjs/list.d.ts +2 -2
- package/cjs/list.js +2 -2
- package/cjs/load-indicator.d.ts +2 -2
- package/cjs/load-indicator.js +2 -2
- package/cjs/load-panel.d.ts +2 -2
- package/cjs/load-panel.js +2 -2
- package/cjs/lookup.d.ts +2 -2
- package/cjs/lookup.js +2 -2
- package/cjs/map.d.ts +2 -2
- package/cjs/map.js +2 -2
- package/cjs/menu.d.ts +2 -2
- package/cjs/menu.js +2 -2
- package/cjs/multi-view.d.ts +2 -2
- package/cjs/multi-view.js +2 -2
- package/cjs/number-box.d.ts +4 -4
- package/cjs/number-box.js +2 -2
- package/cjs/pie-chart.d.ts +8 -8
- package/cjs/pie-chart.js +2 -2
- package/cjs/pivot-grid-field-chooser.d.ts +2 -2
- package/cjs/pivot-grid-field-chooser.js +2 -2
- package/cjs/pivot-grid.d.ts +2 -2
- package/cjs/pivot-grid.js +2 -2
- package/cjs/polar-chart.d.ts +51 -50
- package/cjs/polar-chart.js +2 -2
- package/cjs/popover.d.ts +2 -2
- package/cjs/popover.js +2 -2
- package/cjs/popup.d.ts +2 -2
- package/cjs/popup.js +2 -2
- package/cjs/progress-bar.d.ts +2 -2
- package/cjs/progress-bar.js +2 -2
- package/cjs/radio-group.d.ts +2 -2
- package/cjs/radio-group.js +2 -2
- package/cjs/range-selector.d.ts +37 -37
- package/cjs/range-selector.js +2 -2
- package/cjs/range-slider.d.ts +4 -4
- package/cjs/range-slider.js +2 -2
- package/cjs/recurrence-editor.d.ts +2 -2
- package/cjs/recurrence-editor.js +2 -2
- package/cjs/resizable.d.ts +2 -2
- package/cjs/resizable.js +2 -2
- package/cjs/responsive-box.d.ts +2 -2
- package/cjs/responsive-box.js +2 -2
- package/cjs/sankey.d.ts +4 -4
- package/cjs/sankey.js +2 -2
- package/cjs/scheduler.d.ts +5 -5
- package/cjs/scheduler.js +17 -2
- package/cjs/scroll-view.d.ts +2 -2
- package/cjs/scroll-view.js +2 -2
- package/cjs/select-box.d.ts +2 -2
- package/cjs/select-box.js +2 -2
- package/cjs/slider.d.ts +4 -4
- package/cjs/slider.js +2 -2
- package/cjs/sortable.d.ts +2 -2
- package/cjs/sortable.js +2 -2
- package/cjs/sparkline.d.ts +4 -4
- package/cjs/sparkline.js +2 -2
- package/cjs/speed-dial-action.d.ts +2 -2
- package/cjs/speed-dial-action.js +2 -2
- package/cjs/switch.d.ts +2 -2
- package/cjs/switch.js +2 -2
- package/cjs/tab-panel.d.ts +2 -2
- package/cjs/tab-panel.js +2 -2
- package/cjs/tabs.d.ts +2 -2
- package/cjs/tabs.js +2 -2
- package/cjs/tag-box.d.ts +2 -2
- package/cjs/tag-box.js +2 -2
- package/cjs/text-area.d.ts +2 -2
- package/cjs/text-area.js +2 -2
- package/cjs/text-box.d.ts +2 -2
- package/cjs/text-box.js +2 -2
- package/cjs/tile-view.d.ts +2 -2
- package/cjs/tile-view.js +2 -2
- package/cjs/toast.d.ts +2 -2
- package/cjs/toast.js +2 -2
- package/cjs/toolbar.d.ts +2 -2
- package/cjs/toolbar.js +2 -2
- package/cjs/tooltip.d.ts +2 -2
- package/cjs/tooltip.js +2 -2
- package/cjs/tree-list.d.ts +14 -14
- package/cjs/tree-list.js +2 -2
- package/cjs/tree-map.d.ts +4 -4
- package/cjs/tree-map.js +2 -2
- package/cjs/tree-view.d.ts +2 -2
- package/cjs/tree-view.js +2 -2
- package/cjs/validation-group.d.ts +2 -2
- package/cjs/validation-group.js +2 -2
- package/cjs/validation-summary.d.ts +2 -2
- package/cjs/validation-summary.js +2 -2
- package/cjs/validator.d.ts +8 -8
- package/cjs/validator.js +2 -2
- package/cjs/vector-map.d.ts +2 -2
- package/cjs/vector-map.js +2 -2
- package/esm/accordion.js +2 -2
- package/esm/action-sheet.js +2 -2
- package/esm/autocomplete.js +2 -2
- package/esm/bar-gauge.js +2 -2
- package/esm/box.js +2 -2
- package/esm/bullet.js +2 -2
- package/esm/button-group.js +2 -2
- package/esm/button.js +2 -2
- package/esm/calendar.js +18 -2
- package/esm/chart.js +2 -2
- package/esm/check-box.js +2 -2
- package/esm/circular-gauge.js +2 -2
- package/esm/color-box.js +2 -2
- 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 +2 -2
- package/esm/core/component-base.js +11 -9
- 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 +2 -2
- package/esm/core/nested-option.js +2 -2
- package/esm/core/options-manager.js +8 -10
- package/esm/core/template-manager.js +14 -12
- package/esm/core/template-wrapper.js +5 -5
- package/esm/core/template.js +2 -2
- package/esm/core/types.js +2 -2
- package/esm/core/widget-config.js +2 -2
- package/esm/data-grid.js +2 -2
- package/esm/date-box.js +17 -2
- package/esm/date-range-box.js +22 -2
- package/esm/defer-rendering.js +2 -2
- package/esm/diagram.js +2 -2
- package/esm/draggable.js +2 -2
- package/esm/drawer.js +2 -2
- package/esm/drop-down-box.js +2 -2
- package/esm/drop-down-button.js +2 -2
- package/esm/file-manager.js +2 -2
- package/esm/file-uploader.js +2 -2
- package/esm/filter-builder.js +2 -2
- package/esm/form.js +2 -2
- package/esm/funnel.js +2 -2
- package/esm/gallery.js +2 -2
- package/esm/gantt.js +4 -2
- package/esm/html-editor.js +2 -2
- package/esm/index.js +2 -2
- package/esm/linear-gauge.js +2 -2
- package/esm/list.js +2 -2
- package/esm/load-indicator.js +2 -2
- package/esm/load-panel.js +2 -2
- package/esm/lookup.js +2 -2
- package/esm/map.js +2 -2
- package/esm/menu.js +2 -2
- package/esm/multi-view.js +2 -2
- package/esm/number-box.js +2 -2
- package/esm/pie-chart.js +2 -2
- package/esm/pivot-grid-field-chooser.js +2 -2
- package/esm/pivot-grid.js +2 -2
- package/esm/polar-chart.js +2 -2
- package/esm/popover.js +2 -2
- package/esm/popup.js +2 -2
- package/esm/progress-bar.js +2 -2
- package/esm/radio-group.js +2 -2
- package/esm/range-selector.js +2 -2
- package/esm/range-slider.js +2 -2
- package/esm/recurrence-editor.js +2 -2
- package/esm/resizable.js +2 -2
- package/esm/responsive-box.js +2 -2
- package/esm/sankey.js +2 -2
- package/esm/scheduler.js +17 -2
- package/esm/scroll-view.js +2 -2
- package/esm/select-box.js +2 -2
- package/esm/slider.js +2 -2
- package/esm/sortable.js +2 -2
- package/esm/sparkline.js +2 -2
- package/esm/speed-dial-action.js +2 -2
- package/esm/switch.js +2 -2
- package/esm/tab-panel.js +2 -2
- package/esm/tabs.js +2 -2
- package/esm/tag-box.js +2 -2
- package/esm/text-area.js +2 -2
- package/esm/text-box.js +2 -2
- package/esm/tile-view.js +2 -2
- package/esm/toast.js +2 -2
- package/esm/toolbar.js +2 -2
- package/esm/tooltip.js +2 -2
- package/esm/tree-list.js +2 -2
- package/esm/tree-map.js +2 -2
- package/esm/tree-view.js +2 -2
- package/esm/validation-group.js +2 -2
- package/esm/validation-summary.js +2 -2
- package/esm/validator.js +2 -2
- package/esm/vector-map.js +2 -2
- package/package.json +3 -3
package/cjs/tree-map.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
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
|
*
|
|
@@ -127,8 +127,8 @@ declare class Font extends NestedOption<IFontProps> {
|
|
|
127
127
|
}
|
|
128
128
|
declare type IFormatProps = React.PropsWithChildren<{
|
|
129
129
|
currency?: string;
|
|
130
|
-
formatter?: ((value: number |
|
|
131
|
-
parser?: ((value: string) => number |
|
|
130
|
+
formatter?: ((value: number | Date) => string);
|
|
131
|
+
parser?: ((value: string) => number | Date);
|
|
132
132
|
precision?: number;
|
|
133
133
|
type?: "billions" | "currency" | "day" | "decimal" | "exponential" | "fixedPoint" | "largeNumber" | "longDate" | "longTime" | "millions" | "millisecond" | "month" | "monthAndDay" | "monthAndYear" | "percent" | "quarter" | "quarterAndYear" | "shortDate" | "shortTime" | "thousands" | "trillions" | "year" | "dayOfWeek" | "hour" | "longDateLongTime" | "minute" | "second" | "shortDateShortTime";
|
|
134
134
|
useCurrencyAccountingStyle?: boolean;
|
package/cjs/tree-map.js
CHANGED
package/cjs/tree-view.d.ts
CHANGED
package/cjs/tree-view.js
CHANGED
package/cjs/validation-group.js
CHANGED
package/cjs/validator.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
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
|
*
|
|
@@ -162,7 +162,7 @@ declare class NumericRule extends NestedOption<INumericRuleProps> {
|
|
|
162
162
|
declare type IPatternRuleProps = React.PropsWithChildren<{
|
|
163
163
|
ignoreEmptyValue?: boolean;
|
|
164
164
|
message?: string;
|
|
165
|
-
pattern?:
|
|
165
|
+
pattern?: RegExp | string;
|
|
166
166
|
type?: "required" | "numeric" | "range" | "stringLength" | "custom" | "compare" | "pattern" | "email" | "async";
|
|
167
167
|
}>;
|
|
168
168
|
declare class PatternRule extends NestedOption<IPatternRuleProps> {
|
|
@@ -174,9 +174,9 @@ declare class PatternRule extends NestedOption<IPatternRuleProps> {
|
|
|
174
174
|
}
|
|
175
175
|
declare type IRangeRuleProps = React.PropsWithChildren<{
|
|
176
176
|
ignoreEmptyValue?: boolean;
|
|
177
|
-
max?:
|
|
177
|
+
max?: Date | number;
|
|
178
178
|
message?: string;
|
|
179
|
-
min?:
|
|
179
|
+
min?: Date | number;
|
|
180
180
|
reevaluate?: boolean;
|
|
181
181
|
type?: "required" | "numeric" | "range" | "stringLength" | "custom" | "compare" | "pattern" | "email" | "async";
|
|
182
182
|
}>;
|
|
@@ -219,8 +219,8 @@ declare type IValidationRuleProps = React.PropsWithChildren<{
|
|
|
219
219
|
trim?: boolean;
|
|
220
220
|
type?: "required" | "numeric" | "range" | "stringLength" | "custom" | "compare" | "pattern" | "email" | "async";
|
|
221
221
|
ignoreEmptyValue?: boolean;
|
|
222
|
-
max?:
|
|
223
|
-
min?:
|
|
222
|
+
max?: Date | number;
|
|
223
|
+
min?: Date | number;
|
|
224
224
|
reevaluate?: boolean;
|
|
225
225
|
validationCallback?: ((options: {
|
|
226
226
|
column: Record<string, any>;
|
|
@@ -232,7 +232,7 @@ declare type IValidationRuleProps = React.PropsWithChildren<{
|
|
|
232
232
|
}) => boolean);
|
|
233
233
|
comparisonTarget?: (() => any);
|
|
234
234
|
comparisonType?: "!=" | "!==" | "<" | "<=" | "==" | "===" | ">" | ">=";
|
|
235
|
-
pattern?:
|
|
235
|
+
pattern?: RegExp | string;
|
|
236
236
|
}>;
|
|
237
237
|
declare class ValidationRule extends NestedOption<IValidationRuleProps> {
|
|
238
238
|
static OptionName: string;
|
package/cjs/validator.js
CHANGED
package/cjs/vector-map.d.ts
CHANGED
package/cjs/vector-map.js
CHANGED
package/esm/accordion.js
CHANGED
package/esm/action-sheet.js
CHANGED
package/esm/autocomplete.js
CHANGED
package/esm/bar-gauge.js
CHANGED
package/esm/box.js
CHANGED
package/esm/bullet.js
CHANGED
package/esm/button-group.js
CHANGED
package/esm/button.js
CHANGED
package/esm/calendar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
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
|
*
|
|
@@ -90,6 +90,11 @@ Calendar.propTypes = {
|
|
|
90
90
|
hoverStateEnabled: PropTypes.bool,
|
|
91
91
|
isDirty: PropTypes.bool,
|
|
92
92
|
isValid: PropTypes.bool,
|
|
93
|
+
max: PropTypes.oneOfType([
|
|
94
|
+
PropTypes.instanceOf(Date),
|
|
95
|
+
PropTypes.number,
|
|
96
|
+
PropTypes.string
|
|
97
|
+
]),
|
|
93
98
|
maxZoomLevel: PropTypes.oneOfType([
|
|
94
99
|
PropTypes.string,
|
|
95
100
|
PropTypes.oneOf([
|
|
@@ -99,6 +104,11 @@ Calendar.propTypes = {
|
|
|
99
104
|
"year"
|
|
100
105
|
])
|
|
101
106
|
]),
|
|
107
|
+
min: PropTypes.oneOfType([
|
|
108
|
+
PropTypes.instanceOf(Date),
|
|
109
|
+
PropTypes.number,
|
|
110
|
+
PropTypes.string
|
|
111
|
+
]),
|
|
102
112
|
minZoomLevel: PropTypes.oneOfType([
|
|
103
113
|
PropTypes.string,
|
|
104
114
|
PropTypes.oneOf([
|
|
@@ -152,6 +162,12 @@ Calendar.propTypes = {
|
|
|
152
162
|
"pending"
|
|
153
163
|
])
|
|
154
164
|
]),
|
|
165
|
+
value: PropTypes.oneOfType([
|
|
166
|
+
PropTypes.array,
|
|
167
|
+
PropTypes.instanceOf(Date),
|
|
168
|
+
PropTypes.number,
|
|
169
|
+
PropTypes.string
|
|
170
|
+
]),
|
|
155
171
|
visible: PropTypes.bool,
|
|
156
172
|
weekNumberRule: PropTypes.oneOfType([
|
|
157
173
|
PropTypes.string,
|
package/esm/chart.js
CHANGED
package/esm/check-box.js
CHANGED
package/esm/circular-gauge.js
CHANGED
package/esm/color-box.js
CHANGED
package/esm/common/charts.js
CHANGED
package/esm/common/grids.js
CHANGED
package/esm/common/index.js
CHANGED
package/esm/context-menu.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
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
|
*
|
|
@@ -111,9 +111,12 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
ComponentBase.prototype.componentDidUpdate = function (prevProps) {
|
|
114
|
+
var _a;
|
|
114
115
|
this._updateCssClasses(prevProps, this.props);
|
|
115
116
|
var config = this._getConfig();
|
|
116
|
-
this._optionsManager.
|
|
117
|
+
var templateOptions = this._optionsManager.getTemplateOptions(config);
|
|
118
|
+
var dxTemplates = ((_a = this._createDXTemplates) === null || _a === void 0 ? void 0 : _a.call(this, templateOptions)) || {};
|
|
119
|
+
this._optionsManager.update(config, dxTemplates);
|
|
117
120
|
this._scheduleTemplatesUpdate();
|
|
118
121
|
};
|
|
119
122
|
ComponentBase.prototype.componentWillUnmount = function () {
|
|
@@ -135,7 +138,7 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
135
138
|
var options = __assign({ templatesRenderAsynchronously: true }, this._optionsManager.getInitialOptions(config));
|
|
136
139
|
var templateOptions = this._optionsManager.getTemplateOptions(config);
|
|
137
140
|
var dxTemplates = (_a = this._createDXTemplates) === null || _a === void 0 ? void 0 : _a.call(this, templateOptions);
|
|
138
|
-
if (dxTemplates) {
|
|
141
|
+
if (dxTemplates && Object.keys(dxTemplates).length) {
|
|
139
142
|
options = __assign(__assign({}, options), { integrationOptions: {
|
|
140
143
|
templates: dxTemplates,
|
|
141
144
|
} });
|
|
@@ -158,10 +161,7 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
158
161
|
updateFunc(function () {
|
|
159
162
|
var _a;
|
|
160
163
|
_this.guardsUpdateScheduled = false;
|
|
161
|
-
|
|
162
|
-
var templateOptions = _this._optionsManager.getTemplateOptions(config);
|
|
163
|
-
var dxTemplates = ((_a = _this._createDXTemplates) === null || _a === void 0 ? void 0 : _a.call(_this, templateOptions, function () { return scheduleGuards(); })) || {};
|
|
164
|
-
_this._optionsManager.updateTemplates(dxTemplates);
|
|
164
|
+
(_a = _this._updateTemplates) === null || _a === void 0 ? void 0 : _a.call(_this, function () { return scheduleGuards(); });
|
|
165
165
|
});
|
|
166
166
|
unscheduleGuards();
|
|
167
167
|
};
|
|
@@ -221,9 +221,11 @@ var ComponentBase = /** @class */ (function (_super) {
|
|
|
221
221
|
var _a;
|
|
222
222
|
(_a = this.context) === null || _a === void 0 ? void 0 : _a.unlock();
|
|
223
223
|
};
|
|
224
|
-
ComponentBase.prototype._setTemplateManagerHooks = function (
|
|
224
|
+
ComponentBase.prototype._setTemplateManagerHooks = function (_a) {
|
|
225
|
+
var createDXTemplates = _a.createDXTemplates, clearInstantiationModels = _a.clearInstantiationModels, updateTemplates = _a.updateTemplates;
|
|
225
226
|
this._createDXTemplates = createDXTemplates;
|
|
226
227
|
this._clearInstantiationModels = clearInstantiationModels;
|
|
228
|
+
this._updateTemplates = updateTemplates;
|
|
227
229
|
};
|
|
228
230
|
ComponentBase.prototype.renderChildren = function () {
|
|
229
231
|
// @ts-expect-error TS2339
|
package/esm/core/component.js
CHANGED
package/esm/core/config.js
CHANGED
package/esm/core/helpers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 23.2.
|
|
4
|
-
* Build date:
|
|
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
|
*
|
|
@@ -75,7 +75,7 @@ var OptionsManager = /** @class */ (function () {
|
|
|
75
75
|
var config = buildConfig(rootNode, false);
|
|
76
76
|
return config.templates;
|
|
77
77
|
};
|
|
78
|
-
OptionsManager.prototype.update = function (config) {
|
|
78
|
+
OptionsManager.prototype.update = function (config, dxtemplates) {
|
|
79
79
|
var _this = this;
|
|
80
80
|
var changedOptions = [];
|
|
81
81
|
var optionChangedHandler = function (_a) {
|
|
@@ -92,6 +92,11 @@ var OptionsManager = /** @class */ (function () {
|
|
|
92
92
|
changes.removedOptions.forEach(function (optionName) {
|
|
93
93
|
_this.resetOption(optionName);
|
|
94
94
|
});
|
|
95
|
+
if (Object.keys(dxtemplates).length > 0) {
|
|
96
|
+
this.setValue('integrationOptions', {
|
|
97
|
+
templates: dxtemplates,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
95
100
|
Object.keys(changes.options).forEach(function (key) {
|
|
96
101
|
_this.setValue(key, changes.options[key]);
|
|
97
102
|
});
|
|
@@ -108,13 +113,6 @@ var OptionsManager = /** @class */ (function () {
|
|
|
108
113
|
});
|
|
109
114
|
this.instance.endUpdate();
|
|
110
115
|
};
|
|
111
|
-
OptionsManager.prototype.updateTemplates = function (dxtemplates) {
|
|
112
|
-
if (Object.keys(dxtemplates).length > 0) {
|
|
113
|
-
this.setValue('integrationOptions', {
|
|
114
|
-
templates: dxtemplates,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
116
|
OptionsManager.prototype.onOptionChanged = function (e) {
|
|
119
117
|
var _this = this;
|
|
120
118
|
var _a;
|