devextreme-react 26.1.2-beta → 26.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.
- package/LICENSE +21 -21
- package/README.md +27 -27
- package/cjs/accordion.d.ts +100 -100
- package/cjs/accordion.js +103 -103
- package/cjs/action-sheet.d.ts +79 -79
- package/cjs/action-sheet.js +91 -91
- package/cjs/autocomplete.d.ts +653 -653
- package/cjs/autocomplete.js +347 -347
- package/cjs/bar-gauge.d.ts +698 -698
- package/cjs/bar-gauge.js +410 -410
- package/cjs/box.d.ts +77 -77
- package/cjs/box.js +90 -90
- package/cjs/bullet.d.ts +205 -205
- package/cjs/bullet.js +155 -155
- package/cjs/button-group.d.ts +64 -64
- package/cjs/button-group.js +91 -91
- package/cjs/button.d.ts +30 -30
- package/cjs/button.js +61 -61
- package/cjs/calendar.d.ts +33 -33
- package/cjs/calendar.js +68 -68
- package/cjs/card-view.d.ts +2749 -2749
- package/cjs/card-view.js +1439 -1439
- package/cjs/chart.d.ts +4467 -4467
- package/cjs/chart.js +1569 -1569
- package/cjs/chat.d.ts +604 -604
- package/cjs/chat.js +336 -336
- package/cjs/check-box.d.ts +30 -30
- package/cjs/check-box.js +59 -59
- package/cjs/circular-gauge.d.ts +720 -720
- package/cjs/circular-gauge.js +427 -427
- package/cjs/color-box.d.ts +647 -647
- package/cjs/color-box.js +345 -345
- package/cjs/common/ai-integration.d.ts +4 -4
- package/cjs/common/ai-integration.js +7 -7
- package/cjs/common/charts.d.ts +4 -4
- package/cjs/common/charts.js +8 -8
- package/cjs/common/core/animation.d.ts +4 -4
- package/cjs/common/core/animation.js +11 -11
- package/cjs/common/core/environment.d.ts +4 -4
- package/cjs/common/core/environment.js +9 -9
- package/cjs/common/core/events.d.ts +4 -4
- package/cjs/common/core/events.js +10 -10
- package/cjs/common/core/index.d.ts +6 -6
- package/cjs/common/core/index.js +32 -32
- package/cjs/common/core/localization.d.ts +4 -4
- package/cjs/common/core/localization.js +13 -13
- package/cjs/common/data/custom-store.d.ts +3 -3
- package/cjs/common/data/custom-store.js +9 -9
- package/cjs/common/data.d.ts +4 -4
- package/cjs/common/data.js +25 -25
- package/cjs/common/export/excel.d.ts +4 -4
- package/cjs/common/export/excel.js +8 -8
- package/cjs/common/export/index.d.ts +4 -4
- package/cjs/common/export/index.js +30 -30
- package/cjs/common/export/pdf.d.ts +4 -4
- package/cjs/common/export/pdf.js +8 -8
- package/cjs/common/grids.d.ts +3 -3
- package/cjs/common/grids.js +4 -4
- package/cjs/common/index.d.ts +301 -289
- package/cjs/common/index.js +121 -121
- package/cjs/context-menu.d.ts +350 -350
- package/cjs/context-menu.js +295 -295
- package/cjs/core/component-base.d.ts +39 -39
- package/cjs/core/component-base.js +322 -322
- package/cjs/core/component.d.ts +42 -42
- package/cjs/core/component.js +88 -88
- package/cjs/core/config.d.ts +9 -9
- package/cjs/core/config.js +16 -16
- package/cjs/core/configuration/comparer.d.ts +12 -12
- package/cjs/core/configuration/comparer.js +102 -102
- package/cjs/core/configuration/config-node.d.ts +17 -17
- package/cjs/core/configuration/config-node.js +107 -107
- package/cjs/core/configuration/react/element.d.ts +36 -36
- package/cjs/core/configuration/react/element.js +52 -52
- package/cjs/core/configuration/react/templates.d.ts +7 -7
- package/cjs/core/configuration/react/templates.js +61 -61
- package/cjs/core/configuration/tree.d.ts +22 -22
- package/cjs/core/configuration/tree.js +118 -118
- package/cjs/core/configuration/utils.d.ts +16 -16
- package/cjs/core/configuration/utils.js +39 -39
- package/cjs/core/const.d.ts +3 -3
- package/cjs/core/const.js +78 -78
- package/cjs/core/contexts.d.ts +25 -25
- package/cjs/core/contexts.js +22 -22
- package/cjs/core/extension-component.d.ts +26 -26
- package/cjs/core/extension-component.js +70 -70
- package/cjs/core/helpers.d.ts +30 -30
- package/cjs/core/helpers.js +65 -65
- package/cjs/core/nested-option.d.ts +15 -15
- package/cjs/core/nested-option.js +60 -60
- package/cjs/core/options-manager.d.ts +35 -35
- package/cjs/core/options-manager.js +228 -228
- package/cjs/core/template-manager.d.ts +5 -5
- package/cjs/core/template-manager.js +164 -164
- package/cjs/core/template-wrapper.d.ts +5 -5
- package/cjs/core/template-wrapper.js +121 -121
- package/cjs/core/template.d.ts +21 -21
- package/cjs/core/template.js +33 -33
- package/cjs/core/types.d.ts +80 -80
- package/cjs/core/types.js +4 -4
- package/cjs/core/use-option-scanning.d.ts +9 -9
- package/cjs/core/use-option-scanning.js +50 -50
- package/cjs/core/widget-config.d.ts +11 -11
- package/cjs/core/widget-config.js +77 -77
- package/cjs/data-grid.d.ts +4632 -4628
- package/cjs/data-grid.js +1894 -1894
- package/cjs/date-box.d.ts +757 -757
- package/cjs/date-box.js +354 -354
- package/cjs/date-range-box.d.ts +761 -761
- package/cjs/date-range-box.js +355 -355
- package/cjs/diagram.d.ts +661 -661
- package/cjs/diagram.js +478 -478
- package/cjs/draggable.d.ts +43 -43
- package/cjs/draggable.js +78 -78
- package/cjs/drawer.d.ts +30 -30
- package/cjs/drawer.js +67 -67
- package/cjs/drop-down-box.d.ts +647 -647
- package/cjs/drop-down-box.js +349 -349
- package/cjs/drop-down-button.d.ts +562 -562
- package/cjs/drop-down-button.js +306 -306
- package/cjs/file-manager.d.ts +302 -302
- package/cjs/file-manager.js +233 -233
- package/cjs/file-uploader.d.ts +39 -39
- package/cjs/file-uploader.js +59 -59
- package/cjs/filter-builder.d.ts +216 -216
- package/cjs/filter-builder.js +156 -156
- package/cjs/form.d.ts +1020 -1020
- package/cjs/form.js +527 -527
- package/cjs/funnel.d.ts +898 -898
- package/cjs/funnel.js +479 -479
- package/cjs/gallery.d.ts +79 -79
- package/cjs/gallery.js +92 -92
- package/cjs/gantt.d.ts +798 -798
- package/cjs/gantt.js +497 -497
- package/cjs/html-editor.d.ts +480 -480
- package/cjs/html-editor.js +302 -302
- package/cjs/index.d.ts +86 -86
- package/cjs/index.js +196 -196
- package/cjs/linear-gauge.d.ts +734 -734
- package/cjs/linear-gauge.js +432 -432
- package/cjs/list.d.ts +416 -416
- package/cjs/list.js +196 -196
- package/cjs/load-indicator.d.ts +26 -26
- package/cjs/load-indicator.js +53 -53
- package/cjs/load-panel.d.ts +270 -270
- package/cjs/load-panel.js +237 -237
- package/cjs/lookup.d.ts +485 -485
- package/cjs/lookup.js +339 -339
- package/cjs/map.d.ts +156 -156
- package/cjs/map.js +164 -164
- package/cjs/menu.d.ts +355 -355
- package/cjs/menu.js +296 -296
- package/cjs/multi-view.d.ts +77 -77
- package/cjs/multi-view.js +92 -92
- package/cjs/number-box.d.ts +142 -142
- package/cjs/number-box.js +110 -110
- package/cjs/pagination.d.ts +22 -22
- package/cjs/pagination.js +60 -60
- package/cjs/pie-chart.d.ts +1449 -1449
- package/cjs/pie-chart.js +637 -637
- package/cjs/pivot-grid-field-chooser.d.ts +133 -133
- package/cjs/pivot-grid-field-chooser.js +125 -125
- package/cjs/pivot-grid.d.ts +350 -350
- package/cjs/pivot-grid.js +235 -235
- package/cjs/polar-chart.d.ts +3176 -3176
- package/cjs/polar-chart.js +1199 -1199
- package/cjs/popover.d.ts +331 -331
- package/cjs/popover.js +288 -288
- package/cjs/popup.d.ts +293 -293
- package/cjs/popup.js +262 -262
- package/cjs/progress-bar.d.ts +31 -31
- package/cjs/progress-bar.js +59 -59
- package/cjs/radio-group.d.ts +56 -56
- package/cjs/radio-group.js +90 -90
- package/cjs/range-selector.d.ts +2446 -2446
- package/cjs/range-selector.js +961 -961
- package/cjs/range-slider.d.ts +82 -82
- package/cjs/range-slider.js +107 -107
- package/cjs/resizable.d.ts +33 -33
- package/cjs/resizable.js +60 -60
- package/cjs/responsive-box.d.ts +133 -133
- package/cjs/responsive-box.js +134 -134
- package/cjs/sankey.d.ts +610 -610
- package/cjs/sankey.js +352 -352
- package/cjs/scheduler.d.ts +1620 -1620
- package/cjs/scheduler.js +775 -775
- package/cjs/scroll-view.d.ts +29 -29
- package/cjs/scroll-view.js +53 -53
- package/cjs/select-box.d.ts +676 -676
- package/cjs/select-box.js +374 -374
- package/cjs/slider.d.ts +82 -82
- package/cjs/slider.js +107 -107
- package/cjs/sortable.d.ts +47 -47
- package/cjs/sortable.js +78 -78
- package/cjs/sparkline.d.ts +205 -205
- package/cjs/sparkline.js +155 -155
- package/cjs/speech-to-text.d.ts +61 -61
- package/cjs/speech-to-text.js +83 -83
- package/cjs/speed-dial-action.d.ts +27 -27
- package/cjs/speed-dial-action.js +53 -53
- package/cjs/splitter.d.ts +85 -85
- package/cjs/splitter.js +90 -90
- package/cjs/stepper.d.ts +82 -82
- package/cjs/stepper.js +92 -92
- package/cjs/switch.d.ts +30 -30
- package/cjs/switch.js +59 -59
- package/cjs/tab-panel.d.ts +97 -97
- package/cjs/tab-panel.js +101 -101
- package/cjs/tabs.d.ts +90 -90
- package/cjs/tabs.js +94 -94
- package/cjs/tag-box.d.ts +677 -677
- package/cjs/tag-box.js +379 -379
- package/cjs/text-area.d.ts +40 -40
- package/cjs/text-area.js +59 -59
- package/cjs/text-box.d.ts +122 -122
- package/cjs/text-box.js +97 -97
- package/cjs/tile-view.d.ts +73 -73
- package/cjs/tile-view.js +90 -90
- package/cjs/toast.d.ts +255 -255
- package/cjs/toast.js +232 -232
- package/cjs/toolbar.d.ts +91 -91
- package/cjs/toolbar.js +99 -99
- package/cjs/tooltip.d.ts +283 -283
- package/cjs/tooltip.js +260 -260
- package/cjs/tree-list.d.ts +4160 -4156
- package/cjs/tree-list.js +1692 -1692
- package/cjs/tree-map.d.ts +586 -586
- package/cjs/tree-map.js +382 -382
- package/cjs/tree-view.d.ts +290 -290
- package/cjs/tree-view.js +145 -145
- package/cjs/validation-group.d.ts +25 -25
- package/cjs/validation-group.js +53 -53
- package/cjs/validation-summary.d.ts +66 -66
- package/cjs/validation-summary.js +90 -90
- package/cjs/validator.d.ts +271 -271
- package/cjs/validator.js +243 -243
- package/cjs/vector-map.d.ts +987 -987
- package/cjs/vector-map.js +487 -487
- package/esm/accordion.js +73 -73
- package/esm/action-sheet.js +61 -61
- package/esm/autocomplete.js +302 -302
- package/esm/bar-gauge.js +359 -359
- package/esm/box.js +60 -60
- package/esm/bullet.js +119 -119
- package/esm/button-group.js +61 -61
- package/esm/button.js +32 -32
- package/esm/calendar.js +39 -39
- package/esm/card-view.js +1332 -1332
- package/esm/chart.js +1447 -1447
- package/esm/chat.js +290 -290
- package/esm/check-box.js +30 -30
- package/esm/circular-gauge.js +374 -374
- package/esm/color-box.js +300 -300
- package/esm/common/ai-integration.js +3 -3
- package/esm/common/charts.js +3 -3
- package/esm/common/core/animation.js +3 -3
- package/esm/common/core/environment.js +3 -3
- package/esm/common/core/events.js +3 -3
- package/esm/common/core/index.js +6 -6
- package/esm/common/core/localization.js +3 -3
- package/esm/common/data/custom-store.js +3 -3
- package/esm/common/data.js +3 -3
- package/esm/common/export/excel.js +3 -3
- package/esm/common/export/index.js +4 -4
- package/esm/common/export/pdf.js +3 -3
- package/esm/common/grids.js +3 -3
- package/esm/common/index.js +91 -91
- package/esm/context-menu.js +251 -251
- package/esm/core/component-base.js +292 -292
- package/esm/core/component.js +62 -62
- package/esm/core/config.js +13 -13
- package/esm/core/configuration/comparer.js +98 -98
- package/esm/core/configuration/config-node.js +80 -80
- package/esm/core/configuration/react/element.js +47 -47
- package/esm/core/configuration/react/templates.js +57 -57
- package/esm/core/configuration/tree.js +110 -110
- package/esm/core/configuration/utils.js +32 -32
- package/esm/core/const.js +75 -75
- package/esm/core/contexts.js +19 -19
- package/esm/core/extension-component.js +43 -43
- package/esm/core/helpers.js +57 -57
- package/esm/core/nested-option.js +35 -35
- package/esm/core/options-manager.js +223 -223
- package/esm/core/template-manager.js +137 -137
- package/esm/core/template-wrapper.js +95 -95
- package/esm/core/template.js +29 -29
- package/esm/core/types.js +3 -3
- package/esm/core/use-option-scanning.js +46 -46
- package/esm/core/widget-config.js +72 -72
- package/esm/data-grid.js +1758 -1758
- package/esm/date-box.js +308 -308
- package/esm/date-range-box.js +309 -309
- package/esm/diagram.js +423 -423
- package/esm/draggable.js +48 -48
- package/esm/drawer.js +38 -38
- package/esm/drop-down-box.js +304 -304
- package/esm/drop-down-button.js +263 -263
- package/esm/file-manager.js +192 -192
- package/esm/file-uploader.js +30 -30
- package/esm/filter-builder.js +121 -121
- package/esm/form.js +475 -475
- package/esm/funnel.js +423 -423
- package/esm/gallery.js +62 -62
- package/esm/gantt.js +442 -442
- package/esm/html-editor.js +259 -259
- package/esm/index.js +86 -86
- package/esm/linear-gauge.js +378 -378
- package/esm/list.js +160 -160
- package/esm/load-indicator.js +24 -24
- package/esm/load-panel.js +196 -196
- package/esm/lookup.js +294 -294
- package/esm/map.js +128 -128
- package/esm/menu.js +252 -252
- package/esm/multi-view.js +62 -62
- package/esm/number-box.js +78 -78
- package/esm/pagination.js +31 -31
- package/esm/pie-chart.js +573 -573
- package/esm/pivot-grid-field-chooser.js +91 -91
- package/esm/pivot-grid.js +193 -193
- package/esm/polar-chart.js +1099 -1099
- package/esm/popover.js +245 -245
- package/esm/popup.js +221 -221
- package/esm/progress-bar.js +30 -30
- package/esm/radio-group.js +60 -60
- package/esm/range-selector.js +871 -871
- package/esm/range-slider.js +75 -75
- package/esm/resizable.js +31 -31
- package/esm/responsive-box.js +101 -101
- package/esm/sankey.js +304 -304
- package/esm/scheduler.js +713 -713
- package/esm/scroll-view.js +24 -24
- package/esm/select-box.js +328 -328
- package/esm/slider.js +75 -75
- package/esm/sortable.js +48 -48
- package/esm/sparkline.js +119 -119
- package/esm/speech-to-text.js +52 -52
- package/esm/speed-dial-action.js +24 -24
- package/esm/splitter.js +60 -60
- package/esm/stepper.js +62 -62
- package/esm/switch.js +30 -30
- package/esm/tab-panel.js +71 -71
- package/esm/tabs.js +64 -64
- package/esm/tag-box.js +333 -333
- package/esm/text-area.js +30 -30
- package/esm/text-box.js +66 -66
- package/esm/tile-view.js +60 -60
- package/esm/toast.js +192 -192
- package/esm/toolbar.js +69 -69
- package/esm/tooltip.js +218 -218
- package/esm/tree-list.js +1569 -1569
- package/esm/tree-map.js +332 -332
- package/esm/tree-view.js +112 -112
- package/esm/validation-group.js +24 -24
- package/esm/validation-summary.js +60 -60
- package/esm/validator.js +203 -203
- package/esm/vector-map.js +432 -432
- package/package.json +11 -5
package/cjs/vector-map.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 26.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 26.1.3
|
|
4
|
+
* Build date: Wed Jun 10 2026
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,488 +11,488 @@
|
|
|
11
11
|
* https://github.com/DevExpress/DevExtreme
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
"use client";
|
|
15
|
-
"use strict";
|
|
16
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
-
}
|
|
22
|
-
Object.defineProperty(o, k2, desc);
|
|
23
|
-
}) : (function(o, m, k, k2) {
|
|
24
|
-
if (k2 === undefined) k2 = k;
|
|
25
|
-
o[k2] = m[k];
|
|
26
|
-
}));
|
|
27
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
28
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29
|
-
}) : function(o, v) {
|
|
30
|
-
o["default"] = v;
|
|
31
|
-
});
|
|
32
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
33
|
-
if (mod && mod.__esModule) return mod;
|
|
34
|
-
var result = {};
|
|
35
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
36
|
-
__setModuleDefault(result, mod);
|
|
37
|
-
return result;
|
|
38
|
-
};
|
|
39
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
|
-
};
|
|
42
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.VectorMapTitleSubtitle = exports.VectorMapTitle = exports.TooltipBorder = exports.Tooltip = exports.Title = exports.Subtitle = exports.Source = exports.Size = exports.Shadow = exports.Projection = exports.Margin = exports.LoadingIndicator = exports.LegendTitleSubtitle = exports.LegendTitle = exports.Legend = exports.Layer = exports.Label = exports.Image = exports.Font = exports.Export = exports.ControlBar = exports.CommonAnnotationSettings = exports.Border = exports.Background = exports.AnnotationBorder = exports.Annotation = exports.VectorMap = void 0;
|
|
44
|
-
const React = __importStar(require("react"));
|
|
45
|
-
const react_1 = require("react");
|
|
46
|
-
const vector_map_1 = __importDefault(require("devextreme/viz/vector_map"));
|
|
47
|
-
const component_1 = require("./core/component");
|
|
48
|
-
const nested_option_1 = __importDefault(require("./core/nested-option"));
|
|
49
|
-
const VectorMap = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
50
|
-
const baseRef = (0, react_1.useRef)(null);
|
|
51
|
-
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
52
|
-
instance() {
|
|
53
|
-
return baseRef.current?.getInstance();
|
|
54
|
-
}
|
|
55
|
-
}), []);
|
|
56
|
-
const subscribableOptions = (0, react_1.useMemo)(() => (["loadingIndicator", "loadingIndicator.show"]), []);
|
|
57
|
-
const independentEvents = (0, react_1.useMemo)(() => (["onClick", "onDisposing", "onDrawn", "onExported", "onExporting", "onFileSaving", "onIncidentOccurred", "onInitialized", "onTooltipHidden", "onTooltipShown"]), []);
|
|
58
|
-
const defaults = (0, react_1.useMemo)(() => ({
|
|
59
|
-
defaultLoadingIndicator: "loadingIndicator",
|
|
60
|
-
}), []);
|
|
61
|
-
const expectedChildren = (0, react_1.useMemo)(() => ({
|
|
62
|
-
annotation: { optionName: "annotations", isCollectionItem: true },
|
|
63
|
-
background: { optionName: "background", isCollectionItem: false },
|
|
64
|
-
commonAnnotationSettings: { optionName: "commonAnnotationSettings", isCollectionItem: false },
|
|
65
|
-
controlBar: { optionName: "controlBar", isCollectionItem: false },
|
|
66
|
-
export: { optionName: "export", isCollectionItem: false },
|
|
67
|
-
layer: { optionName: "layers", isCollectionItem: true },
|
|
68
|
-
legend: { optionName: "legends", isCollectionItem: true },
|
|
69
|
-
loadingIndicator: { optionName: "loadingIndicator", isCollectionItem: false },
|
|
70
|
-
projection: { optionName: "projection", isCollectionItem: false },
|
|
71
|
-
size: { optionName: "size", isCollectionItem: false },
|
|
72
|
-
title: { optionName: "title", isCollectionItem: false },
|
|
73
|
-
tooltip: { optionName: "tooltip", isCollectionItem: false },
|
|
74
|
-
vectorMapTitle: { optionName: "title", isCollectionItem: false }
|
|
75
|
-
}), []);
|
|
76
|
-
return (React.createElement((component_1.Component), {
|
|
77
|
-
WidgetClass: vector_map_1.default,
|
|
78
|
-
ref: baseRef,
|
|
79
|
-
subscribableOptions,
|
|
80
|
-
independentEvents,
|
|
81
|
-
defaults,
|
|
82
|
-
expectedChildren,
|
|
83
|
-
...props,
|
|
84
|
-
}));
|
|
85
|
-
}));
|
|
86
|
-
exports.VectorMap = VectorMap;
|
|
87
|
-
const _componentAnnotation = (props) => {
|
|
88
|
-
return React.createElement((nested_option_1.default), {
|
|
89
|
-
...props,
|
|
90
|
-
elementDescriptor: {
|
|
91
|
-
OptionName: "annotations",
|
|
92
|
-
IsCollectionItem: true,
|
|
93
|
-
ExpectedChildren: {
|
|
94
|
-
annotationBorder: { optionName: "border", isCollectionItem: false },
|
|
95
|
-
border: { optionName: "border", isCollectionItem: false },
|
|
96
|
-
font: { optionName: "font", isCollectionItem: false },
|
|
97
|
-
image: { optionName: "image", isCollectionItem: false },
|
|
98
|
-
shadow: { optionName: "shadow", isCollectionItem: false }
|
|
99
|
-
},
|
|
100
|
-
TemplateProps: [{
|
|
101
|
-
tmplOption: "template",
|
|
102
|
-
render: "render",
|
|
103
|
-
component: "component"
|
|
104
|
-
}, {
|
|
105
|
-
tmplOption: "tooltipTemplate",
|
|
106
|
-
render: "tooltipRender",
|
|
107
|
-
component: "tooltipComponent"
|
|
108
|
-
}],
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
const Annotation = Object.assign(_componentAnnotation, {
|
|
113
|
-
componentType: "option",
|
|
114
|
-
});
|
|
115
|
-
exports.Annotation = Annotation;
|
|
116
|
-
const _componentAnnotationBorder = (props) => {
|
|
117
|
-
return React.createElement((nested_option_1.default), {
|
|
118
|
-
...props,
|
|
119
|
-
elementDescriptor: {
|
|
120
|
-
OptionName: "border",
|
|
121
|
-
},
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
const AnnotationBorder = Object.assign(_componentAnnotationBorder, {
|
|
125
|
-
componentType: "option",
|
|
126
|
-
});
|
|
127
|
-
exports.AnnotationBorder = AnnotationBorder;
|
|
128
|
-
const _componentBackground = (props) => {
|
|
129
|
-
return React.createElement((nested_option_1.default), {
|
|
130
|
-
...props,
|
|
131
|
-
elementDescriptor: {
|
|
132
|
-
OptionName: "background",
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
const Background = Object.assign(_componentBackground, {
|
|
137
|
-
componentType: "option",
|
|
138
|
-
});
|
|
139
|
-
exports.Background = Background;
|
|
140
|
-
const _componentBorder = (props) => {
|
|
141
|
-
return React.createElement((nested_option_1.default), {
|
|
142
|
-
...props,
|
|
143
|
-
elementDescriptor: {
|
|
144
|
-
OptionName: "border",
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
const Border = Object.assign(_componentBorder, {
|
|
149
|
-
componentType: "option",
|
|
150
|
-
});
|
|
151
|
-
exports.Border = Border;
|
|
152
|
-
const _componentCommonAnnotationSettings = (props) => {
|
|
153
|
-
return React.createElement((nested_option_1.default), {
|
|
154
|
-
...props,
|
|
155
|
-
elementDescriptor: {
|
|
156
|
-
OptionName: "commonAnnotationSettings",
|
|
157
|
-
ExpectedChildren: {
|
|
158
|
-
annotationBorder: { optionName: "border", isCollectionItem: false },
|
|
159
|
-
border: { optionName: "border", isCollectionItem: false },
|
|
160
|
-
font: { optionName: "font", isCollectionItem: false },
|
|
161
|
-
image: { optionName: "image", isCollectionItem: false },
|
|
162
|
-
shadow: { optionName: "shadow", isCollectionItem: false }
|
|
163
|
-
},
|
|
164
|
-
TemplateProps: [{
|
|
165
|
-
tmplOption: "template",
|
|
166
|
-
render: "render",
|
|
167
|
-
component: "component"
|
|
168
|
-
}, {
|
|
169
|
-
tmplOption: "tooltipTemplate",
|
|
170
|
-
render: "tooltipRender",
|
|
171
|
-
component: "tooltipComponent"
|
|
172
|
-
}],
|
|
173
|
-
},
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
const CommonAnnotationSettings = Object.assign(_componentCommonAnnotationSettings, {
|
|
177
|
-
componentType: "option",
|
|
178
|
-
});
|
|
179
|
-
exports.CommonAnnotationSettings = CommonAnnotationSettings;
|
|
180
|
-
const _componentControlBar = (props) => {
|
|
181
|
-
return React.createElement((nested_option_1.default), {
|
|
182
|
-
...props,
|
|
183
|
-
elementDescriptor: {
|
|
184
|
-
OptionName: "controlBar",
|
|
185
|
-
},
|
|
186
|
-
});
|
|
187
|
-
};
|
|
188
|
-
const ControlBar = Object.assign(_componentControlBar, {
|
|
189
|
-
componentType: "option",
|
|
190
|
-
});
|
|
191
|
-
exports.ControlBar = ControlBar;
|
|
192
|
-
const _componentExport = (props) => {
|
|
193
|
-
return React.createElement((nested_option_1.default), {
|
|
194
|
-
...props,
|
|
195
|
-
elementDescriptor: {
|
|
196
|
-
OptionName: "export",
|
|
197
|
-
},
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
const Export = Object.assign(_componentExport, {
|
|
201
|
-
componentType: "option",
|
|
202
|
-
});
|
|
203
|
-
exports.Export = Export;
|
|
204
|
-
const _componentFont = (props) => {
|
|
205
|
-
return React.createElement((nested_option_1.default), {
|
|
206
|
-
...props,
|
|
207
|
-
elementDescriptor: {
|
|
208
|
-
OptionName: "font",
|
|
209
|
-
},
|
|
210
|
-
});
|
|
211
|
-
};
|
|
212
|
-
const Font = Object.assign(_componentFont, {
|
|
213
|
-
componentType: "option",
|
|
214
|
-
});
|
|
215
|
-
exports.Font = Font;
|
|
216
|
-
const _componentImage = (props) => {
|
|
217
|
-
return React.createElement((nested_option_1.default), {
|
|
218
|
-
...props,
|
|
219
|
-
elementDescriptor: {
|
|
220
|
-
OptionName: "image",
|
|
221
|
-
},
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
const Image = Object.assign(_componentImage, {
|
|
225
|
-
componentType: "option",
|
|
226
|
-
});
|
|
227
|
-
exports.Image = Image;
|
|
228
|
-
const _componentLabel = (props) => {
|
|
229
|
-
return React.createElement((nested_option_1.default), {
|
|
230
|
-
...props,
|
|
231
|
-
elementDescriptor: {
|
|
232
|
-
OptionName: "label",
|
|
233
|
-
ExpectedChildren: {
|
|
234
|
-
font: { optionName: "font", isCollectionItem: false }
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
});
|
|
238
|
-
};
|
|
239
|
-
const Label = Object.assign(_componentLabel, {
|
|
240
|
-
componentType: "option",
|
|
241
|
-
});
|
|
242
|
-
exports.Label = Label;
|
|
243
|
-
const _componentLayer = (props) => {
|
|
244
|
-
return React.createElement((nested_option_1.default), {
|
|
245
|
-
...props,
|
|
246
|
-
elementDescriptor: {
|
|
247
|
-
OptionName: "layers",
|
|
248
|
-
IsCollectionItem: true,
|
|
249
|
-
ExpectedChildren: {
|
|
250
|
-
label: { optionName: "label", isCollectionItem: false }
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
});
|
|
254
|
-
};
|
|
255
|
-
const Layer = Object.assign(_componentLayer, {
|
|
256
|
-
componentType: "option",
|
|
257
|
-
});
|
|
258
|
-
exports.Layer = Layer;
|
|
259
|
-
const _componentLegend = (props) => {
|
|
260
|
-
return React.createElement((nested_option_1.default), {
|
|
261
|
-
...props,
|
|
262
|
-
elementDescriptor: {
|
|
263
|
-
OptionName: "legends",
|
|
264
|
-
IsCollectionItem: true,
|
|
265
|
-
ExpectedChildren: {
|
|
266
|
-
annotationBorder: { optionName: "border", isCollectionItem: false },
|
|
267
|
-
border: { optionName: "border", isCollectionItem: false },
|
|
268
|
-
font: { optionName: "font", isCollectionItem: false },
|
|
269
|
-
legendTitle: { optionName: "title", isCollectionItem: false },
|
|
270
|
-
margin: { optionName: "margin", isCollectionItem: false },
|
|
271
|
-
source: { optionName: "source", isCollectionItem: false },
|
|
272
|
-
title: { optionName: "title", isCollectionItem: false }
|
|
273
|
-
},
|
|
274
|
-
TemplateProps: [{
|
|
275
|
-
tmplOption: "markerTemplate",
|
|
276
|
-
render: "markerRender",
|
|
277
|
-
component: "markerComponent"
|
|
278
|
-
}],
|
|
279
|
-
},
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
const Legend = Object.assign(_componentLegend, {
|
|
283
|
-
componentType: "option",
|
|
284
|
-
});
|
|
285
|
-
exports.Legend = Legend;
|
|
286
|
-
const _componentLegendTitle = (props) => {
|
|
287
|
-
return React.createElement((nested_option_1.default), {
|
|
288
|
-
...props,
|
|
289
|
-
elementDescriptor: {
|
|
290
|
-
OptionName: "title",
|
|
291
|
-
ExpectedChildren: {
|
|
292
|
-
font: { optionName: "font", isCollectionItem: false },
|
|
293
|
-
legendTitleSubtitle: { optionName: "subtitle", isCollectionItem: false },
|
|
294
|
-
margin: { optionName: "margin", isCollectionItem: false },
|
|
295
|
-
subtitle: { optionName: "subtitle", isCollectionItem: false }
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
});
|
|
299
|
-
};
|
|
300
|
-
const LegendTitle = Object.assign(_componentLegendTitle, {
|
|
301
|
-
componentType: "option",
|
|
302
|
-
});
|
|
303
|
-
exports.LegendTitle = LegendTitle;
|
|
304
|
-
const _componentLegendTitleSubtitle = (props) => {
|
|
305
|
-
return React.createElement((nested_option_1.default), {
|
|
306
|
-
...props,
|
|
307
|
-
elementDescriptor: {
|
|
308
|
-
OptionName: "subtitle",
|
|
309
|
-
ExpectedChildren: {
|
|
310
|
-
font: { optionName: "font", isCollectionItem: false }
|
|
311
|
-
},
|
|
312
|
-
},
|
|
313
|
-
});
|
|
314
|
-
};
|
|
315
|
-
const LegendTitleSubtitle = Object.assign(_componentLegendTitleSubtitle, {
|
|
316
|
-
componentType: "option",
|
|
317
|
-
});
|
|
318
|
-
exports.LegendTitleSubtitle = LegendTitleSubtitle;
|
|
319
|
-
const _componentLoadingIndicator = (props) => {
|
|
320
|
-
return React.createElement((nested_option_1.default), {
|
|
321
|
-
...props,
|
|
322
|
-
elementDescriptor: {
|
|
323
|
-
OptionName: "loadingIndicator",
|
|
324
|
-
DefaultsProps: {
|
|
325
|
-
defaultShow: "show"
|
|
326
|
-
},
|
|
327
|
-
ExpectedChildren: {
|
|
328
|
-
font: { optionName: "font", isCollectionItem: false }
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
});
|
|
332
|
-
};
|
|
333
|
-
const LoadingIndicator = Object.assign(_componentLoadingIndicator, {
|
|
334
|
-
componentType: "option",
|
|
335
|
-
});
|
|
336
|
-
exports.LoadingIndicator = LoadingIndicator;
|
|
337
|
-
const _componentMargin = (props) => {
|
|
338
|
-
return React.createElement((nested_option_1.default), {
|
|
339
|
-
...props,
|
|
340
|
-
elementDescriptor: {
|
|
341
|
-
OptionName: "margin",
|
|
342
|
-
},
|
|
343
|
-
});
|
|
344
|
-
};
|
|
345
|
-
const Margin = Object.assign(_componentMargin, {
|
|
346
|
-
componentType: "option",
|
|
347
|
-
});
|
|
348
|
-
exports.Margin = Margin;
|
|
349
|
-
const _componentProjection = (props) => {
|
|
350
|
-
return React.createElement((nested_option_1.default), {
|
|
351
|
-
...props,
|
|
352
|
-
elementDescriptor: {
|
|
353
|
-
OptionName: "projection",
|
|
354
|
-
},
|
|
355
|
-
});
|
|
356
|
-
};
|
|
357
|
-
const Projection = Object.assign(_componentProjection, {
|
|
358
|
-
componentType: "option",
|
|
359
|
-
});
|
|
360
|
-
exports.Projection = Projection;
|
|
361
|
-
const _componentShadow = (props) => {
|
|
362
|
-
return React.createElement((nested_option_1.default), {
|
|
363
|
-
...props,
|
|
364
|
-
elementDescriptor: {
|
|
365
|
-
OptionName: "shadow",
|
|
366
|
-
},
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
const Shadow = Object.assign(_componentShadow, {
|
|
370
|
-
componentType: "option",
|
|
371
|
-
});
|
|
372
|
-
exports.Shadow = Shadow;
|
|
373
|
-
const _componentSize = (props) => {
|
|
374
|
-
return React.createElement((nested_option_1.default), {
|
|
375
|
-
...props,
|
|
376
|
-
elementDescriptor: {
|
|
377
|
-
OptionName: "size",
|
|
378
|
-
},
|
|
379
|
-
});
|
|
380
|
-
};
|
|
381
|
-
const Size = Object.assign(_componentSize, {
|
|
382
|
-
componentType: "option",
|
|
383
|
-
});
|
|
384
|
-
exports.Size = Size;
|
|
385
|
-
const _componentSource = (props) => {
|
|
386
|
-
return React.createElement((nested_option_1.default), {
|
|
387
|
-
...props,
|
|
388
|
-
elementDescriptor: {
|
|
389
|
-
OptionName: "source",
|
|
390
|
-
},
|
|
391
|
-
});
|
|
392
|
-
};
|
|
393
|
-
const Source = Object.assign(_componentSource, {
|
|
394
|
-
componentType: "option",
|
|
395
|
-
});
|
|
396
|
-
exports.Source = Source;
|
|
397
|
-
const _componentSubtitle = (props) => {
|
|
398
|
-
return React.createElement((nested_option_1.default), {
|
|
399
|
-
...props,
|
|
400
|
-
elementDescriptor: {
|
|
401
|
-
OptionName: "subtitle",
|
|
402
|
-
ExpectedChildren: {
|
|
403
|
-
font: { optionName: "font", isCollectionItem: false }
|
|
404
|
-
},
|
|
405
|
-
},
|
|
406
|
-
});
|
|
407
|
-
};
|
|
408
|
-
const Subtitle = Object.assign(_componentSubtitle, {
|
|
409
|
-
componentType: "option",
|
|
410
|
-
});
|
|
411
|
-
exports.Subtitle = Subtitle;
|
|
412
|
-
const _componentTitle = (props) => {
|
|
413
|
-
return React.createElement((nested_option_1.default), {
|
|
414
|
-
...props,
|
|
415
|
-
elementDescriptor: {
|
|
416
|
-
OptionName: "title",
|
|
417
|
-
ExpectedChildren: {
|
|
418
|
-
font: { optionName: "font", isCollectionItem: false },
|
|
419
|
-
legendTitleSubtitle: { optionName: "subtitle", isCollectionItem: false },
|
|
420
|
-
margin: { optionName: "margin", isCollectionItem: false },
|
|
421
|
-
vectorMapTitleSubtitle: { optionName: "subtitle", isCollectionItem: false }
|
|
422
|
-
},
|
|
423
|
-
},
|
|
424
|
-
});
|
|
425
|
-
};
|
|
426
|
-
const Title = Object.assign(_componentTitle, {
|
|
427
|
-
componentType: "option",
|
|
428
|
-
});
|
|
429
|
-
exports.Title = Title;
|
|
430
|
-
const _componentTooltip = (props) => {
|
|
431
|
-
return React.createElement((nested_option_1.default), {
|
|
432
|
-
...props,
|
|
433
|
-
elementDescriptor: {
|
|
434
|
-
OptionName: "tooltip",
|
|
435
|
-
ExpectedChildren: {
|
|
436
|
-
border: { optionName: "border", isCollectionItem: false },
|
|
437
|
-
font: { optionName: "font", isCollectionItem: false },
|
|
438
|
-
shadow: { optionName: "shadow", isCollectionItem: false },
|
|
439
|
-
tooltipBorder: { optionName: "border", isCollectionItem: false }
|
|
440
|
-
},
|
|
441
|
-
TemplateProps: [{
|
|
442
|
-
tmplOption: "contentTemplate",
|
|
443
|
-
render: "contentRender",
|
|
444
|
-
component: "contentComponent"
|
|
445
|
-
}],
|
|
446
|
-
},
|
|
447
|
-
});
|
|
448
|
-
};
|
|
449
|
-
const Tooltip = Object.assign(_componentTooltip, {
|
|
450
|
-
componentType: "option",
|
|
451
|
-
});
|
|
452
|
-
exports.Tooltip = Tooltip;
|
|
453
|
-
const _componentTooltipBorder = (props) => {
|
|
454
|
-
return React.createElement((nested_option_1.default), {
|
|
455
|
-
...props,
|
|
456
|
-
elementDescriptor: {
|
|
457
|
-
OptionName: "border",
|
|
458
|
-
},
|
|
459
|
-
});
|
|
460
|
-
};
|
|
461
|
-
const TooltipBorder = Object.assign(_componentTooltipBorder, {
|
|
462
|
-
componentType: "option",
|
|
463
|
-
});
|
|
464
|
-
exports.TooltipBorder = TooltipBorder;
|
|
465
|
-
const _componentVectorMapTitle = (props) => {
|
|
466
|
-
return React.createElement((nested_option_1.default), {
|
|
467
|
-
...props,
|
|
468
|
-
elementDescriptor: {
|
|
469
|
-
OptionName: "title",
|
|
470
|
-
ExpectedChildren: {
|
|
471
|
-
font: { optionName: "font", isCollectionItem: false },
|
|
472
|
-
margin: { optionName: "margin", isCollectionItem: false },
|
|
473
|
-
subtitle: { optionName: "subtitle", isCollectionItem: false },
|
|
474
|
-
vectorMapTitleSubtitle: { optionName: "subtitle", isCollectionItem: false }
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
});
|
|
478
|
-
};
|
|
479
|
-
const VectorMapTitle = Object.assign(_componentVectorMapTitle, {
|
|
480
|
-
componentType: "option",
|
|
481
|
-
});
|
|
482
|
-
exports.VectorMapTitle = VectorMapTitle;
|
|
483
|
-
const _componentVectorMapTitleSubtitle = (props) => {
|
|
484
|
-
return React.createElement((nested_option_1.default), {
|
|
485
|
-
...props,
|
|
486
|
-
elementDescriptor: {
|
|
487
|
-
OptionName: "subtitle",
|
|
488
|
-
ExpectedChildren: {
|
|
489
|
-
font: { optionName: "font", isCollectionItem: false }
|
|
490
|
-
},
|
|
491
|
-
},
|
|
492
|
-
});
|
|
493
|
-
};
|
|
494
|
-
const VectorMapTitleSubtitle = Object.assign(_componentVectorMapTitleSubtitle, {
|
|
495
|
-
componentType: "option",
|
|
496
|
-
});
|
|
497
|
-
exports.VectorMapTitleSubtitle = VectorMapTitleSubtitle;
|
|
498
|
-
exports.default = VectorMap;
|
|
14
|
+
"use client";
|
|
15
|
+
"use strict";
|
|
16
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperty(o, k2, desc);
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
28
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29
|
+
}) : function(o, v) {
|
|
30
|
+
o["default"] = v;
|
|
31
|
+
});
|
|
32
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.VectorMapTitleSubtitle = exports.VectorMapTitle = exports.TooltipBorder = exports.Tooltip = exports.Title = exports.Subtitle = exports.Source = exports.Size = exports.Shadow = exports.Projection = exports.Margin = exports.LoadingIndicator = exports.LegendTitleSubtitle = exports.LegendTitle = exports.Legend = exports.Layer = exports.Label = exports.Image = exports.Font = exports.Export = exports.ControlBar = exports.CommonAnnotationSettings = exports.Border = exports.Background = exports.AnnotationBorder = exports.Annotation = exports.VectorMap = void 0;
|
|
44
|
+
const React = __importStar(require("react"));
|
|
45
|
+
const react_1 = require("react");
|
|
46
|
+
const vector_map_1 = __importDefault(require("devextreme/viz/vector_map"));
|
|
47
|
+
const component_1 = require("./core/component");
|
|
48
|
+
const nested_option_1 = __importDefault(require("./core/nested-option"));
|
|
49
|
+
const VectorMap = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
50
|
+
const baseRef = (0, react_1.useRef)(null);
|
|
51
|
+
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
52
|
+
instance() {
|
|
53
|
+
return baseRef.current?.getInstance();
|
|
54
|
+
}
|
|
55
|
+
}), []);
|
|
56
|
+
const subscribableOptions = (0, react_1.useMemo)(() => (["loadingIndicator", "loadingIndicator.show"]), []);
|
|
57
|
+
const independentEvents = (0, react_1.useMemo)(() => (["onClick", "onDisposing", "onDrawn", "onExported", "onExporting", "onFileSaving", "onIncidentOccurred", "onInitialized", "onTooltipHidden", "onTooltipShown"]), []);
|
|
58
|
+
const defaults = (0, react_1.useMemo)(() => ({
|
|
59
|
+
defaultLoadingIndicator: "loadingIndicator",
|
|
60
|
+
}), []);
|
|
61
|
+
const expectedChildren = (0, react_1.useMemo)(() => ({
|
|
62
|
+
annotation: { optionName: "annotations", isCollectionItem: true },
|
|
63
|
+
background: { optionName: "background", isCollectionItem: false },
|
|
64
|
+
commonAnnotationSettings: { optionName: "commonAnnotationSettings", isCollectionItem: false },
|
|
65
|
+
controlBar: { optionName: "controlBar", isCollectionItem: false },
|
|
66
|
+
export: { optionName: "export", isCollectionItem: false },
|
|
67
|
+
layer: { optionName: "layers", isCollectionItem: true },
|
|
68
|
+
legend: { optionName: "legends", isCollectionItem: true },
|
|
69
|
+
loadingIndicator: { optionName: "loadingIndicator", isCollectionItem: false },
|
|
70
|
+
projection: { optionName: "projection", isCollectionItem: false },
|
|
71
|
+
size: { optionName: "size", isCollectionItem: false },
|
|
72
|
+
title: { optionName: "title", isCollectionItem: false },
|
|
73
|
+
tooltip: { optionName: "tooltip", isCollectionItem: false },
|
|
74
|
+
vectorMapTitle: { optionName: "title", isCollectionItem: false }
|
|
75
|
+
}), []);
|
|
76
|
+
return (React.createElement((component_1.Component), {
|
|
77
|
+
WidgetClass: vector_map_1.default,
|
|
78
|
+
ref: baseRef,
|
|
79
|
+
subscribableOptions,
|
|
80
|
+
independentEvents,
|
|
81
|
+
defaults,
|
|
82
|
+
expectedChildren,
|
|
83
|
+
...props,
|
|
84
|
+
}));
|
|
85
|
+
}));
|
|
86
|
+
exports.VectorMap = VectorMap;
|
|
87
|
+
const _componentAnnotation = (props) => {
|
|
88
|
+
return React.createElement((nested_option_1.default), {
|
|
89
|
+
...props,
|
|
90
|
+
elementDescriptor: {
|
|
91
|
+
OptionName: "annotations",
|
|
92
|
+
IsCollectionItem: true,
|
|
93
|
+
ExpectedChildren: {
|
|
94
|
+
annotationBorder: { optionName: "border", isCollectionItem: false },
|
|
95
|
+
border: { optionName: "border", isCollectionItem: false },
|
|
96
|
+
font: { optionName: "font", isCollectionItem: false },
|
|
97
|
+
image: { optionName: "image", isCollectionItem: false },
|
|
98
|
+
shadow: { optionName: "shadow", isCollectionItem: false }
|
|
99
|
+
},
|
|
100
|
+
TemplateProps: [{
|
|
101
|
+
tmplOption: "template",
|
|
102
|
+
render: "render",
|
|
103
|
+
component: "component"
|
|
104
|
+
}, {
|
|
105
|
+
tmplOption: "tooltipTemplate",
|
|
106
|
+
render: "tooltipRender",
|
|
107
|
+
component: "tooltipComponent"
|
|
108
|
+
}],
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
const Annotation = Object.assign(_componentAnnotation, {
|
|
113
|
+
componentType: "option",
|
|
114
|
+
});
|
|
115
|
+
exports.Annotation = Annotation;
|
|
116
|
+
const _componentAnnotationBorder = (props) => {
|
|
117
|
+
return React.createElement((nested_option_1.default), {
|
|
118
|
+
...props,
|
|
119
|
+
elementDescriptor: {
|
|
120
|
+
OptionName: "border",
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
const AnnotationBorder = Object.assign(_componentAnnotationBorder, {
|
|
125
|
+
componentType: "option",
|
|
126
|
+
});
|
|
127
|
+
exports.AnnotationBorder = AnnotationBorder;
|
|
128
|
+
const _componentBackground = (props) => {
|
|
129
|
+
return React.createElement((nested_option_1.default), {
|
|
130
|
+
...props,
|
|
131
|
+
elementDescriptor: {
|
|
132
|
+
OptionName: "background",
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
const Background = Object.assign(_componentBackground, {
|
|
137
|
+
componentType: "option",
|
|
138
|
+
});
|
|
139
|
+
exports.Background = Background;
|
|
140
|
+
const _componentBorder = (props) => {
|
|
141
|
+
return React.createElement((nested_option_1.default), {
|
|
142
|
+
...props,
|
|
143
|
+
elementDescriptor: {
|
|
144
|
+
OptionName: "border",
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
const Border = Object.assign(_componentBorder, {
|
|
149
|
+
componentType: "option",
|
|
150
|
+
});
|
|
151
|
+
exports.Border = Border;
|
|
152
|
+
const _componentCommonAnnotationSettings = (props) => {
|
|
153
|
+
return React.createElement((nested_option_1.default), {
|
|
154
|
+
...props,
|
|
155
|
+
elementDescriptor: {
|
|
156
|
+
OptionName: "commonAnnotationSettings",
|
|
157
|
+
ExpectedChildren: {
|
|
158
|
+
annotationBorder: { optionName: "border", isCollectionItem: false },
|
|
159
|
+
border: { optionName: "border", isCollectionItem: false },
|
|
160
|
+
font: { optionName: "font", isCollectionItem: false },
|
|
161
|
+
image: { optionName: "image", isCollectionItem: false },
|
|
162
|
+
shadow: { optionName: "shadow", isCollectionItem: false }
|
|
163
|
+
},
|
|
164
|
+
TemplateProps: [{
|
|
165
|
+
tmplOption: "template",
|
|
166
|
+
render: "render",
|
|
167
|
+
component: "component"
|
|
168
|
+
}, {
|
|
169
|
+
tmplOption: "tooltipTemplate",
|
|
170
|
+
render: "tooltipRender",
|
|
171
|
+
component: "tooltipComponent"
|
|
172
|
+
}],
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
const CommonAnnotationSettings = Object.assign(_componentCommonAnnotationSettings, {
|
|
177
|
+
componentType: "option",
|
|
178
|
+
});
|
|
179
|
+
exports.CommonAnnotationSettings = CommonAnnotationSettings;
|
|
180
|
+
const _componentControlBar = (props) => {
|
|
181
|
+
return React.createElement((nested_option_1.default), {
|
|
182
|
+
...props,
|
|
183
|
+
elementDescriptor: {
|
|
184
|
+
OptionName: "controlBar",
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
const ControlBar = Object.assign(_componentControlBar, {
|
|
189
|
+
componentType: "option",
|
|
190
|
+
});
|
|
191
|
+
exports.ControlBar = ControlBar;
|
|
192
|
+
const _componentExport = (props) => {
|
|
193
|
+
return React.createElement((nested_option_1.default), {
|
|
194
|
+
...props,
|
|
195
|
+
elementDescriptor: {
|
|
196
|
+
OptionName: "export",
|
|
197
|
+
},
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
const Export = Object.assign(_componentExport, {
|
|
201
|
+
componentType: "option",
|
|
202
|
+
});
|
|
203
|
+
exports.Export = Export;
|
|
204
|
+
const _componentFont = (props) => {
|
|
205
|
+
return React.createElement((nested_option_1.default), {
|
|
206
|
+
...props,
|
|
207
|
+
elementDescriptor: {
|
|
208
|
+
OptionName: "font",
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
|
+
};
|
|
212
|
+
const Font = Object.assign(_componentFont, {
|
|
213
|
+
componentType: "option",
|
|
214
|
+
});
|
|
215
|
+
exports.Font = Font;
|
|
216
|
+
const _componentImage = (props) => {
|
|
217
|
+
return React.createElement((nested_option_1.default), {
|
|
218
|
+
...props,
|
|
219
|
+
elementDescriptor: {
|
|
220
|
+
OptionName: "image",
|
|
221
|
+
},
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
const Image = Object.assign(_componentImage, {
|
|
225
|
+
componentType: "option",
|
|
226
|
+
});
|
|
227
|
+
exports.Image = Image;
|
|
228
|
+
const _componentLabel = (props) => {
|
|
229
|
+
return React.createElement((nested_option_1.default), {
|
|
230
|
+
...props,
|
|
231
|
+
elementDescriptor: {
|
|
232
|
+
OptionName: "label",
|
|
233
|
+
ExpectedChildren: {
|
|
234
|
+
font: { optionName: "font", isCollectionItem: false }
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
const Label = Object.assign(_componentLabel, {
|
|
240
|
+
componentType: "option",
|
|
241
|
+
});
|
|
242
|
+
exports.Label = Label;
|
|
243
|
+
const _componentLayer = (props) => {
|
|
244
|
+
return React.createElement((nested_option_1.default), {
|
|
245
|
+
...props,
|
|
246
|
+
elementDescriptor: {
|
|
247
|
+
OptionName: "layers",
|
|
248
|
+
IsCollectionItem: true,
|
|
249
|
+
ExpectedChildren: {
|
|
250
|
+
label: { optionName: "label", isCollectionItem: false }
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
const Layer = Object.assign(_componentLayer, {
|
|
256
|
+
componentType: "option",
|
|
257
|
+
});
|
|
258
|
+
exports.Layer = Layer;
|
|
259
|
+
const _componentLegend = (props) => {
|
|
260
|
+
return React.createElement((nested_option_1.default), {
|
|
261
|
+
...props,
|
|
262
|
+
elementDescriptor: {
|
|
263
|
+
OptionName: "legends",
|
|
264
|
+
IsCollectionItem: true,
|
|
265
|
+
ExpectedChildren: {
|
|
266
|
+
annotationBorder: { optionName: "border", isCollectionItem: false },
|
|
267
|
+
border: { optionName: "border", isCollectionItem: false },
|
|
268
|
+
font: { optionName: "font", isCollectionItem: false },
|
|
269
|
+
legendTitle: { optionName: "title", isCollectionItem: false },
|
|
270
|
+
margin: { optionName: "margin", isCollectionItem: false },
|
|
271
|
+
source: { optionName: "source", isCollectionItem: false },
|
|
272
|
+
title: { optionName: "title", isCollectionItem: false }
|
|
273
|
+
},
|
|
274
|
+
TemplateProps: [{
|
|
275
|
+
tmplOption: "markerTemplate",
|
|
276
|
+
render: "markerRender",
|
|
277
|
+
component: "markerComponent"
|
|
278
|
+
}],
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
const Legend = Object.assign(_componentLegend, {
|
|
283
|
+
componentType: "option",
|
|
284
|
+
});
|
|
285
|
+
exports.Legend = Legend;
|
|
286
|
+
const _componentLegendTitle = (props) => {
|
|
287
|
+
return React.createElement((nested_option_1.default), {
|
|
288
|
+
...props,
|
|
289
|
+
elementDescriptor: {
|
|
290
|
+
OptionName: "title",
|
|
291
|
+
ExpectedChildren: {
|
|
292
|
+
font: { optionName: "font", isCollectionItem: false },
|
|
293
|
+
legendTitleSubtitle: { optionName: "subtitle", isCollectionItem: false },
|
|
294
|
+
margin: { optionName: "margin", isCollectionItem: false },
|
|
295
|
+
subtitle: { optionName: "subtitle", isCollectionItem: false }
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
const LegendTitle = Object.assign(_componentLegendTitle, {
|
|
301
|
+
componentType: "option",
|
|
302
|
+
});
|
|
303
|
+
exports.LegendTitle = LegendTitle;
|
|
304
|
+
const _componentLegendTitleSubtitle = (props) => {
|
|
305
|
+
return React.createElement((nested_option_1.default), {
|
|
306
|
+
...props,
|
|
307
|
+
elementDescriptor: {
|
|
308
|
+
OptionName: "subtitle",
|
|
309
|
+
ExpectedChildren: {
|
|
310
|
+
font: { optionName: "font", isCollectionItem: false }
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
const LegendTitleSubtitle = Object.assign(_componentLegendTitleSubtitle, {
|
|
316
|
+
componentType: "option",
|
|
317
|
+
});
|
|
318
|
+
exports.LegendTitleSubtitle = LegendTitleSubtitle;
|
|
319
|
+
const _componentLoadingIndicator = (props) => {
|
|
320
|
+
return React.createElement((nested_option_1.default), {
|
|
321
|
+
...props,
|
|
322
|
+
elementDescriptor: {
|
|
323
|
+
OptionName: "loadingIndicator",
|
|
324
|
+
DefaultsProps: {
|
|
325
|
+
defaultShow: "show"
|
|
326
|
+
},
|
|
327
|
+
ExpectedChildren: {
|
|
328
|
+
font: { optionName: "font", isCollectionItem: false }
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
const LoadingIndicator = Object.assign(_componentLoadingIndicator, {
|
|
334
|
+
componentType: "option",
|
|
335
|
+
});
|
|
336
|
+
exports.LoadingIndicator = LoadingIndicator;
|
|
337
|
+
const _componentMargin = (props) => {
|
|
338
|
+
return React.createElement((nested_option_1.default), {
|
|
339
|
+
...props,
|
|
340
|
+
elementDescriptor: {
|
|
341
|
+
OptionName: "margin",
|
|
342
|
+
},
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
const Margin = Object.assign(_componentMargin, {
|
|
346
|
+
componentType: "option",
|
|
347
|
+
});
|
|
348
|
+
exports.Margin = Margin;
|
|
349
|
+
const _componentProjection = (props) => {
|
|
350
|
+
return React.createElement((nested_option_1.default), {
|
|
351
|
+
...props,
|
|
352
|
+
elementDescriptor: {
|
|
353
|
+
OptionName: "projection",
|
|
354
|
+
},
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
const Projection = Object.assign(_componentProjection, {
|
|
358
|
+
componentType: "option",
|
|
359
|
+
});
|
|
360
|
+
exports.Projection = Projection;
|
|
361
|
+
const _componentShadow = (props) => {
|
|
362
|
+
return React.createElement((nested_option_1.default), {
|
|
363
|
+
...props,
|
|
364
|
+
elementDescriptor: {
|
|
365
|
+
OptionName: "shadow",
|
|
366
|
+
},
|
|
367
|
+
});
|
|
368
|
+
};
|
|
369
|
+
const Shadow = Object.assign(_componentShadow, {
|
|
370
|
+
componentType: "option",
|
|
371
|
+
});
|
|
372
|
+
exports.Shadow = Shadow;
|
|
373
|
+
const _componentSize = (props) => {
|
|
374
|
+
return React.createElement((nested_option_1.default), {
|
|
375
|
+
...props,
|
|
376
|
+
elementDescriptor: {
|
|
377
|
+
OptionName: "size",
|
|
378
|
+
},
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
const Size = Object.assign(_componentSize, {
|
|
382
|
+
componentType: "option",
|
|
383
|
+
});
|
|
384
|
+
exports.Size = Size;
|
|
385
|
+
const _componentSource = (props) => {
|
|
386
|
+
return React.createElement((nested_option_1.default), {
|
|
387
|
+
...props,
|
|
388
|
+
elementDescriptor: {
|
|
389
|
+
OptionName: "source",
|
|
390
|
+
},
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
const Source = Object.assign(_componentSource, {
|
|
394
|
+
componentType: "option",
|
|
395
|
+
});
|
|
396
|
+
exports.Source = Source;
|
|
397
|
+
const _componentSubtitle = (props) => {
|
|
398
|
+
return React.createElement((nested_option_1.default), {
|
|
399
|
+
...props,
|
|
400
|
+
elementDescriptor: {
|
|
401
|
+
OptionName: "subtitle",
|
|
402
|
+
ExpectedChildren: {
|
|
403
|
+
font: { optionName: "font", isCollectionItem: false }
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
const Subtitle = Object.assign(_componentSubtitle, {
|
|
409
|
+
componentType: "option",
|
|
410
|
+
});
|
|
411
|
+
exports.Subtitle = Subtitle;
|
|
412
|
+
const _componentTitle = (props) => {
|
|
413
|
+
return React.createElement((nested_option_1.default), {
|
|
414
|
+
...props,
|
|
415
|
+
elementDescriptor: {
|
|
416
|
+
OptionName: "title",
|
|
417
|
+
ExpectedChildren: {
|
|
418
|
+
font: { optionName: "font", isCollectionItem: false },
|
|
419
|
+
legendTitleSubtitle: { optionName: "subtitle", isCollectionItem: false },
|
|
420
|
+
margin: { optionName: "margin", isCollectionItem: false },
|
|
421
|
+
vectorMapTitleSubtitle: { optionName: "subtitle", isCollectionItem: false }
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
};
|
|
426
|
+
const Title = Object.assign(_componentTitle, {
|
|
427
|
+
componentType: "option",
|
|
428
|
+
});
|
|
429
|
+
exports.Title = Title;
|
|
430
|
+
const _componentTooltip = (props) => {
|
|
431
|
+
return React.createElement((nested_option_1.default), {
|
|
432
|
+
...props,
|
|
433
|
+
elementDescriptor: {
|
|
434
|
+
OptionName: "tooltip",
|
|
435
|
+
ExpectedChildren: {
|
|
436
|
+
border: { optionName: "border", isCollectionItem: false },
|
|
437
|
+
font: { optionName: "font", isCollectionItem: false },
|
|
438
|
+
shadow: { optionName: "shadow", isCollectionItem: false },
|
|
439
|
+
tooltipBorder: { optionName: "border", isCollectionItem: false }
|
|
440
|
+
},
|
|
441
|
+
TemplateProps: [{
|
|
442
|
+
tmplOption: "contentTemplate",
|
|
443
|
+
render: "contentRender",
|
|
444
|
+
component: "contentComponent"
|
|
445
|
+
}],
|
|
446
|
+
},
|
|
447
|
+
});
|
|
448
|
+
};
|
|
449
|
+
const Tooltip = Object.assign(_componentTooltip, {
|
|
450
|
+
componentType: "option",
|
|
451
|
+
});
|
|
452
|
+
exports.Tooltip = Tooltip;
|
|
453
|
+
const _componentTooltipBorder = (props) => {
|
|
454
|
+
return React.createElement((nested_option_1.default), {
|
|
455
|
+
...props,
|
|
456
|
+
elementDescriptor: {
|
|
457
|
+
OptionName: "border",
|
|
458
|
+
},
|
|
459
|
+
});
|
|
460
|
+
};
|
|
461
|
+
const TooltipBorder = Object.assign(_componentTooltipBorder, {
|
|
462
|
+
componentType: "option",
|
|
463
|
+
});
|
|
464
|
+
exports.TooltipBorder = TooltipBorder;
|
|
465
|
+
const _componentVectorMapTitle = (props) => {
|
|
466
|
+
return React.createElement((nested_option_1.default), {
|
|
467
|
+
...props,
|
|
468
|
+
elementDescriptor: {
|
|
469
|
+
OptionName: "title",
|
|
470
|
+
ExpectedChildren: {
|
|
471
|
+
font: { optionName: "font", isCollectionItem: false },
|
|
472
|
+
margin: { optionName: "margin", isCollectionItem: false },
|
|
473
|
+
subtitle: { optionName: "subtitle", isCollectionItem: false },
|
|
474
|
+
vectorMapTitleSubtitle: { optionName: "subtitle", isCollectionItem: false }
|
|
475
|
+
},
|
|
476
|
+
},
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
const VectorMapTitle = Object.assign(_componentVectorMapTitle, {
|
|
480
|
+
componentType: "option",
|
|
481
|
+
});
|
|
482
|
+
exports.VectorMapTitle = VectorMapTitle;
|
|
483
|
+
const _componentVectorMapTitleSubtitle = (props) => {
|
|
484
|
+
return React.createElement((nested_option_1.default), {
|
|
485
|
+
...props,
|
|
486
|
+
elementDescriptor: {
|
|
487
|
+
OptionName: "subtitle",
|
|
488
|
+
ExpectedChildren: {
|
|
489
|
+
font: { optionName: "font", isCollectionItem: false }
|
|
490
|
+
},
|
|
491
|
+
},
|
|
492
|
+
});
|
|
493
|
+
};
|
|
494
|
+
const VectorMapTitleSubtitle = Object.assign(_componentVectorMapTitleSubtitle, {
|
|
495
|
+
componentType: "option",
|
|
496
|
+
});
|
|
497
|
+
exports.VectorMapTitleSubtitle = VectorMapTitleSubtitle;
|
|
498
|
+
exports.default = VectorMap;
|