geostyler 10.2.0 → 10.3.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/README.md +5 -1
- package/browser/geostyler.css +1 -1
- package/browser/geostyler.js +1 -1
- package/browser/geostyler.js.LICENSE.txt +10 -0
- package/dist/Component/CodeEditor/CodeEditor.js +1 -1
- package/dist/Component/CompositionContext/CompositionContext.d.ts +85 -0
- package/dist/Component/CompositionContext/CompositionContext.js +52 -0
- package/dist/Component/CompositionContext/CompositionContext.js.map +1 -0
- package/dist/Component/DataInput/StyleLoader/StyleLoader.js +1 -1
- package/dist/Component/DefaultValueContext/DefaultValueContext.d.ts +60 -0
- package/dist/Component/DefaultValueContext/DefaultValueContext.js +52 -0
- package/dist/Component/DefaultValueContext/DefaultValueContext.js.map +1 -0
- package/dist/Component/{ParserFeedback/ParserFeedback.css → DragDroppable/DragDroppable.css} +6 -8
- package/dist/Component/DragDroppable/DragDroppable.d.ts +13 -0
- package/dist/Component/DragDroppable/DragDroppable.js +68 -0
- package/dist/Component/DragDroppable/DragDroppable.js.map +1 -0
- package/dist/Component/DropIndicator/DropIndicator.css +30 -0
- package/dist/Component/DropIndicator/DropIndicator.d.ts +6 -0
- package/dist/Component/DropIndicator/DropIndicator.js +41 -0
- package/dist/Component/DropIndicator/DropIndicator.js.map +1 -0
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.d.ts +1 -1
- package/dist/Component/Legacy/CodeEditor/CodeEditor.css +59 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.d.ts +131 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js +317 -0
- package/dist/Component/Legacy/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/Component/Rule/TitleField/TitleField.d.ts +0 -1
- package/dist/Component/Rule/TitleField/TitleField.js +1 -6
- package/dist/Component/Rule/TitleField/TitleField.js.map +1 -1
- package/dist/Component/RuleCard/RuleCard.css +27 -0
- package/dist/Component/RuleCard/RuleCard.js +3 -4
- package/dist/Component/RuleCard/RuleCard.js.map +1 -1
- package/dist/Component/RuleGenerator/ClassificationCombo/ClassificationCombo.d.ts +1 -1
- package/dist/Component/RuleGenerator/RuleGenerator.d.ts +1 -1
- package/dist/Component/Rules/Rules.js +43 -8
- package/dist/Component/Rules/Rules.js.map +1 -1
- package/dist/Component/Symbolizer/Field/ChannelSelectionField/ChannelSelectionField.d.ts +1 -1
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.css +34 -0
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.d.ts +88 -0
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.js +136 -0
- package/dist/Component/Symbolizer/Field/ColorField/BaseColorField/BaseColorField.js.map +1 -0
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.d.ts +13 -0
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.js +73 -0
- package/dist/Component/Symbolizer/Field/ExpressionField/ExpressionField.js.map +1 -0
- package/dist/Component/Symbolizer/IconSelector/IconSelector.d.ts +1 -1
- package/dist/Component/Symbolizer/Preview/Preview.js +1 -1
- package/dist/Component/Symbolizer/RasterEditor/RasterEditor.d.ts +1 -1
- package/dist/Component/Symbolizer/Renderer/Renderer.js +1 -1
- package/dist/Component/Symbolizer/SLDRenderer/SLDRenderer.js +1 -1
- package/dist/Component/SymbolizerCard/SymbolizerCard.js +3 -4
- package/dist/Component/SymbolizerCard/SymbolizerCard.js.map +1 -1
- package/dist/Component/Symbolizers/Symbolizers.js +52 -19
- package/dist/Component/Symbolizers/Symbolizers.js.map +1 -1
- package/dist/Component/UploadButton/UploadButton.d.ts +1 -1
- package/dist/DataProvider/ParserDesc.d.ts +1 -1
- package/dist/Util/DndUtil.d.ts +114 -0
- package/dist/Util/DndUtil.js +159 -0
- package/dist/Util/DndUtil.js.map +1 -0
- package/dist/Util/FileUtil.js +1 -1
- package/dist/Util/FilterUtil.d.ts +1 -1
- package/dist/Util/HTTPUtil.d.ts +1 -1
- package/dist/Util/HTTPUtil.js +1 -1
- package/dist/Util/UnsupportedPropertiesUtil.d.ts +2 -2
- package/dist/context/UnsupportedPropertiesContext/UnsupportedPropertiesContext.d.ts +2 -2
- package/dist/hook/UseDragDrop.d.ts +20 -0
- package/dist/hook/UseDragDrop.js +238 -0
- package/dist/hook/UseDragDrop.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/locale/fr_FR.js +3 -3
- package/dist/locale/fr_FR.js.map +1 -1
- package/package.json +4 -2
- package/dist/Util/StyleUtil.d.ts +0 -9
- package/dist/Util/StyleUtil.js +0 -87
- package/dist/Util/StyleUtil.js.map +0 -1
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @license React
|
|
22
|
+
* react-jsx-runtime.production.min.js
|
|
23
|
+
*
|
|
24
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/
|
|
29
|
+
|
|
20
30
|
/**
|
|
21
31
|
* chroma.js - JavaScript library for color conversions
|
|
22
32
|
*
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
65
65
|
function step(op) {
|
|
66
66
|
if (f) throw new TypeError("Generator is already executing.");
|
|
67
|
-
while (_) try {
|
|
67
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
68
68
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
69
69
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
70
70
|
switch (op[0]) {
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Creates the CompositionContext used for customising
|
|
4
|
+
* specified components. Components can be replaced or
|
|
5
|
+
* disabled.
|
|
6
|
+
*
|
|
7
|
+
* Definition of the compositions object.
|
|
8
|
+
* This object can be used for a CompositionContext
|
|
9
|
+
* to describe which components should be replaced
|
|
10
|
+
* or disabled. For replacing a component, another
|
|
11
|
+
* React component needs to be set as value. By
|
|
12
|
+
* assigning "false", the component will be disabled.
|
|
13
|
+
*
|
|
14
|
+
* Important: Context overrides the onChange and value
|
|
15
|
+
* properties for a custom component. This may lead to
|
|
16
|
+
* sideeffects if these props are used elsewhere.
|
|
17
|
+
*/
|
|
18
|
+
export interface Compositions {
|
|
19
|
+
Editor?: {
|
|
20
|
+
kindField?: React.ReactElement | false;
|
|
21
|
+
markEditor?: React.ReactElement | false;
|
|
22
|
+
iconEditor?: React.ReactElement | false;
|
|
23
|
+
lineEditor?: React.ReactElement | false;
|
|
24
|
+
fillEditor?: React.ReactElement | false;
|
|
25
|
+
textEditor?: React.ReactElement | false;
|
|
26
|
+
rasterEditor?: React.ReactElement | false;
|
|
27
|
+
};
|
|
28
|
+
LineEditor?: {
|
|
29
|
+
widthField?: React.ReactElement | false;
|
|
30
|
+
colorField?: React.ReactElement | false;
|
|
31
|
+
opacityField?: React.ReactElement | false;
|
|
32
|
+
lineDashField?: React.ReactElement | false;
|
|
33
|
+
dashOffsetField?: React.ReactElement | false;
|
|
34
|
+
capField?: React.ReactElement | false;
|
|
35
|
+
joinField?: React.ReactElement | false;
|
|
36
|
+
graphicStrokeField?: React.ReactElement | false;
|
|
37
|
+
graphicFillField?: React.ReactElement | false;
|
|
38
|
+
};
|
|
39
|
+
IconEditor?: {
|
|
40
|
+
imageField?: React.ReactElement | false;
|
|
41
|
+
sizeField?: React.ReactElement | false;
|
|
42
|
+
rotateField?: React.ReactElement | false;
|
|
43
|
+
opacityField?: React.ReactElement | false;
|
|
44
|
+
};
|
|
45
|
+
FillEditor?: {
|
|
46
|
+
fillColorField?: React.ReactElement | false;
|
|
47
|
+
fillOpacityField?: React.ReactElement | false;
|
|
48
|
+
outlineColorField?: React.ReactElement | false;
|
|
49
|
+
outlineWidthField?: React.ReactElement | false;
|
|
50
|
+
outlineDasharrayField?: React.ReactElement | false;
|
|
51
|
+
graphicEditorField?: React.ReactElement | false;
|
|
52
|
+
};
|
|
53
|
+
TextEditor?: {
|
|
54
|
+
templateField?: React.ReactElement | false;
|
|
55
|
+
colorField?: React.ReactElement | false;
|
|
56
|
+
fontField?: React.ReactElement | false;
|
|
57
|
+
opacityField?: React.ReactElement | false;
|
|
58
|
+
sizeField?: React.ReactElement | false;
|
|
59
|
+
offsetXField?: React.ReactElement | false;
|
|
60
|
+
offsetYField?: React.ReactElement | false;
|
|
61
|
+
rotateField?: React.ReactElement | false;
|
|
62
|
+
haloColorField?: React.ReactElement | false;
|
|
63
|
+
haloWidthField?: React.ReactElement | false;
|
|
64
|
+
};
|
|
65
|
+
RasterEditor?: {
|
|
66
|
+
opacityField?: React.ReactElement | false;
|
|
67
|
+
contrastEnhancementField?: React.ReactElement | false;
|
|
68
|
+
gammaValueField?: React.ReactElement | false;
|
|
69
|
+
rasterChannelField?: React.ReactElement | false;
|
|
70
|
+
colorMapField?: React.ReactElement | false;
|
|
71
|
+
};
|
|
72
|
+
MarkEditor?: {
|
|
73
|
+
wellKnownNameField?: React.ReactElement | false;
|
|
74
|
+
};
|
|
75
|
+
WellKnownNameEditor?: {
|
|
76
|
+
radiusField?: React.ReactElement | false;
|
|
77
|
+
fillColorField?: React.ReactElement | false;
|
|
78
|
+
fillOpacityField?: React.ReactElement | false;
|
|
79
|
+
strokeColorField?: React.ReactElement | false;
|
|
80
|
+
strokeWidthField?: React.ReactElement | false;
|
|
81
|
+
strokeOpacityField?: React.ReactElement | false;
|
|
82
|
+
rotateField?: React.ReactElement | false;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export declare const CompositionContext: React.Context<{}>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Released under the BSD 2-Clause License
|
|
3
|
+
*
|
|
4
|
+
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
|
9
|
+
*
|
|
10
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
* this list of conditions and the following disclaimer.
|
|
12
|
+
*
|
|
13
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
* and/or other materials provided with the distribution.
|
|
16
|
+
*
|
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
20
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
21
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
22
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
23
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
24
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
25
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
26
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
27
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
30
|
+
if (k2 === undefined) k2 = k;
|
|
31
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
32
|
+
}) : (function(o, m, k, k2) {
|
|
33
|
+
if (k2 === undefined) k2 = k;
|
|
34
|
+
o[k2] = m[k];
|
|
35
|
+
}));
|
|
36
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
37
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
38
|
+
}) : function(o, v) {
|
|
39
|
+
o["default"] = v;
|
|
40
|
+
});
|
|
41
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
42
|
+
if (mod && mod.__esModule) return mod;
|
|
43
|
+
var result = {};
|
|
44
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
45
|
+
__setModuleDefault(result, mod);
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.CompositionContext = void 0;
|
|
50
|
+
var React = __importStar(require("react"));
|
|
51
|
+
exports.CompositionContext = React.createContext({});
|
|
52
|
+
//# sourceMappingURL=CompositionContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositionContext.js","sourceRoot":"","sources":["../../../src/Component/CompositionContext/CompositionContext.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA+B;AAsFlB,QAAA,kBAAkB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
65
65
|
function step(op) {
|
|
66
66
|
if (f) throw new TypeError("Generator is already executing.");
|
|
67
|
-
while (_) try {
|
|
67
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
68
68
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
69
69
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
70
70
|
switch (op[0]) {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { WellKnownName } from 'geostyler-style';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Creates the DefaultValueContext used for customising
|
|
5
|
+
* default values.
|
|
6
|
+
*/
|
|
7
|
+
export interface DefaultValues {
|
|
8
|
+
LineEditor?: {
|
|
9
|
+
defaultWidth?: number;
|
|
10
|
+
defaultColor?: string;
|
|
11
|
+
defaultOpacity?: number;
|
|
12
|
+
defaultDashOffset?: number;
|
|
13
|
+
defaultCap?: string;
|
|
14
|
+
defaultJoin?: string;
|
|
15
|
+
};
|
|
16
|
+
IconEditor?: {
|
|
17
|
+
defaultImage?: string;
|
|
18
|
+
defaultSize?: number;
|
|
19
|
+
defaultRotate?: number;
|
|
20
|
+
defaultOpacity?: number;
|
|
21
|
+
};
|
|
22
|
+
FillEditor?: {
|
|
23
|
+
defaultFillColor?: string;
|
|
24
|
+
defaultFillOpacity?: number;
|
|
25
|
+
defaultOpacity?: number;
|
|
26
|
+
defaultOutlineColor?: string;
|
|
27
|
+
defaultOutlineWidth?: number;
|
|
28
|
+
defaultOutlineOpacity?: number;
|
|
29
|
+
};
|
|
30
|
+
TextEditor?: {
|
|
31
|
+
defaultLabel?: string;
|
|
32
|
+
defaultColor?: string;
|
|
33
|
+
defaultFont?: string;
|
|
34
|
+
defaultOpacity?: number;
|
|
35
|
+
defaultSize?: number;
|
|
36
|
+
defaultOffsetX?: number;
|
|
37
|
+
defaultOffsetY?: number;
|
|
38
|
+
defaultRotate?: number;
|
|
39
|
+
defaultHaloColor?: string;
|
|
40
|
+
defaultHaloWidth?: number;
|
|
41
|
+
};
|
|
42
|
+
RasterEditor?: {
|
|
43
|
+
defaultOpacity?: number;
|
|
44
|
+
defaultGammaValue?: number;
|
|
45
|
+
};
|
|
46
|
+
MarkEditor?: {
|
|
47
|
+
defaultWellKnownName?: WellKnownName;
|
|
48
|
+
};
|
|
49
|
+
WellKnownNameEditor?: {
|
|
50
|
+
defaultRadius?: string;
|
|
51
|
+
defaultColor?: string;
|
|
52
|
+
defaultOpacity?: number;
|
|
53
|
+
defaultFillOpacity?: number;
|
|
54
|
+
defaultStrokeColor?: string;
|
|
55
|
+
defaultStrokeWidth?: number;
|
|
56
|
+
defaultStrokeOpacity?: number;
|
|
57
|
+
defaultRotate?: number;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export declare const DefaultValueContext: React.Context<{}>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Released under the BSD 2-Clause License
|
|
3
|
+
*
|
|
4
|
+
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are met:
|
|
9
|
+
*
|
|
10
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
* this list of conditions and the following disclaimer.
|
|
12
|
+
*
|
|
13
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
* and/or other materials provided with the distribution.
|
|
16
|
+
*
|
|
17
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
20
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
21
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
22
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
23
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
24
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
25
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
26
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
27
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*/
|
|
29
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
30
|
+
if (k2 === undefined) k2 = k;
|
|
31
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
32
|
+
}) : (function(o, m, k, k2) {
|
|
33
|
+
if (k2 === undefined) k2 = k;
|
|
34
|
+
o[k2] = m[k];
|
|
35
|
+
}));
|
|
36
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
37
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
38
|
+
}) : function(o, v) {
|
|
39
|
+
o["default"] = v;
|
|
40
|
+
});
|
|
41
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
42
|
+
if (mod && mod.__esModule) return mod;
|
|
43
|
+
var result = {};
|
|
44
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
45
|
+
__setModuleDefault(result, mod);
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.DefaultValueContext = void 0;
|
|
50
|
+
var React = __importStar(require("react"));
|
|
51
|
+
exports.DefaultValueContext = React.createContext({});
|
|
52
|
+
//# sourceMappingURL=DefaultValueContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultValueContext.js","sourceRoot":"","sources":["../../../src/Component/DefaultValueContext/DefaultValueContext.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;;;;;;;;;;;;;;;;;;;;;;AAGH,2CAA+B;AA4DlB,QAAA,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/Component/{ParserFeedback/ParserFeedback.css → DragDroppable/DragDroppable.css}
RENAMED
|
@@ -25,14 +25,12 @@
|
|
|
25
25
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
26
26
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
27
27
|
*/
|
|
28
|
-
.gs-
|
|
29
|
-
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
transition: max-height 0.3s ease-out;
|
|
28
|
+
.gs-drag-droppable {
|
|
29
|
+
display: flex;
|
|
32
30
|
}
|
|
33
|
-
.gs-
|
|
34
|
-
|
|
31
|
+
.gs-drag-droppable.horizontal {
|
|
32
|
+
flex-direction: row;
|
|
35
33
|
}
|
|
36
|
-
.gs-
|
|
37
|
-
|
|
34
|
+
.gs-drag-droppable.vertical {
|
|
35
|
+
flex-direction: column;
|
|
38
36
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DragOrientation, ItemType } from '../../Util/DndUtil';
|
|
3
|
+
import { OnDropParams } from '../../hook/UseDragDrop';
|
|
4
|
+
import './DragDroppable.css';
|
|
5
|
+
export interface DragDroppableProps extends React.PropsWithChildren {
|
|
6
|
+
position: number;
|
|
7
|
+
itemType: ItemType;
|
|
8
|
+
onDrop?: (opts: OnDropParams) => void;
|
|
9
|
+
dragOrientation?: DragOrientation;
|
|
10
|
+
showIndicator?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const DragDroppable: React.FC<DragDroppableProps>;
|
|
13
|
+
export default DragDroppable;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DragDroppable = void 0;
|
|
7
|
+
/* Released under the BSD 2-Clause License
|
|
8
|
+
*
|
|
9
|
+
* Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
10
|
+
* All rights reserved.
|
|
11
|
+
*
|
|
12
|
+
* Redistribution and use in source and binary forms, with or without
|
|
13
|
+
* modification, are permitted provided that the following conditions are met:
|
|
14
|
+
*
|
|
15
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
16
|
+
* this list of conditions and the following disclaimer.
|
|
17
|
+
*
|
|
18
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
19
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
20
|
+
* and/or other materials provided with the distribution.
|
|
21
|
+
*
|
|
22
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
23
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
24
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
25
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
26
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
27
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
28
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
29
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
30
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
31
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
32
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
var react_1 = __importDefault(require("react"));
|
|
35
|
+
var DndUtil_1 = require("../../Util/DndUtil");
|
|
36
|
+
var UseDragDrop_1 = require("../../hook/UseDragDrop");
|
|
37
|
+
var DropIndicator_1 = __importDefault(require("../DropIndicator/DropIndicator"));
|
|
38
|
+
require("./DragDroppable.css");
|
|
39
|
+
var DragDroppable = function (_a) {
|
|
40
|
+
var position = _a.position, itemType = _a.itemType, _b = _a.onDrop, onDrop = _b === void 0 ? function () { } : _b, _c = _a.dragOrientation, dragOrientation = _c === void 0 ? 'horizontal' : _c, showIndicator = _a.showIndicator, children = _a.children;
|
|
41
|
+
var _d = (0, UseDragDrop_1.useDragDrop)({
|
|
42
|
+
position: position,
|
|
43
|
+
itemType: itemType,
|
|
44
|
+
onDrop: onDrop,
|
|
45
|
+
dragOrientation: dragOrientation,
|
|
46
|
+
showIndicator: showIndicator
|
|
47
|
+
})[0], ref = _d.ref, direction = _d.direction, side = _d.side;
|
|
48
|
+
var showFrontIndicatorHorizontal = (direction === DndUtil_1.Direction.LEFT && side === DndUtil_1.Side.BEHIND)
|
|
49
|
+
|| (direction === DndUtil_1.Direction.RIGHT && side === DndUtil_1.Side.BEFORE);
|
|
50
|
+
var showBackIndicatorHorizontal = (direction === DndUtil_1.Direction.LEFT && side === DndUtil_1.Side.BEFORE)
|
|
51
|
+
|| (direction === DndUtil_1.Direction.RIGHT && side === DndUtil_1.Side.BEHIND);
|
|
52
|
+
var showFrontIndicatorVertical = (direction === DndUtil_1.Direction.UP && side === DndUtil_1.Side.BEHIND)
|
|
53
|
+
|| (direction === DndUtil_1.Direction.DOWN && side === DndUtil_1.Side.BEFORE);
|
|
54
|
+
var showBackIndicatorVertical = (direction === DndUtil_1.Direction.UP && side === DndUtil_1.Side.BEFORE)
|
|
55
|
+
|| (direction === DndUtil_1.Direction.DOWN && side === DndUtil_1.Side.BEHIND);
|
|
56
|
+
var showFrontIndicator = dragOrientation === 'horizontal' ?
|
|
57
|
+
showFrontIndicatorHorizontal : showFrontIndicatorVertical;
|
|
58
|
+
var showBackIndicator = dragOrientation === 'horizontal' ?
|
|
59
|
+
showBackIndicatorHorizontal : showBackIndicatorVertical;
|
|
60
|
+
var orientationClass = dragOrientation === 'horizontal' ? 'horizontal' : 'vertical';
|
|
61
|
+
return (react_1.default.createElement("div", { className: "gs-drag-droppable ".concat(orientationClass) },
|
|
62
|
+
showFrontIndicator && react_1.default.createElement(DropIndicator_1.default, null),
|
|
63
|
+
react_1.default.cloneElement(children, { ref: ref }),
|
|
64
|
+
showBackIndicator && react_1.default.createElement(DropIndicator_1.default, null)));
|
|
65
|
+
};
|
|
66
|
+
exports.DragDroppable = DragDroppable;
|
|
67
|
+
exports.default = exports.DragDroppable;
|
|
68
|
+
//# sourceMappingURL=DragDroppable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragDroppable.js","sourceRoot":"","sources":["../../../src/Component/DragDroppable/DragDroppable.tsx"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,gDAA4C;AAC5C,8CAAgF;AAChF,sDAAmE;AACnE,iFAA2D;AAE3D,gCAA8B;AAUvB,IAAM,aAAa,GAAiC,UAAC,EAO3D;QANC,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,cAAiB,EAAjB,MAAM,mBAAG,cAAO,CAAC,KAAA,EACjB,uBAA8B,EAA9B,eAAe,mBAAG,YAAY,KAAA,EAC9B,aAAa,mBAAA,EACb,QAAQ,cAAA;IAGD,IAAA,KAA4B,IAAA,yBAAW,EAAC;QAC7C,QAAQ,UAAA;QACR,QAAQ,UAAA;QACR,MAAM,QAAA;QACN,eAAe,iBAAA;QACf,aAAa,eAAA;KACd,CAAC,GAN6B,EAAtB,GAAG,SAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAAE,CAM5B;IAEH,IAAM,4BAA4B,GAAG,CAAC,SAAS,KAAK,mBAAS,CAAC,IAAI,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC;WACtF,CAAC,SAAS,KAAK,mBAAS,CAAC,KAAK,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC,CAAC;IAE7D,IAAM,2BAA2B,GAAG,CAAC,SAAS,KAAK,mBAAS,CAAC,IAAI,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC;WACrF,CAAC,SAAS,KAAK,mBAAS,CAAC,KAAK,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC,CAAC;IAE7D,IAAM,0BAA0B,GAAG,CAAC,SAAS,KAAK,mBAAS,CAAC,EAAE,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC;WAClF,CAAC,SAAS,KAAK,mBAAS,CAAC,IAAI,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC,CAAC;IAE5D,IAAM,yBAAyB,GAAG,CAAC,SAAS,KAAK,mBAAS,CAAC,EAAE,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC;WACjF,CAAC,SAAS,KAAK,mBAAS,CAAC,IAAI,IAAI,IAAI,KAAK,cAAI,CAAC,MAAM,CAAC,CAAC;IAE5D,IAAM,kBAAkB,GAAG,eAAe,KAAK,YAAY,CAAC,CAAC;QAC3D,4BAA4B,CAAC,CAAC,CAAC,0BAA0B,CAAC;IAE5D,IAAM,iBAAiB,GAAG,eAAe,KAAK,YAAY,CAAC,CAAC;QAC1D,2BAA2B,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAE1D,IAAM,gBAAgB,GAAG,eAAe,KAAK,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC;IAEtF,OAAO,CACL,uCAAK,SAAS,EAAE,4BAAqB,gBAAgB,CAAE;QAEnD,kBAAkB,IAAI,8BAAC,uBAAa,OAAG;QAGvC,eAAK,CAAC,YAAY,CAAC,QAAwB,EAAE,EAAC,GAAG,KAAA,EAAC,CAAC;QAGnD,iBAAiB,IAAI,8BAAC,uBAAa,OAAG,CAEpC,CACP,CAAC;AACJ,CAAC,CAAC;AAlDW,QAAA,aAAa,iBAkDxB;AAEF,kBAAe,qBAAa,CAAC","sourcesContent":["/* Released under the BSD 2-Clause License\n *\n * Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\nimport React, { ReactElement } from 'react';\nimport { Direction, DragOrientation, ItemType, Side } from '../../Util/DndUtil';\nimport { OnDropParams, useDragDrop } from '../../hook/UseDragDrop';\nimport DropIndicator from '../DropIndicator/DropIndicator';\n\nimport './DragDroppable.less';\n\nexport interface DragDroppableProps extends React.PropsWithChildren {\n position: number;\n itemType: ItemType;\n onDrop?: (opts: OnDropParams) => void;\n dragOrientation?: DragOrientation;\n showIndicator?: boolean;\n}\n\nexport const DragDroppable: React.FC<DragDroppableProps> = ({\n position,\n itemType,\n onDrop = () => {},\n dragOrientation = 'horizontal',\n showIndicator,\n children\n}) => {\n\n const [{ ref, direction, side }] = useDragDrop({\n position,\n itemType,\n onDrop,\n dragOrientation,\n showIndicator\n });\n\n const showFrontIndicatorHorizontal = (direction === Direction.LEFT && side === Side.BEHIND)\n || (direction === Direction.RIGHT && side === Side.BEFORE);\n\n const showBackIndicatorHorizontal = (direction === Direction.LEFT && side === Side.BEFORE)\n || (direction === Direction.RIGHT && side === Side.BEHIND);\n\n const showFrontIndicatorVertical = (direction === Direction.UP && side === Side.BEHIND)\n || (direction === Direction.DOWN && side === Side.BEFORE);\n\n const showBackIndicatorVertical = (direction === Direction.UP && side === Side.BEFORE)\n || (direction === Direction.DOWN && side === Side.BEHIND);\n\n const showFrontIndicator = dragOrientation === 'horizontal' ?\n showFrontIndicatorHorizontal : showFrontIndicatorVertical;\n\n const showBackIndicator = dragOrientation === 'horizontal' ?\n showBackIndicatorHorizontal : showBackIndicatorVertical;\n\n const orientationClass = dragOrientation === 'horizontal' ? 'horizontal' : 'vertical';\n\n return (\n <div className={`gs-drag-droppable ${orientationClass}`}>\n {\n showFrontIndicator && <DropIndicator />\n }\n {\n React.cloneElement(children as ReactElement, {ref})\n }\n {\n showBackIndicator && <DropIndicator />\n }\n </div>\n );\n};\n\nexport default DragDroppable;\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Released under the BSD 2-Clause License
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
|
7
|
+
* modification, are permitted provided that the following conditions are met:
|
|
8
|
+
*
|
|
9
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
10
|
+
* this list of conditions and the following disclaimer.
|
|
11
|
+
*
|
|
12
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
* and/or other materials provided with the distribution.
|
|
15
|
+
*
|
|
16
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
17
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
18
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
19
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
20
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
21
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
22
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
23
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
24
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
25
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
26
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
*/
|
|
28
|
+
.gs-drop-indicator {
|
|
29
|
+
border: solid 1px #1890ff;
|
|
30
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DropIndicator = void 0;
|
|
7
|
+
/* Released under the BSD 2-Clause License
|
|
8
|
+
*
|
|
9
|
+
* Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
10
|
+
* All rights reserved.
|
|
11
|
+
*
|
|
12
|
+
* Redistribution and use in source and binary forms, with or without
|
|
13
|
+
* modification, are permitted provided that the following conditions are met:
|
|
14
|
+
*
|
|
15
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
16
|
+
* this list of conditions and the following disclaimer.
|
|
17
|
+
*
|
|
18
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
19
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
20
|
+
* and/or other materials provided with the distribution.
|
|
21
|
+
*
|
|
22
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
23
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
24
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
25
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
26
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
27
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
28
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
29
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
30
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
31
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
32
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
var react_1 = __importDefault(require("react"));
|
|
35
|
+
require("./DropIndicator.css");
|
|
36
|
+
var DropIndicator = function () {
|
|
37
|
+
return (react_1.default.createElement("div", { className: 'gs-drop-indicator' }));
|
|
38
|
+
};
|
|
39
|
+
exports.DropIndicator = DropIndicator;
|
|
40
|
+
exports.default = exports.DropIndicator;
|
|
41
|
+
//# sourceMappingURL=DropIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropIndicator.js","sourceRoot":"","sources":["../../../src/Component/DropIndicator/DropIndicator.tsx"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,gDAA0B;AAE1B,gCAA8B;AAIvB,IAAM,aAAa,GAAiC;IAEzD,OAAO,CACL,uCAAK,SAAS,EAAC,mBAAmB,GAAO,CAC1C,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,aAAa,iBAKxB;AAEF,kBAAe,qBAAa,CAAC","sourcesContent":["/* Released under the BSD 2-Clause License\n *\n * Copyright © 2022-present, terrestris GmbH & Co. KG and GeoStyler contributors\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * * Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\nimport React from 'react';\n\nimport './DropIndicator.less';\n\nexport interface DropIndicatorProps {}\n\nexport const DropIndicator: React.FC<DropIndicatorProps> = () => {\n\n return (\n <div className='gs-drop-indicator'></div>\n );\n};\n\nexport default DropIndicator;\n"]}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ComparisonFilter as GsComparisonFilter, PropertyType } from 'geostyler-style';
|
|
3
3
|
import './ComparisonFilter.css';
|
|
4
4
|
import { Data as Data } from 'geostyler-data';
|
|
5
|
-
|
|
5
|
+
type ValidationResult = {
|
|
6
6
|
isValid: boolean;
|
|
7
7
|
errorMsg: string;
|
|
8
8
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* Released under the BSD 2-Clause License
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
|
7
|
+
* modification, are permitted provided that the following conditions are met:
|
|
8
|
+
*
|
|
9
|
+
* * Redistributions of source code must retain the above copyright notice,
|
|
10
|
+
* this list of conditions and the following disclaimer.
|
|
11
|
+
*
|
|
12
|
+
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
* and/or other materials provided with the distribution.
|
|
15
|
+
*
|
|
16
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
17
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
18
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
19
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
20
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
21
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
22
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
23
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
24
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
25
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
26
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
*/
|
|
28
|
+
.gs-code-editor {
|
|
29
|
+
height: 100%;
|
|
30
|
+
text-align: left;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: flex-end;
|
|
34
|
+
}
|
|
35
|
+
.gs-code-editor .gs-code-editor-codemirror {
|
|
36
|
+
flex: 1;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-self: stretch;
|
|
40
|
+
}
|
|
41
|
+
.gs-code-editor .CodeMirror {
|
|
42
|
+
flex: 1;
|
|
43
|
+
}
|
|
44
|
+
.gs-code-editor .gs-code-editor-errormessage {
|
|
45
|
+
color: red;
|
|
46
|
+
background-color: lightgray;
|
|
47
|
+
}
|
|
48
|
+
.gs-code-editor .gs-code-editor-toolbar,
|
|
49
|
+
.gs-code-editor .gs-code-editor-bottombar {
|
|
50
|
+
width: 100%;
|
|
51
|
+
padding: 5px 0;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
}
|
|
56
|
+
.gs-code-editor .gs-code-editor-download-button,
|
|
57
|
+
.gs-code-editor .gs-code-editor-copy-button {
|
|
58
|
+
margin: 0 5px;
|
|
59
|
+
}
|