@mwater/visualization 5.1.0 → 5.2.0
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/lib/GlobalFilter.d.ts +13 -0
- package/lib/GlobalFilter.js +2 -0
- package/lib/MWaterCompleteTableSelectComponent.d.ts +2 -9
- package/lib/MWaterContextComponent.d.ts +15 -3
- package/lib/MWaterContextComponent.js +38 -13
- package/lib/MWaterCustomTablesetListComponent.js +9 -3
- package/lib/MWaterGlobalFiltersComponent.d.ts +6 -5
- package/lib/MWaterGlobalFiltersComponent.js +4 -4
- package/lib/MWaterLoaderComponent.d.ts +12 -2
- package/lib/MWaterLoaderComponent.js +9 -1
- package/lib/axes/Axis.d.ts +20 -25
- package/lib/axes/AxisBuilder.js +9 -7
- package/lib/axes/AxisComponent.d.ts +4 -4
- package/lib/dashboards/DashboardComponent.d.ts +0 -5
- package/lib/dashboards/DashboardComponent.js +2 -29
- package/lib/dashboards/DashboardDesign.d.ts +2 -17
- package/lib/dashboards/DashboardViewComponent.js +3 -4
- package/lib/dashboards/LayoutOptionsComponent.js +4 -3
- package/lib/dashboards/SettingsModalComponent.d.ts +4 -15
- package/lib/dashboards/SettingsModalComponent.js +24 -38
- package/lib/datagrids/DatagridComponent.d.ts +2 -9
- package/lib/datagrids/DatagridDataSource.d.ts +3 -3
- package/lib/datagrids/DatagridDataSource.js +0 -14
- package/lib/datagrids/DatagridDesignerComponent.d.ts +2 -93
- package/lib/datagrids/DatagridDesignerComponent.js +8 -6
- package/lib/datagrids/DatagridViewComponent.js +1 -1
- package/lib/datagrids/FindReplaceModalComponent.d.ts +4 -20
- package/lib/datagrids/FindReplaceModalComponent.js +27 -13
- package/lib/datagrids/ServerDatagridDataSource.d.ts +1 -1
- package/lib/datagrids/ServerDatagridDataSource.js +1 -3
- package/lib/demo.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/layouts/blocks/BlocksDisplayComponent.d.ts +2 -1
- package/lib/layouts/grid/GridLayoutManager.d.ts +2 -1
- package/lib/maps/BufferLayer.js +3 -1
- package/lib/maps/ClusterLayer.js +3 -1
- package/lib/maps/GridLayer.js +5 -3
- package/lib/maps/GridLayerDesigner.js +0 -1
- package/lib/maps/LayerSwitcherComponent.js +1 -1
- package/lib/maps/MapComponent.d.ts +2 -7
- package/lib/maps/MapDesign.d.ts +2 -13
- package/lib/maps/MapFiltersDesignerComponent.d.ts +0 -4
- package/lib/maps/MapFiltersDesignerComponent.js +4 -5
- package/lib/maps/RasterMapViewComponent.d.ts +2 -9
- package/lib/maps/RegionSelectComponent.d.ts +2 -1
- package/lib/maps/ServerMapDataSource.d.ts +1 -1
- package/lib/maps/vectorMaps.d.ts +1 -0
- package/lib/maps/vectorMaps.js +10 -2
- package/lib/quickfilter/QuickfilterCompiler.d.ts +1 -1
- package/lib/widgets/IFrameWidgetComponent.d.ts +2 -9
- package/lib/widgets/ImageWidgetComponent.d.ts +6 -24
- package/lib/widgets/MapWidget.d.ts +2 -7
- package/lib/widgets/MarkdownWidget.d.ts +2 -7
- package/lib/widgets/TOCWidget.d.ts +2 -9
- package/lib/widgets/charts/ChartWidget.d.ts +3 -15
- package/lib/widgets/charts/imagemosaic/ImagePopupComponent.d.ts +2 -7
- package/lib/widgets/charts/layered/LayeredChartDesignerComponent.d.ts +2 -31
- package/lib/widgets/charts/layered/LayeredChartLayerDesignerComponent.d.ts +2 -7
- package/lib/widgets/charts/pivot/IntersectionDesignerComponent.d.ts +73 -66
- package/lib/widgets/charts/pivot/PivotChartDesignerComponent.d.ts +10 -6
- package/lib/widgets/charts/pivot/PivotChartViewComponent.d.ts +3 -22
- package/lib/widgets/charts/pivot/SegmentDesignerComponent.d.ts +55 -58
- package/lib/widgets/charts/table/TableChartViewComponent.js +21 -7
- package/lib/widgets/text/ExprInsertModalComponent.d.ts +2 -13
- package/lib/widgets/text/ExprUpdateModalComponent.d.ts +2 -13
- package/lib/widgets/text/TextWidgetDesign.d.ts +3 -1
- package/package.json +1 -1
- package/src/GlobalFilter.ts +17 -0
- package/src/MWaterContextComponent.tsx +37 -19
- package/src/MWaterCustomTablesetListComponent.tsx +21 -3
- package/src/MWaterGlobalFiltersComponent.ts +8 -8
- package/src/MWaterLoaderComponent.ts +8 -1
- package/src/axes/Axis.ts +24 -25
- package/src/axes/AxisBuilder.ts +9 -8
- package/src/dashboards/DashboardComponent.tsx +2 -40
- package/src/dashboards/DashboardDesign.ts +2 -22
- package/src/dashboards/DashboardViewComponent.ts +4 -5
- package/src/dashboards/LayoutOptionsComponent.tsx +6 -4
- package/src/dashboards/SettingsModalComponent.tsx +170 -0
- package/src/datagrids/DatagridDataSource.ts +6 -12
- package/src/datagrids/DatagridDesignerComponent.tsx +22 -18
- package/src/datagrids/DatagridViewComponent.ts +3 -3
- package/src/datagrids/ExprCellComponent.ts +0 -1
- package/src/datagrids/FindReplaceModalComponent.ts +39 -22
- package/src/datagrids/ServerDatagridDataSource.ts +1 -2
- package/src/demo.ts +1 -1
- package/src/index.ts +1 -0
- package/src/maps/BufferLayer.ts +3 -1
- package/src/maps/ClusterLayer.ts +3 -1
- package/src/maps/GridLayer.ts +5 -3
- package/src/maps/GridLayerDesigner.tsx +0 -1
- package/src/maps/LayerSwitcherComponent.tsx +1 -1
- package/src/maps/MapDesign.ts +2 -17
- package/src/maps/{MapFiltersDesignerComponent.ts → MapFiltersDesignerComponent.tsx} +25 -25
- package/src/maps/ServerMapDataSource.ts +1 -1
- package/src/maps/VectorMapViewComponent.tsx +0 -1
- package/src/maps/vectorMaps.tsx +10 -1
- package/src/quickfilter/QuickfilterCompiler.ts +1 -1
- package/src/widgets/charts/table/TableChartViewComponent.ts +21 -7
- package/src/widgets/text/TextWidgetDesign.ts +4 -1
- package/src/dashboards/SettingsModalComponent.ts +0 -169
package/lib/maps/MapDesign.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Expr
|
|
1
|
+
import { Expr } from "@mwater/expressions";
|
|
2
2
|
import { Quickfilter } from "../quickfilter/Quickfilter";
|
|
3
|
+
import { GlobalFilter } from "../GlobalFilter";
|
|
3
4
|
/** Maps are stored as a base layer, a series of layers and filters. */
|
|
4
5
|
export interface MapDesign {
|
|
5
6
|
/** "bing_road"/"bing_aerial"/"cartodb_positron"/"cartodb_dark_matter"/"blank" */
|
|
@@ -63,15 +64,3 @@ export interface MapLayerView {
|
|
|
63
64
|
/** true to hide legend */
|
|
64
65
|
hideLegend?: boolean;
|
|
65
66
|
}
|
|
66
|
-
/** Global filters apply to multiple tables at once if a certain column is present. User-interface to set them is application-specific
|
|
67
|
-
and the default (non-mWater) dashboard applies them but does not allow editing. */
|
|
68
|
-
export interface GlobalFilter {
|
|
69
|
-
/** id of column to filter */
|
|
70
|
-
columnId: string;
|
|
71
|
-
/** type of column to filter (to ensure that consistent) */
|
|
72
|
-
columnType: LiteralType;
|
|
73
|
-
/** op of expression for filtering */
|
|
74
|
-
op: string;
|
|
75
|
-
/** array of expressions to use for filtering. field expression for column will be injected as expression 0 in the resulting filter expression */
|
|
76
|
-
exprs: Expr[];
|
|
77
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { DataSource, Schema } from "@mwater/expressions";
|
|
4
3
|
export interface MapFiltersDesignerComponentProps {
|
|
@@ -12,9 +11,6 @@ export interface MapFiltersDesignerComponentProps {
|
|
|
12
11
|
onDesignChange: any;
|
|
13
12
|
}
|
|
14
13
|
export default class MapFiltersDesignerComponent extends React.Component<MapFiltersDesignerComponentProps> {
|
|
15
|
-
static contextTypes: {
|
|
16
|
-
globalFiltersElementFactory: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
-
};
|
|
18
14
|
handleFiltersChange: (filters: any) => any;
|
|
19
15
|
handleGlobalFiltersChange: (globalFilters: any) => any;
|
|
20
16
|
render(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement> | null;
|
|
@@ -27,15 +27,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const lodash_1 = __importDefault(require("lodash"));
|
|
30
|
-
const prop_types_1 = __importDefault(require("prop-types"));
|
|
31
30
|
const react_1 = __importDefault(require("react"));
|
|
32
31
|
const R = react_1.default.createElement;
|
|
33
32
|
const PopoverHelpComponent_1 = __importDefault(require("@mwater/react-library/lib/PopoverHelpComponent"));
|
|
34
33
|
const FiltersDesignerComponent_1 = __importDefault(require("../FiltersDesignerComponent"));
|
|
35
34
|
const MapUtils = __importStar(require("./MapUtils"));
|
|
35
|
+
const MWaterContextComponent_1 = require("../MWaterContextComponent");
|
|
36
36
|
// Designer for filters for a map
|
|
37
37
|
class MapFiltersDesignerComponent extends react_1.default.Component {
|
|
38
|
-
static contextTypes = { globalFiltersElementFactory: prop_types_1.default.func };
|
|
39
38
|
handleFiltersChange = (filters) => {
|
|
40
39
|
const design = lodash_1.default.extend({}, this.props.design, { filters });
|
|
41
40
|
return this.props.onDesignChange(design);
|
|
@@ -56,15 +55,15 @@ class MapFiltersDesignerComponent extends react_1.default.Component {
|
|
|
56
55
|
filters: this.props.design.filters,
|
|
57
56
|
onFiltersChange: this.handleFiltersChange,
|
|
58
57
|
filterableTables
|
|
59
|
-
}))),
|
|
60
|
-
? R("div", { className: "mb-3" }, R("label", { className: "text-muted" }, "Global Filters "), R("div", { style: { margin: 5 } },
|
|
58
|
+
}))), react_1.default.createElement(MWaterContextComponent_1.GlobalFiltersElementFactoryContext.Consumer, null, globalFiltersElementFactory => globalFiltersElementFactory
|
|
59
|
+
? R("div", { className: "mb-3" }, R("label", { className: "text-muted" }, "Global Filters "), R("div", { style: { margin: 5 } }, globalFiltersElementFactory({
|
|
61
60
|
schema: this.props.schema,
|
|
62
61
|
dataSource: this.props.dataSource,
|
|
63
62
|
filterableTables,
|
|
64
63
|
globalFilters: this.props.design.globalFilters || [],
|
|
65
64
|
onChange: this.handleGlobalFiltersChange
|
|
66
65
|
})))
|
|
67
|
-
: undefined);
|
|
66
|
+
: undefined));
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
exports.default = MapFiltersDesignerComponent;
|
|
@@ -2,6 +2,7 @@ import PropTypes from "prop-types";
|
|
|
2
2
|
import React, { ReactNode } from "react";
|
|
3
3
|
import LeafletMapComponent from "./LeafletMapComponent";
|
|
4
4
|
import { Schema, DataSource } from "@mwater/expressions";
|
|
5
|
+
import ModalPopupComponent from "@mwater/react-library/lib/ModalPopupComponent";
|
|
5
6
|
import { JsonQLFilter } from "../JsonQLFilter";
|
|
6
7
|
import { MapDesign } from "./MapDesign";
|
|
7
8
|
import { MapDataSource } from "./MapDataSource";
|
|
@@ -64,15 +65,7 @@ export default class RasterMapViewComponent extends React.Component<RasterMapVie
|
|
|
64
65
|
locale: string;
|
|
65
66
|
onHide: () => void;
|
|
66
67
|
}>;
|
|
67
|
-
renderPopup(): React.CElement<
|
|
68
|
-
onClose: () => void;
|
|
69
|
-
showCloseX: boolean;
|
|
70
|
-
size: string;
|
|
71
|
-
}, React.Component<{
|
|
72
|
-
onClose: () => void;
|
|
73
|
-
showCloseX: boolean;
|
|
74
|
-
size: string;
|
|
75
|
-
}, any, any>> | null;
|
|
68
|
+
renderPopup(): React.CElement<import("@mwater/react-library/lib/ModalPopupComponent").ModalPopupComponentProps, ModalPopupComponent> | null;
|
|
76
69
|
render(): React.DetailedReactHTMLElement<{
|
|
77
70
|
style: {
|
|
78
71
|
width: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { IdLiteralComponent } from "@mwater/expressions-ui";
|
|
2
3
|
import { DataSource, Schema } from "@mwater/expressions";
|
|
3
4
|
export interface RegionSelectComponentProps {
|
|
4
5
|
schema: Schema;
|
|
@@ -19,5 +20,5 @@ export default class RegionSelectComponent extends React.Component<RegionSelectC
|
|
|
19
20
|
regionsTable: string;
|
|
20
21
|
};
|
|
21
22
|
handleChange: (id: any) => void;
|
|
22
|
-
render(): React.
|
|
23
|
+
render(): React.CElement<import("@mwater/expressions-ui/lib/IdLiteralComponent").IdLiteralComponentProps, IdLiteralComponent>;
|
|
23
24
|
}
|
|
@@ -22,7 +22,7 @@ interface ServerMapDataSourceOptions {
|
|
|
22
22
|
/** map id to use on server */
|
|
23
23
|
mapId: string;
|
|
24
24
|
/** revision to use to allow caching */
|
|
25
|
-
rev:
|
|
25
|
+
rev: number;
|
|
26
26
|
}
|
|
27
27
|
interface ServerMapLayerDataSourceOptions extends ServerMapDataSourceOptions {
|
|
28
28
|
layerView: MapLayerView;
|
package/lib/maps/vectorMaps.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Map, LngLatBoundsLike } from "maplibre-gl";
|
|
|
2
2
|
import "maplibre-gl/dist/maplibre-gl.css";
|
|
3
3
|
import "./VectorMapViewComponent.css";
|
|
4
4
|
import React from "react";
|
|
5
|
+
export declare function setPrintingModeEnabled(val: boolean): void;
|
|
5
6
|
/** This must be called to set the appropriate key before use. If it is not set, vector maps will not function.
|
|
6
7
|
* Maps will fall back to leaflet if the key is not set or if set to ""
|
|
7
8
|
*/
|
package/lib/maps/vectorMaps.js
CHANGED
|
@@ -3,13 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.usePersistedMapBounds = exports.VectorMapLogo = exports.AttributionControl = exports.mergeBaseAndUserStyle = exports.useBaseStyle = exports.useStyleMap = exports.useHoverCursor = exports.useVectorMap = exports.areVectorMapsEnabled = exports.getMapTilerApiKey = exports.setMapTilerApiKey = void 0;
|
|
6
|
+
exports.usePersistedMapBounds = exports.VectorMapLogo = exports.AttributionControl = exports.mergeBaseAndUserStyle = exports.useBaseStyle = exports.useStyleMap = exports.useHoverCursor = exports.useVectorMap = exports.areVectorMapsEnabled = exports.getMapTilerApiKey = exports.setMapTilerApiKey = exports.setPrintingModeEnabled = void 0;
|
|
7
7
|
const maplibre_gl_1 = __importDefault(require("maplibre-gl"));
|
|
8
8
|
const react_1 = require("react");
|
|
9
9
|
const mapSymbols_1 = require("./mapSymbols");
|
|
10
10
|
require("maplibre-gl/dist/maplibre-gl.css");
|
|
11
11
|
require("./VectorMapViewComponent.css");
|
|
12
12
|
const react_2 = __importDefault(require("react"));
|
|
13
|
+
/** Set to true to enable printing by preserving the drawing buffer */
|
|
14
|
+
let printingModeEnabled = false;
|
|
15
|
+
function setPrintingModeEnabled(val) {
|
|
16
|
+
printingModeEnabled = val;
|
|
17
|
+
}
|
|
18
|
+
exports.setPrintingModeEnabled = setPrintingModeEnabled;
|
|
13
19
|
/* Hooks and functions related to displaying a vector map */
|
|
14
20
|
let mapTilerApiKey = "";
|
|
15
21
|
/** This must be called to set the appropriate key before use. If it is not set, vector maps will not function.
|
|
@@ -45,7 +51,8 @@ function useVectorMap(options) {
|
|
|
45
51
|
return;
|
|
46
52
|
}
|
|
47
53
|
const observer = new IntersectionObserver(function (entries) {
|
|
48
|
-
|
|
54
|
+
// When in printing mode, always visible as we need to render the map
|
|
55
|
+
setMapDivVisible(entries[0].isIntersecting || printingModeEnabled);
|
|
49
56
|
});
|
|
50
57
|
observer.observe(divRef);
|
|
51
58
|
return () => {
|
|
@@ -82,6 +89,7 @@ function useVectorMap(options) {
|
|
|
82
89
|
[-179.9, -85],
|
|
83
90
|
[179.9, 85] // Northeast coordinates
|
|
84
91
|
],
|
|
92
|
+
preserveDrawingBuffer: printingModeEnabled
|
|
85
93
|
});
|
|
86
94
|
setHasWebGLContext(true);
|
|
87
95
|
// Add listener for losing context
|
|
@@ -12,5 +12,5 @@ export default class QuickfilterCompiler {
|
|
|
12
12
|
* See README for values
|
|
13
13
|
*/
|
|
14
14
|
compile(design: Quickfilter[] | undefined, values: any[] | null, locks: QuickfilterLock[] | null | undefined): JsonQLFilter[];
|
|
15
|
-
compileToFilterExpr(expr: any, value: any, multi
|
|
15
|
+
compileToFilterExpr(expr: any, value: any, multi?: boolean): OpExpr | null;
|
|
16
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import DropdownWidgetComponent from "./DropdownWidgetComponent";
|
|
3
|
+
import ModalPopupComponent from "@mwater/react-library/lib/ModalPopupComponent";
|
|
3
4
|
export interface IFrameWidgetComponentProps {
|
|
4
5
|
design: any;
|
|
5
6
|
/** Called with new design. null/undefined for readonly */
|
|
@@ -15,15 +16,7 @@ export default class IFrameWidgetComponent extends React.Component<IFrameWidgetC
|
|
|
15
16
|
constructor(props: any);
|
|
16
17
|
handleStartEditing: () => void;
|
|
17
18
|
handleEndEditing: () => any;
|
|
18
|
-
renderEditor(): React.CElement<
|
|
19
|
-
header: string;
|
|
20
|
-
showCloseX: boolean;
|
|
21
|
-
onClose: () => any;
|
|
22
|
-
}, React.Component<{
|
|
23
|
-
header: string;
|
|
24
|
-
showCloseX: boolean;
|
|
25
|
-
onClose: () => any;
|
|
26
|
-
}, any, any>> | null;
|
|
19
|
+
renderEditor(): React.CElement<import("@mwater/react-library/lib/ModalPopupComponent").ModalPopupComponentProps, ModalPopupComponent> | null;
|
|
27
20
|
renderEditLink(): React.DetailedReactHTMLElement<{
|
|
28
21
|
className: string;
|
|
29
22
|
onClick: () => void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import AsyncLoadComponent from "@mwater/react-library/lib/AsyncLoadComponent";
|
|
3
|
+
import AutoSizeComponent from "@mwater/react-library/lib/AutoSizeComponent";
|
|
3
4
|
import DropdownWidgetComponent from "./DropdownWidgetComponent";
|
|
5
|
+
import ModalPopupComponent from "@mwater/react-library/lib/ModalPopupComponent";
|
|
4
6
|
import { DataSource, Schema } from "@mwater/expressions";
|
|
5
7
|
import { WidgetDataSource } from "./WidgetDataSource";
|
|
6
8
|
import { ImageWidgetDesign } from "./ImageWidget";
|
|
@@ -30,16 +32,8 @@ export default class ImageWidgetComponent extends AsyncLoadComponent<ImageWidget
|
|
|
30
32
|
onClick: () => void;
|
|
31
33
|
}, HTMLElement>;
|
|
32
34
|
renderEditor(): React.CElement<any, ImageWidgetDesignComponent>;
|
|
33
|
-
renderExpression(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement> | React.CElement<
|
|
34
|
-
|
|
35
|
-
}, React.Component<{
|
|
36
|
-
injectHeight: boolean;
|
|
37
|
-
}, any, any>> | null;
|
|
38
|
-
renderContent(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement> | React.CElement<{
|
|
39
|
-
injectHeight: boolean;
|
|
40
|
-
}, React.Component<{
|
|
41
|
-
injectHeight: boolean;
|
|
42
|
-
}, any, any>> | React.CElement<RotatedImageComponentProps, RotatedImageComponent> | null;
|
|
35
|
+
renderExpression(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement> | React.CElement<import("@mwater/react-library/lib/AutoSizeComponent").AutoSizeComponentProps, AutoSizeComponent> | null;
|
|
36
|
+
renderContent(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement> | React.CElement<import("@mwater/react-library/lib/AutoSizeComponent").AutoSizeComponentProps, AutoSizeComponent> | React.CElement<RotatedImageComponentProps, RotatedImageComponent> | null;
|
|
43
37
|
render(): React.CElement<import("./DropdownWidgetComponent").DropdownWidgetComponentProps, DropdownWidgetComponent>;
|
|
44
38
|
}
|
|
45
39
|
interface ImageWidgetDesignComponentProps {
|
|
@@ -96,13 +90,7 @@ declare class ImageWidgetDesignComponent extends React.Component<ImageWidgetDesi
|
|
|
96
90
|
renderUrlEditor(): React.DetailedReactHTMLElement<{
|
|
97
91
|
className: string;
|
|
98
92
|
}, HTMLElement>;
|
|
99
|
-
render(): React.CElement<
|
|
100
|
-
header: string;
|
|
101
|
-
footer: React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
102
|
-
}, React.Component<{
|
|
103
|
-
header: string;
|
|
104
|
-
footer: React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
105
|
-
}, any, any>> | null;
|
|
93
|
+
render(): React.CElement<import("@mwater/react-library/lib/ModalPopupComponent").ModalPopupComponentProps, ModalPopupComponent> | null;
|
|
106
94
|
}
|
|
107
95
|
interface RotatedImageComponentProps {
|
|
108
96
|
/** Url of the image */
|
|
@@ -114,12 +102,6 @@ interface RotatedImageComponentProps {
|
|
|
114
102
|
openUrlInSameTab?: boolean;
|
|
115
103
|
}
|
|
116
104
|
declare class RotatedImageComponent extends React.Component<RotatedImageComponentProps> {
|
|
117
|
-
render(): React.CElement<
|
|
118
|
-
injectWidth: boolean;
|
|
119
|
-
injectHeight: boolean;
|
|
120
|
-
}, React.Component<{
|
|
121
|
-
injectWidth: boolean;
|
|
122
|
-
injectHeight: boolean;
|
|
123
|
-
}, any, any>>;
|
|
105
|
+
render(): React.CElement<import("@mwater/react-library/lib/AutoSizeComponent").AutoSizeComponentProps, AutoSizeComponent>;
|
|
124
106
|
}
|
|
125
107
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Widget, { CreateViewElementOptions } from "./Widget";
|
|
3
|
+
import ModalWindowComponent from "@mwater/react-library/lib/ModalWindowComponent";
|
|
3
4
|
import { DataSource, Schema } from "@mwater/expressions";
|
|
4
5
|
import { WidgetDataSource } from "./WidgetDataSource";
|
|
5
6
|
export default class MapWidget extends Widget {
|
|
@@ -36,13 +37,7 @@ declare class MapWidgetComponent extends React.Component<MapWidgetComponentProps
|
|
|
36
37
|
handleStartEditing: () => void;
|
|
37
38
|
handleEndEditing: () => void;
|
|
38
39
|
handleEditDesignChange: (design: any) => void;
|
|
39
|
-
renderEditor(): React.CElement<
|
|
40
|
-
isOpen: boolean;
|
|
41
|
-
onRequestClose: () => void;
|
|
42
|
-
}, React.Component<{
|
|
43
|
-
isOpen: boolean;
|
|
44
|
-
onRequestClose: () => void;
|
|
45
|
-
}, any, any>> | null;
|
|
40
|
+
renderEditor(): React.CElement<import("@mwater/react-library/lib/ModalWindowComponent").ModalWindowComponentProps, ModalWindowComponent> | null;
|
|
46
41
|
renderContent(design: any, onDesignChange: any, width: any, height: any): React.DetailedReactHTMLElement<{
|
|
47
42
|
style: {
|
|
48
43
|
width: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Widget, { CreateViewElementOptions } from "./Widget";
|
|
3
|
+
import ModalWindowComponent from "@mwater/react-library/lib/ModalWindowComponent";
|
|
3
4
|
export default class MarkdownWidget extends Widget {
|
|
4
5
|
createViewElement(options: CreateViewElementOptions): React.CElement<any, MarkdownWidgetComponent>;
|
|
5
6
|
isAutoHeight(): boolean;
|
|
@@ -20,13 +21,7 @@ declare class MarkdownWidgetComponent extends React.Component<MarkdownWidgetComp
|
|
|
20
21
|
handleStartEditing: () => void;
|
|
21
22
|
handleEndEditing: () => void;
|
|
22
23
|
handleEditDesignChange: (design: any) => void;
|
|
23
|
-
renderEditor(): React.CElement<
|
|
24
|
-
isOpen: boolean;
|
|
25
|
-
onRequestClose: () => void;
|
|
26
|
-
}, React.Component<{
|
|
27
|
-
isOpen: boolean;
|
|
28
|
-
onRequestClose: () => void;
|
|
29
|
-
}, any, any>> | null;
|
|
24
|
+
renderEditor(): React.CElement<import("@mwater/react-library/lib/ModalWindowComponent").ModalWindowComponentProps, ModalWindowComponent> | null;
|
|
30
25
|
renderContent(design: any): React.CElement<MarkdownWidgetViewComponentProps, MarkdownWidgetViewComponent>;
|
|
31
26
|
render(): React.DetailedReactHTMLElement<{
|
|
32
27
|
onDoubleClick: () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import Widget, { CreateViewElementOptions } from "./Widget";
|
|
4
|
+
import ModalPopupComponent from "@mwater/react-library/lib/ModalPopupComponent";
|
|
4
5
|
export default class TOCWidget extends Widget {
|
|
5
6
|
createViewElement(options: CreateViewElementOptions): React.CElement<any, TOCWidgetComponent>;
|
|
6
7
|
isAutoHeight(): boolean;
|
|
@@ -22,15 +23,7 @@ declare class TOCWidgetComponent extends React.Component {
|
|
|
22
23
|
constructor(props: any);
|
|
23
24
|
handleStartEditing: () => void;
|
|
24
25
|
handleEndEditing: () => void;
|
|
25
|
-
renderEditor(): React.CElement<
|
|
26
|
-
showCloseX: boolean;
|
|
27
|
-
header: string;
|
|
28
|
-
onClose: () => void;
|
|
29
|
-
}, React.Component<{
|
|
30
|
-
showCloseX: boolean;
|
|
31
|
-
header: string;
|
|
32
|
-
onClose: () => void;
|
|
33
|
-
}, any, any>> | null;
|
|
26
|
+
renderEditor(): React.CElement<import("@mwater/react-library/lib/ModalPopupComponent").ModalPopupComponentProps, ModalPopupComponent> | null;
|
|
34
27
|
renderContent(): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
35
28
|
render(): React.DetailedReactHTMLElement<{
|
|
36
29
|
onDoubleClick: () => void;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import Widget, { CreateViewElementOptions } from "./../Widget";
|
|
4
|
+
import ActionCancelModalComponent from "@mwater/react-library/lib/ActionCancelModalComponent";
|
|
4
5
|
import ChartViewComponent from "./ChartViewComponent";
|
|
6
|
+
import ModalWindowComponent from "@mwater/react-library/lib/ModalWindowComponent";
|
|
5
7
|
import { DataSource, Schema } from "@mwater/expressions";
|
|
6
8
|
import { WidgetDataSource } from "../WidgetDataSource";
|
|
7
9
|
import Chart from "./Chart";
|
|
@@ -57,21 +59,7 @@ declare class ChartWidgetComponent extends React.PureComponent<ChartWidgetCompon
|
|
|
57
59
|
handleCancelEditing: () => void;
|
|
58
60
|
handleEditDesignChange: (design: any) => void;
|
|
59
61
|
renderChart(design: any, onDesignChange: any, width: any, height: any): React.CElement<import("./ChartViewComponent").ChartViewComponentProps, ChartViewComponent>;
|
|
60
|
-
renderEditor(): React.CElement<
|
|
61
|
-
isOpen: boolean;
|
|
62
|
-
onRequestClose: () => void;
|
|
63
|
-
}, React.Component<{
|
|
64
|
-
isOpen: boolean;
|
|
65
|
-
onRequestClose: () => void;
|
|
66
|
-
}, any, any>> | React.CElement<{
|
|
67
|
-
size: string;
|
|
68
|
-
onCancel: () => void;
|
|
69
|
-
onAction: () => void;
|
|
70
|
-
}, React.Component<{
|
|
71
|
-
size: string;
|
|
72
|
-
onCancel: () => void;
|
|
73
|
-
onAction: () => void;
|
|
74
|
-
}, any, any>> | null;
|
|
62
|
+
renderEditor(): React.CElement<import("@mwater/react-library/lib/ModalWindowComponent").ModalWindowComponentProps, ModalWindowComponent> | React.CElement<import("@mwater/react-library/lib/ActionCancelModalComponent").ActionCancelModalComponentProps, ActionCancelModalComponent> | null;
|
|
75
63
|
renderEditLink(): React.DetailedReactHTMLElement<{
|
|
76
64
|
className: string;
|
|
77
65
|
onClick: () => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import ModalWindowComponent from "@mwater/react-library/lib/ModalWindowComponent";
|
|
2
3
|
export interface ImagePopupComponentProps {
|
|
3
4
|
imageManager: any;
|
|
4
5
|
}
|
|
@@ -9,12 +10,6 @@ interface ImagePopupComponentState {
|
|
|
9
10
|
export default class ImagePopupComponent extends React.Component<ImagePopupComponentProps, ImagePopupComponentState> {
|
|
10
11
|
constructor(props: any);
|
|
11
12
|
show(image: any): any;
|
|
12
|
-
render(): React.CElement<
|
|
13
|
-
isOpen: boolean;
|
|
14
|
-
onRequestClose: () => void;
|
|
15
|
-
}, React.Component<{
|
|
16
|
-
isOpen: boolean;
|
|
17
|
-
onRequestClose: () => void;
|
|
18
|
-
}, any, any>> | null;
|
|
13
|
+
render(): React.CElement<import("@mwater/react-library/lib/ModalWindowComponent").ModalWindowComponentProps, ModalWindowComponent> | null;
|
|
19
14
|
}
|
|
20
15
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import TabbedComponent from "@mwater/react-library/lib/TabbedComponent";
|
|
2
3
|
import * as uiComponents from "../../../UIComponents";
|
|
3
4
|
import { DataSource, Schema } from "@mwater/expressions";
|
|
4
5
|
import { LayeredChartDesign } from "./LayeredChartDesign";
|
|
@@ -46,35 +47,5 @@ export default class LayeredChartDesignerComponent extends React.Component<Layer
|
|
|
46
47
|
}, HTMLElement> | undefined;
|
|
47
48
|
renderThresholds(): React.CElement<uiComponents.SectionComponentProps, uiComponents.SectionComponent> | null;
|
|
48
49
|
renderYRange(): React.CElement<uiComponents.SectionComponentProps, uiComponents.SectionComponent> | null;
|
|
49
|
-
render(): React.CElement<
|
|
50
|
-
initialTabId: string;
|
|
51
|
-
tabs: ({
|
|
52
|
-
id: string;
|
|
53
|
-
label: string;
|
|
54
|
-
elem: React.DetailedReactHTMLElement<{
|
|
55
|
-
style: {
|
|
56
|
-
paddingBottom: number;
|
|
57
|
-
};
|
|
58
|
-
}, HTMLElement>;
|
|
59
|
-
} | {
|
|
60
|
-
id: string;
|
|
61
|
-
label: string;
|
|
62
|
-
elem: React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
63
|
-
})[];
|
|
64
|
-
}, React.Component<{
|
|
65
|
-
initialTabId: string;
|
|
66
|
-
tabs: ({
|
|
67
|
-
id: string;
|
|
68
|
-
label: string;
|
|
69
|
-
elem: React.DetailedReactHTMLElement<{
|
|
70
|
-
style: {
|
|
71
|
-
paddingBottom: number;
|
|
72
|
-
};
|
|
73
|
-
}, HTMLElement>;
|
|
74
|
-
} | {
|
|
75
|
-
id: string;
|
|
76
|
-
label: string;
|
|
77
|
-
elem: React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
78
|
-
})[];
|
|
79
|
-
}, any, any>>;
|
|
50
|
+
render(): React.CElement<any, TabbedComponent>;
|
|
80
51
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DataSource, Schema } from "@mwater/expressions";
|
|
3
3
|
import * as uiComponents from "../../../UIComponents";
|
|
4
|
+
import * as ui from "@mwater/react-library/lib/bootstrap";
|
|
4
5
|
export interface LayeredChartLayerDesignerComponentProps {
|
|
5
6
|
design: any;
|
|
6
7
|
schema: Schema;
|
|
@@ -46,13 +47,7 @@ export default class LayeredChartLayerDesignerComponent extends React.Component<
|
|
|
46
47
|
}, HTMLElement> | null;
|
|
47
48
|
renderTable(): React.CElement<uiComponents.SectionComponentProps, uiComponents.SectionComponent>;
|
|
48
49
|
handlexAxisOnlyValuesPresentChange: (xAxisOnlyValuesPresent: boolean) => void;
|
|
49
|
-
renderXAxis(): (React.CElement<uiComponents.SectionComponentProps, uiComponents.SectionComponent> |
|
|
50
|
-
value: any;
|
|
51
|
-
onChange: (xAxisOnlyValuesPresent: boolean) => void;
|
|
52
|
-
}, React.Component<{
|
|
53
|
-
value: any;
|
|
54
|
-
onChange: (xAxisOnlyValuesPresent: boolean) => void;
|
|
55
|
-
}, any, any>> | undefined)[] | undefined;
|
|
50
|
+
renderXAxis(): (React.CElement<ui.CheckboxProps, ui.Checkbox> | React.CElement<uiComponents.SectionComponentProps, uiComponents.SectionComponent> | undefined)[] | undefined;
|
|
56
51
|
renderColorAxis(): React.DetailedReactHTMLElement<{
|
|
57
52
|
className: string;
|
|
58
53
|
}, HTMLElement> | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import * as ui from "@mwater/react-library/lib/bootstrap";
|
|
2
3
|
import { DataSource, Expr, Schema } from "@mwater/expressions";
|
|
3
4
|
import { PivotChartIntersection } from "./PivotChartDesign";
|
|
4
5
|
import { JsonQLFilter } from "../../../JsonQLFilter";
|
|
@@ -19,71 +20,76 @@ export default class IntersectionDesignerComponent extends React.Component<Inter
|
|
|
19
20
|
handleBackgroundColorOpacityChange: (newValue: any) => any;
|
|
20
21
|
handleFilterChange: (filter: any) => any;
|
|
21
22
|
renderValueAxis(): React.CElement<{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
label: React.ReactNode;
|
|
24
|
+
labelMuted?: boolean | undefined;
|
|
25
|
+
hint?: React.ReactNode;
|
|
26
|
+
help?: React.ReactNode;
|
|
27
|
+
required?: boolean | undefined;
|
|
28
|
+
hasSuccess?: boolean | undefined;
|
|
29
|
+
hasWarnings?: boolean | undefined;
|
|
30
|
+
hasErrors?: boolean | undefined;
|
|
31
|
+
}, ui.FormGroup>;
|
|
30
32
|
renderNullValue(): React.CElement<{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
label: React.ReactNode;
|
|
34
|
+
labelMuted?: boolean | undefined;
|
|
35
|
+
hint?: React.ReactNode;
|
|
36
|
+
help?: React.ReactNode;
|
|
37
|
+
required?: boolean | undefined;
|
|
38
|
+
hasSuccess?: boolean | undefined;
|
|
39
|
+
hasWarnings?: boolean | undefined;
|
|
40
|
+
hasErrors?: boolean | undefined;
|
|
41
|
+
}, ui.FormGroup> | null;
|
|
37
42
|
renderFilter(): React.CElement<{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
id: string;
|
|
48
|
-
}, React.Component<{
|
|
49
|
-
id: string;
|
|
50
|
-
}, any, any>>)[];
|
|
51
|
-
}, any, any>>;
|
|
43
|
+
label: React.ReactNode;
|
|
44
|
+
labelMuted?: boolean | undefined;
|
|
45
|
+
hint?: React.ReactNode;
|
|
46
|
+
help?: React.ReactNode;
|
|
47
|
+
required?: boolean | undefined;
|
|
48
|
+
hasSuccess?: boolean | undefined;
|
|
49
|
+
hasWarnings?: boolean | undefined;
|
|
50
|
+
hasErrors?: boolean | undefined;
|
|
51
|
+
}, ui.FormGroup>;
|
|
52
52
|
renderStyling(): React.CElement<{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
label: React.ReactNode;
|
|
54
|
+
labelMuted?: boolean | undefined;
|
|
55
|
+
hint?: React.ReactNode;
|
|
56
|
+
help?: React.ReactNode;
|
|
57
|
+
required?: boolean | undefined;
|
|
58
|
+
hasSuccess?: boolean | undefined;
|
|
59
|
+
hasWarnings?: boolean | undefined;
|
|
60
|
+
hasErrors?: boolean | undefined;
|
|
61
|
+
}, ui.FormGroup>;
|
|
61
62
|
renderBackgroundColorConditions(): React.CElement<BackgroundColorConditionsComponentProps, BackgroundColorConditionsComponent>;
|
|
62
63
|
renderBackgroundColorAxis(): React.CElement<{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
label: React.ReactNode;
|
|
65
|
+
labelMuted?: boolean | undefined;
|
|
66
|
+
hint?: React.ReactNode;
|
|
67
|
+
help?: React.ReactNode;
|
|
68
|
+
required?: boolean | undefined;
|
|
69
|
+
hasSuccess?: boolean | undefined;
|
|
70
|
+
hasWarnings?: boolean | undefined;
|
|
71
|
+
hasErrors?: boolean | undefined;
|
|
72
|
+
}, ui.FormGroup>;
|
|
71
73
|
renderBackgroundColor(): React.CElement<{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
label: React.ReactNode;
|
|
75
|
+
labelMuted?: boolean | undefined;
|
|
76
|
+
hint?: React.ReactNode;
|
|
77
|
+
help?: React.ReactNode;
|
|
78
|
+
required?: boolean | undefined;
|
|
79
|
+
hasSuccess?: boolean | undefined;
|
|
80
|
+
hasWarnings?: boolean | undefined;
|
|
81
|
+
hasErrors?: boolean | undefined;
|
|
82
|
+
}, ui.FormGroup> | undefined;
|
|
80
83
|
renderBackgroundColorOpacityControl(): React.CElement<{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
label: React.ReactNode;
|
|
85
|
+
labelMuted?: boolean | undefined;
|
|
86
|
+
hint?: React.ReactNode;
|
|
87
|
+
help?: React.ReactNode;
|
|
88
|
+
required?: boolean | undefined;
|
|
89
|
+
hasSuccess?: boolean | undefined;
|
|
90
|
+
hasWarnings?: boolean | undefined;
|
|
91
|
+
hasErrors?: boolean | undefined;
|
|
92
|
+
}, ui.FormGroup> | undefined;
|
|
87
93
|
render(): React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
88
94
|
}
|
|
89
95
|
interface BackgroundColorConditionsComponentProps {
|
|
@@ -103,13 +109,14 @@ interface BackgroundColorConditionsComponentProps {
|
|
|
103
109
|
declare class BackgroundColorConditionsComponent extends React.Component<BackgroundColorConditionsComponentProps> {
|
|
104
110
|
handleAdd: () => void;
|
|
105
111
|
render(): React.CElement<{
|
|
106
|
-
label:
|
|
107
|
-
labelMuted
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
label: React.ReactNode;
|
|
113
|
+
labelMuted?: boolean | undefined;
|
|
114
|
+
hint?: React.ReactNode;
|
|
115
|
+
help?: React.ReactNode;
|
|
116
|
+
required?: boolean | undefined;
|
|
117
|
+
hasSuccess?: boolean | undefined;
|
|
118
|
+
hasWarnings?: boolean | undefined;
|
|
119
|
+
hasErrors?: boolean | undefined;
|
|
120
|
+
}, ui.FormGroup>;
|
|
114
121
|
}
|
|
115
122
|
export {};
|