geostyler 15.0.0-beta.2 → 15.0.0-beta.4
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 +1 -1
- package/dist/Component/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Component/Breadcrumb/Breadcrumb.less +15 -0
- package/dist/Component/BulkEditor/BulkEditor.d.ts +1 -1
- package/dist/Component/BulkEditor/BulkEditor.less +7 -0
- package/dist/Component/CardStyle/CardStyle.d.ts +1 -1
- package/dist/Component/CardStyle/CardStyle.less +16 -0
- package/dist/Component/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/Component/{Symbolizer/IconSelector/IconSelector.css → CodeEditor/CodeEditor.less} +69 -34
- package/dist/Component/DataInput/WfsParserInput/WfsParserInput.d.ts +1 -1
- package/dist/Component/{FieldSet/FieldSet.css → DataInput/WfsParserInput/WfsParserInput.less} +27 -15
- package/dist/Component/ExpressionInput/BooleanExpressionInput/BooleanExpressionInput.d.ts +1 -1
- package/dist/Component/ExpressionInput/BooleanExpressionInput/BooleanExpressionInput.less +15 -0
- package/dist/Component/ExpressionInput/NumberExpressionInput/NumberExpressionInput.d.ts +1 -1
- package/dist/Component/ExpressionInput/NumberExpressionInput/NumberExpressionInput.less +27 -0
- package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.d.ts +1 -1
- package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.js +1 -2
- package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.js.map +1 -1
- package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.less +29 -0
- package/dist/Component/ExpressionInput/StringExpressionSelect/StringExpressionSelect.d.ts +1 -1
- package/dist/Component/ExpressionInput/StringExpressionSelect/StringExpressionSelect.less +25 -0
- package/dist/Component/FieldContainer/FieldContainer.d.ts +1 -1
- package/dist/Component/FieldContainer/FieldContainer.less +7 -0
- package/dist/Component/FieldSet/FieldSet.d.ts +1 -1
- package/dist/Component/FieldSet/FieldSet.less +52 -0
- package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.d.ts +1 -1
- package/dist/Component/Filter/ComparisonFilter/{ComparisonFilter.css → ComparisonFilter.less} +19 -12
- package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.d.ts +1 -1
- package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.less +36 -0
- package/dist/Component/Filter/FilterTree/FilterTree.d.ts +1 -1
- package/dist/Component/Filter/FilterTree/FilterTree.less +87 -0
- package/dist/Component/Filter/TextFilterField/TextFilterField.d.ts +1 -1
- package/dist/Component/Filter/TextFilterField/TextFilterField.less +5 -0
- package/dist/Component/FilterOverview/FilterOverview.d.ts +1 -1
- package/dist/Component/FilterOverview/FilterOverview.less +8 -0
- package/dist/Component/FunctionUI/CaseInput/CaseInput.d.ts +11 -0
- package/dist/Component/FunctionUI/CaseInput/CaseInput.js +23 -0
- package/dist/Component/FunctionUI/CaseInput/CaseInput.js.map +1 -0
- package/dist/Component/FunctionUI/CaseInput/CaseInput.less +13 -0
- package/dist/Component/FunctionUI/FunctionNameCombo/FunctionNameCombo.d.ts +4 -4
- package/dist/Component/FunctionUI/FunctionNameCombo/FunctionNameCombo.js.map +1 -1
- package/dist/Component/FunctionUI/FunctionNameCombo/FunctionNameCombo.less +17 -0
- package/dist/Component/FunctionUI/FunctionUI.d.ts +2 -3
- package/dist/Component/FunctionUI/FunctionUI.js +112 -44
- package/dist/Component/FunctionUI/FunctionUI.js.map +1 -1
- package/dist/Component/FunctionUI/FunctionUI.less +65 -0
- package/dist/Component/FunctionUI/StepInput/StepInput.d.ts +11 -0
- package/dist/Component/FunctionUI/StepInput/StepInput.js +25 -0
- package/dist/Component/FunctionUI/StepInput/StepInput.js.map +1 -0
- package/dist/Component/FunctionUI/StepInput/StepInput.less +9 -0
- package/dist/Component/FunctionUI/UnknownInput/UnknownInput.d.ts +15 -0
- package/dist/Component/FunctionUI/UnknownInput/UnknownInput.js +57 -0
- package/dist/Component/FunctionUI/UnknownInput/UnknownInput.js.map +1 -0
- package/dist/Component/FunctionUI/UnknownInput/UnknownInput.less +13 -0
- package/dist/Component/FunctionUI/functionConfigs.d.ts +4 -3
- package/dist/Component/FunctionUI/functionConfigs.js +34 -25
- package/dist/Component/FunctionUI/functionConfigs.js.map +1 -1
- package/dist/Component/NameField/NameField.d.ts +1 -1
- package/dist/Component/NameField/{NameField.css → NameField.less} +1 -0
- package/dist/Component/PreviewMap/PreviewMap.d.ts +1 -1
- package/dist/Component/PreviewMap/PreviewMap.js +1 -1
- package/dist/Component/PreviewMap/PreviewMap.js.map +1 -1
- package/dist/Component/PreviewMap/{PreviewMap.css → PreviewMap.less} +1 -0
- package/dist/Component/RemovableItem/RemovableItem.d.ts +1 -1
- package/dist/Component/RemovableItem/RemovableItem.less +18 -0
- package/dist/Component/Renderer/OlRenderer/OlRenderer.d.ts +1 -1
- package/dist/Component/Renderer/OlRenderer/{OlRenderer.css → OlRenderer.less} +1 -0
- package/dist/Component/Renderer/Renderer/Renderer.d.ts +1 -1
- package/dist/Component/Renderer/SLDRenderer/SLDRenderer.d.ts +1 -1
- package/dist/Component/Renderer/SLDRenderer/{SLDRenderer.css → SLDRenderer.less} +1 -0
- package/dist/Component/RuleCard/RuleCard.d.ts +1 -1
- package/dist/Component/{Symbolizers/Symbolizers.css → RuleCard/RuleCard.less} +41 -32
- package/dist/Component/RuleFieldContainer/RuleFieldContainer.d.ts +1 -1
- package/dist/Component/RuleFieldContainer/{RuleFieldContainer.css → RuleFieldContainer.less} +22 -18
- package/dist/Component/RuleGenerator/ClassificationCombo/ClassificationCombo.d.ts +1 -1
- package/dist/Component/RuleGenerator/ColorRampCombo/ColorRampCombo.d.ts +1 -1
- package/dist/Component/RuleGenerator/ColorRampCombo/{ColorRampCombo.css → ColorRampCombo.less} +16 -10
- package/dist/Component/RuleGenerator/ColorsPreview/ColorsPreview.d.ts +1 -1
- package/dist/Component/RuleGenerator/ColorsPreview/{ColorsPreview.css → ColorsPreview.less} +1 -0
- package/dist/Component/RuleGenerator/RuleGenerator.d.ts +1 -1
- package/dist/Component/RuleGenerator/{RuleGenerator.css → RuleGenerator.less} +13 -9
- package/dist/Component/RuleGenerator/RuleGeneratorWindow.d.ts +1 -1
- package/dist/Component/RuleGenerator/RuleGeneratorWindow.less +36 -0
- package/dist/Component/RuleOverview/RuleOverview.d.ts +1 -1
- package/dist/Component/RuleTable/RuleTable.d.ts +1 -1
- package/dist/Component/RuleTable/RuleTable.less +71 -0
- package/dist/Component/Rules/Rules.d.ts +1 -1
- package/dist/Component/Rules/Rules.less +22 -0
- package/dist/Component/ScaleDenominator/MaxScaleDenominator.d.ts +1 -1
- package/dist/Component/ScaleDenominator/{MaxScaleDenominator.css → MaxScaleDenominator.less} +1 -0
- package/dist/Component/ScaleDenominator/MinScaleDenominator.d.ts +1 -1
- package/dist/Component/ScaleDenominator/{MinScaleDenominator.css → MinScaleDenominator.less} +1 -0
- package/dist/Component/Selectable/Selectable.d.ts +1 -1
- package/dist/Component/Selectable/SelectableItem/SelectableItem.d.ts +1 -1
- package/dist/Component/Selectable/SelectableItem/SelectableItem.less +18 -0
- package/dist/Component/SortableItem/SortableItem.d.ts +1 -1
- package/dist/Component/Style/Style.d.ts +1 -1
- package/dist/Component/Style/Style.less +44 -0
- package/dist/Component/StyleFieldContainer/StyleFieldContainer.d.ts +1 -1
- package/dist/Component/StyleOverview/StyleOverview.d.ts +1 -1
- package/dist/Component/Symbolizer/BulkEditModals/BulkEditModals.d.ts +1 -1
- package/dist/Component/Symbolizer/BulkEditModals/{BulkEditModals.css → BulkEditModals.less} +1 -0
- package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.d.ts +1 -1
- package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.less +37 -0
- package/dist/Component/Symbolizer/Editor/Editor.d.ts +1 -1
- package/dist/Component/{Filter/FilterEditorWindow/FilterEditorWindow.css → Symbolizer/Editor/Editor.less} +9 -4
- package/dist/Component/Symbolizer/Field/ColorField/ColorField.d.ts +1 -1
- package/dist/Component/{DataInput/WfsParserInput/WfsParserInput.css → Symbolizer/Field/ColorField/ColorField.less} +37 -12
- package/dist/Component/Symbolizer/Field/ImageField/ImageField.d.ts +2 -2
- package/dist/Component/Symbolizer/Field/ImageField/ImageField.less +43 -0
- package/dist/Component/Symbolizer/Field/LineDashField/LineDashField.d.ts +1 -1
- package/dist/Component/Symbolizer/Field/LineDashField/{LineDashField.css → LineDashField.less} +1 -0
- package/dist/Component/Symbolizer/Field/VisibilityField/VisibilityField.d.ts +1 -1
- package/dist/Component/Symbolizer/Field/VisibilityField/{VisibilityField.css → VisibilityField.less} +5 -4
- package/dist/Component/Symbolizer/IconSelector/IconSelector.d.ts +1 -1
- package/dist/Component/{RuleTable/RuleTable.css → Symbolizer/IconSelector/IconSelector.less} +47 -30
- package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.d.ts +1 -1
- package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.less +36 -0
- package/dist/Component/Symbolizer/MultiEditor/MultiEditor.d.ts +1 -1
- package/dist/Component/Symbolizer/MultiEditor/{MultiEditor.css → MultiEditor.less} +11 -8
- package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.d.ts +1 -1
- package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.less +40 -0
- package/dist/Component/Symbolizer/RasterEditor/RasterEditor.d.ts +1 -1
- package/dist/Component/Symbolizer/RasterEditor/{RasterEditor.css → RasterEditor.less} +1 -0
- package/dist/Component/Symbolizer/SLDUnitsSelect/SLDUnitsSelect.d.ts +1 -1
- package/dist/Component/Symbolizer/SLDUnitsSelect/{SLDUnitsSelect.css → SLDUnitsSelect.less} +2 -0
- package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.d.ts +1 -1
- package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.less +33 -0
- package/dist/Component/Symbolizer/TextEditor/TextEditor.d.ts +1 -1
- package/dist/Component/Symbolizer/TextEditor/TextEditor.less +33 -0
- package/dist/Component/SymbolizerCard/SymbolizerCard.d.ts +1 -1
- package/dist/Component/SymbolizerCard/{SymbolizerCard.css → SymbolizerCard.less} +15 -10
- package/dist/Component/Symbolizers/Symbolizers.d.ts +1 -1
- package/dist/Component/Symbolizers/Symbolizers.less +73 -0
- package/dist/Util/FilterUtil.js +4 -2
- package/dist/Util/FilterUtil.js.map +1 -1
- package/dist/geostyler.iife.js +264 -264
- package/dist/geostyler.iife.js.map +1 -1
- package/dist/locale/de_DE.js +7 -0
- package/dist/locale/de_DE.js.map +1 -1
- package/dist/locale/en_US.js +7 -0
- package/dist/locale/en_US.js.map +1 -1
- package/dist/locale/es_ES.js +7 -0
- package/dist/locale/es_ES.js.map +1 -1
- package/dist/locale/fr_FR.js +7 -0
- package/dist/locale/fr_FR.js.map +1 -1
- package/dist/locale/hr_HR.js +7 -0
- package/dist/locale/hr_HR.js.map +1 -1
- package/dist/locale/locale.d.ts +7 -0
- package/dist/locale/locale.js.map +1 -1
- package/dist/locale/zh_CN.js +7 -0
- package/dist/locale/zh_CN.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +15 -14
- package/dist/Component/Breadcrumb/Breadcrumb.css +0 -8
- package/dist/Component/BulkEditor/BulkEditor.css +0 -3
- package/dist/Component/CardStyle/CardStyle.css +0 -10
- package/dist/Component/CodeEditor/CodeEditor.css +0 -85
- package/dist/Component/ExpressionInput/BooleanExpressionInput/BooleanExpressionInput.css +0 -12
- package/dist/Component/ExpressionInput/NumberExpressionInput/NumberExpressionInput.css +0 -18
- package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.css +0 -22
- package/dist/Component/ExpressionInput/StringExpressionSelect/StringExpressionSelect.css +0 -18
- package/dist/Component/FieldContainer/FieldContainer.css +0 -6
- package/dist/Component/Filter/FilterTree/FilterTree.css +0 -65
- package/dist/Component/Filter/TextFilterField/TextFilterField.css +0 -3
- package/dist/Component/FilterOverview/FilterOverview.css +0 -6
- package/dist/Component/FunctionUI/FunctionNameCombo/FunctionNameCombo.css +0 -12
- package/dist/Component/FunctionUI/FunctionUI.css +0 -40
- package/dist/Component/RemovableItem/RemovableItem.css +0 -14
- package/dist/Component/RuleCard/RuleCard.css +0 -59
- package/dist/Component/RuleGenerator/RuleGeneratorWindow.css +0 -32
- package/dist/Component/Rules/Rules.css +0 -17
- package/dist/Component/Selectable/SelectableItem/SelectableItem.css +0 -14
- package/dist/Component/Style/Style.css +0 -39
- package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.css +0 -34
- package/dist/Component/Symbolizer/Editor/Editor.css +0 -33
- package/dist/Component/Symbolizer/Field/ColorField/ColorField.css +0 -56
- package/dist/Component/Symbolizer/Field/ImageField/ImageField.css +0 -39
- package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.css +0 -32
- package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.css +0 -33
- package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.css +0 -30
- package/dist/Component/Symbolizer/TextEditor/TextEditor.css +0 -30
- /package/dist/Component/Renderer/Renderer/{Renderer.css → Renderer.less} +0 -0
- /package/dist/Component/RuleGenerator/ClassificationCombo/{ClassificationCombo.css → ClassificationCombo.less} +0 -0
- /package/dist/Component/RuleOverview/{RuleOverview.css → RuleOverview.less} +0 -0
- /package/dist/Component/Selectable/{Selectable.css → Selectable.less} +0 -0
- /package/dist/Component/SortableItem/{SortableItem.css → SortableItem.less} +0 -0
- /package/dist/Component/StyleFieldContainer/{StyleFieldContainer.css → StyleFieldContainer.less} +0 -0
- /package/dist/Component/StyleOverview/{StyleOverview.css → StyleOverview.less} +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Code: [github](https://github.com/geostyler/geostyler)
|
|
9
9
|
Package: [npm](https://www.npmjs.com/package/geostyler)
|
|
10
10
|
<!-- DO NOT TOUCH next line. It will be replaced auotmaticaly via RELEASE.yml -->
|
|
11
|
-
Documentation: [main](https://geostyler.github.io/geostyler/main/index.html) / [latest](https://geostyler.github.io/geostyler/latest/index.html) / [15.0.0-beta.
|
|
11
|
+
Documentation: [main](https://geostyler.github.io/geostyler/main/index.html) / [latest](https://geostyler.github.io/geostyler/latest/index.html) / [15.0.0-beta.3](https://geostyler.github.io/geostyler/v15.0.0-beta.3/index.html)
|
|
12
12
|
|
|
13
13
|
Examples:
|
|
14
14
|
[Demo application](https://geostyler.github.io/geostyler-demo/)
|
package/dist/Component/{Symbolizer/IconSelector/IconSelector.css → CodeEditor/CodeEditor.less}
RENAMED
|
@@ -25,40 +25,75 @@
|
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
|
|
29
|
+
.gs-code-editor{
|
|
30
|
+
height: 100%;
|
|
31
|
+
text-align: left;
|
|
31
32
|
display: flex;
|
|
32
33
|
flex-direction: column;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
.gs-code-editor-feedback {
|
|
37
|
+
background-color: lightgray;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
transition: max-height 0.3s ease-out;
|
|
40
|
+
position: absolute;
|
|
41
|
+
bottom: 42px; // bottombar-height
|
|
42
|
+
width: 100%;
|
|
43
|
+
|
|
44
|
+
.write-feedback, .read-feedback{
|
|
45
|
+
span {
|
|
46
|
+
padding: 0 1em;
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.feedback-hidden {
|
|
52
|
+
max-height: 0
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.feedback-visible {
|
|
56
|
+
max-height: 400px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.gs-code-editor-toolbar,
|
|
61
|
+
.gs-code-editor-bottombar {
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 42px;
|
|
64
|
+
padding: 5px 0;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.gs-code-editor-toolbar {
|
|
71
|
+
.gs-code-editor-format-select {
|
|
72
|
+
width: 300px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.gs-code-editor-bottombar {
|
|
77
|
+
.center-items {
|
|
78
|
+
flex: 6;
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
}
|
|
82
|
+
.left-items {
|
|
83
|
+
flex: 1;
|
|
84
|
+
padding-left: 1em;
|
|
85
|
+
}
|
|
86
|
+
.right-items {
|
|
87
|
+
flex: 1;
|
|
88
|
+
padding-right: 1em;
|
|
89
|
+
}
|
|
90
|
+
.anticon {
|
|
91
|
+
font-size: 1.5em;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.gs-code-editor-download-button,
|
|
96
|
+
.gs-code-editor-copy-button {
|
|
97
|
+
margin: 0 5px;
|
|
98
|
+
}
|
|
64
99
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ReadParams } from 'geostyler-wfs-parser';
|
|
3
|
-
import './WfsParserInput.
|
|
3
|
+
import './WfsParserInput.less';
|
|
4
4
|
export interface WfsParserInputProps {
|
|
5
5
|
/** The callback method that is triggered when the state changes */
|
|
6
6
|
onClick: (wfsParams: ReadParams) => void;
|
package/dist/Component/{FieldSet/FieldSet.css → DataInput/WfsParserInput/WfsParserInput.less}
RENAMED
|
@@ -25,19 +25,31 @@
|
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
|
|
29
|
+
.wfs-parser-modal {
|
|
30
|
+
.ant-modal-footer {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.wfs-parser-input {
|
|
35
|
+
|
|
36
|
+
.ant-row {
|
|
37
|
+
&.ant-form-item {
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ant-form-item-label {
|
|
42
|
+
flex: 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ant-form-item-control-wrapper {
|
|
46
|
+
flex: 3;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.wfs-parser-submit-button {
|
|
51
|
+
float: right;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
43
55
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { SwitchProps } from 'antd';
|
|
3
3
|
import { FunctionUIProps } from '../../FunctionUI/FunctionUI';
|
|
4
4
|
import { Expression, GeoStylerBooleanFunction } from 'geostyler-style';
|
|
5
|
-
import './BooleanExpressionInput.
|
|
5
|
+
import './BooleanExpressionInput.less';
|
|
6
6
|
export interface BooleanExpressionInputProps {
|
|
7
7
|
value?: Expression<boolean>;
|
|
8
8
|
switchProps?: Omit<SwitchProps, 'checked' | 'onChange' | 'className'>;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { InputNumberProps } from 'antd/lib/input-number';
|
|
3
3
|
import { FunctionUIProps } from '../../FunctionUI/FunctionUI';
|
|
4
4
|
import { Expression, GeoStylerNumberFunction } from 'geostyler-style';
|
|
5
|
-
import './NumberExpressionInput.
|
|
5
|
+
import './NumberExpressionInput.less';
|
|
6
6
|
export interface NumberExpressionInputProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
functionUiProps?: FunctionUIProps<GeoStylerNumberFunction>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.number-expression-input {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
.gs-function-ui,
|
|
6
|
+
.ant-input-number-affix-wrapper,
|
|
7
|
+
.ant-input-number {
|
|
8
|
+
flex: 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
button.ant-btn {
|
|
12
|
+
display: none;
|
|
13
|
+
border-radius: 0 6px 6px 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
button.ant-btn {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ant-input-number,
|
|
22
|
+
.ant-input-number-affix-wrapper {
|
|
23
|
+
border-radius: 6px 0 0 6px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { InputProps } from 'antd';
|
|
3
3
|
import { FunctionUIProps } from '../../FunctionUI/FunctionUI';
|
|
4
4
|
import { Expression, GeoStylerStringFunction } from 'geostyler-style';
|
|
5
|
-
import './StringExpressionInput.
|
|
5
|
+
import './StringExpressionInput.less';
|
|
6
6
|
export interface StringExpressionInputProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
functionUiProps?: FunctionUIProps<GeoStylerStringFunction>;
|
|
@@ -38,8 +38,7 @@ export const StringExpressionInput = ({ className, functionUiProps, inputProps,
|
|
|
38
38
|
}
|
|
39
39
|
if (isGeoStylerFunction(value)) {
|
|
40
40
|
return (React.createElement("span", { className: finalClassName },
|
|
41
|
-
React.createElement(FunctionUI, { type: 'string', value: value, ...functionUiProps, onChange: onChange, onCancel: () => onCancel?.('string') })
|
|
42
|
-
";"));
|
|
41
|
+
React.createElement(FunctionUI, { type: 'string', value: value, ...functionUiProps, onChange: onChange, onCancel: () => onCancel?.('string') })));
|
|
43
42
|
}
|
|
44
43
|
return (React.createElement("span", { className: finalClassName },
|
|
45
44
|
React.createElement(Input, { value: value, onChange: (evt) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringExpressionInput.js","sourceRoot":"","sources":["../../../../src/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,MAAM,EACN,KAAK,EAEN,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,UAAU,EAAmB,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAGL,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,8BAA8B,CAAC;AAWtC,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,SAAS,EACT,eAAe,EACf,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,KAAK,EACN,EAAE,EAAE;IAEH,IAAI,cAAc,GAAG,yBAAyB,CAAC;IAC/C,IAAI,SAAS,EAAE,CAAC;QACd,cAAc,IAAI,IAAI,SAAS,EAAE,CAAC;IACpC,CAAC;IAED,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,CACL,8BAAM,SAAS,EAAE,cAAc;YAC7B,oBAAC,UAAU,IACT,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,KACR,eAAe,EACnB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,GACpC
|
|
1
|
+
{"version":3,"file":"StringExpressionInput.js","sourceRoot":"","sources":["../../../../src/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,MAAM,EACN,KAAK,EAEN,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,UAAU,EAAmB,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAGL,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,8BAA8B,CAAC;AAWtC,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,SAAS,EACT,eAAe,EACf,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,KAAK,EACN,EAAE,EAAE;IAEH,IAAI,cAAc,GAAG,yBAAyB,CAAC;IAC/C,IAAI,SAAS,EAAE,CAAC;QACd,cAAc,IAAI,IAAI,SAAS,EAAE,CAAC;IACpC,CAAC;IAED,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,CACL,8BAAM,SAAS,EAAE,cAAc;YAC7B,oBAAC,UAAU,IACT,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,KACR,eAAe,EACnB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,GACpC,CACG,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,8BAAM,SAAS,EAAE,cAAc;QAC7B,oBAAC,KAAK,IACJ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;gBAChB,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;oBAC9B,QAAQ,EAAE,CAAC,SAAS,CAAC,CAAC;gBACxB,CAAC;gBACD,QAAQ,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC/B,CAAC,KACG,UAAU,GACd;QACF,oBAAC,MAAM,IACL,IAAI,EAAE,oBAAC,gBAAgB,OAAG,EAC1B,OAAO,EAAE,GAAG,EAAE;gBACZ,QAAQ,EAAE,CAAC;oBACT,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,CAAC,EAAE,CAAC;iBACX,CAAC,CAAC;YACL,CAAC,GACD,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","sourcesContent":["/* Released under the BSD 2-Clause License\n *\n * Copyright © 2023-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 */\n\nimport React from 'react';\n\nimport {\n Button,\n Input,\n InputProps\n} from 'antd';\nimport { FunctionUI, FunctionUIProps } from '../../FunctionUI/FunctionUI';\nimport {\n Expression,\n GeoStylerStringFunction,\n isGeoStylerFunction\n} from 'geostyler-style';\nimport { FunctionOutlined } from '@ant-design/icons';\n\nimport './StringExpressionInput.less';\n\nexport interface StringExpressionInputProps {\n className?: string;\n functionUiProps?: FunctionUIProps<GeoStylerStringFunction>;\n inputProps?: Omit<InputProps, 'value' | 'onChange' | 'className'>;\n onCancel?: (type: 'string') => void;\n onChange?: (newValue: Expression<string> | undefined) => void;\n value?: Expression<string>;\n}\n\nexport const StringExpressionInput: React.FC<StringExpressionInputProps> = ({\n className,\n functionUiProps,\n inputProps,\n onCancel,\n onChange,\n value\n}) => {\n\n let finalClassName = 'string-expression-input';\n if (className) {\n finalClassName += ` ${className}`;\n }\n\n if (isGeoStylerFunction(value)) {\n return (\n <span className={finalClassName}>\n <FunctionUI<GeoStylerStringFunction>\n type='string'\n value={value}\n {...functionUiProps}\n onChange={onChange}\n onCancel={() => onCancel?.('string')}\n />\n </span>\n );\n }\n\n return (\n <span className={finalClassName}>\n <Input\n value={value}\n onChange={(evt) => {\n if (evt.target.value === null) {\n onChange?.(undefined);\n }\n onChange?.(evt.target.value);\n }}\n {...inputProps}\n />\n <Button\n icon={<FunctionOutlined />}\n onClick={() => {\n onChange?.({\n name: 'property',\n args: ['']\n });\n }}\n />\n </span>\n );\n};\n\nexport default StringExpressionInput;\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.string-expression-input {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
.gs-function-ui,
|
|
6
|
+
.ant-input {
|
|
7
|
+
flex: 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
button.ant-btn {
|
|
11
|
+
display: none;
|
|
12
|
+
border-radius: 0 6px 6px 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
button.ant-btn {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ant-input-affix-wrapper,
|
|
21
|
+
.ant-input-group-addon {
|
|
22
|
+
border-radius: 0;
|
|
23
|
+
}
|
|
24
|
+
.ant-input {
|
|
25
|
+
border-radius: 6px 0 0 6px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { SelectProps } from 'antd';
|
|
3
3
|
import { FunctionUIProps } from '../../FunctionUI/FunctionUI';
|
|
4
4
|
import { Expression, GeoStylerStringFunction } from 'geostyler-style';
|
|
5
|
-
import './StringExpressionSelect.
|
|
5
|
+
import './StringExpressionSelect.less';
|
|
6
6
|
export interface StringExpressionSelectProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
functionUiProps?: FunctionUIProps<GeoStylerStringFunction>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.string-expression-select {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
.gs-function-ui,
|
|
6
|
+
.ant-select {
|
|
7
|
+
flex: 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
button.ant-btn {
|
|
11
|
+
display: none;
|
|
12
|
+
border-radius: 0 6px 6px 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
button.ant-btn {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ant-select-selector {
|
|
21
|
+
border-radius: 6px 0 0 6px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
29
|
+
.gs-fieldset {
|
|
30
|
+
|
|
31
|
+
.fieldset-title {
|
|
32
|
+
position: relative;
|
|
33
|
+
top: 0.75em;
|
|
34
|
+
left: 1em;
|
|
35
|
+
background: white;
|
|
36
|
+
padding-left: 0.25em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fieldset-body {
|
|
40
|
+
border-top: 1px solid lightgrey;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.checked {
|
|
44
|
+
.fieldset-body {
|
|
45
|
+
border: 1px solid lightgrey;
|
|
46
|
+
border-radius: 4px;
|
|
47
|
+
padding-top: 1em;
|
|
48
|
+
padding-bottom: .5em;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Data as GeoStylerData } from 'geostyler-data';
|
|
3
3
|
import { ComparisonFilter as GsComparisonFilter, PropertyType } from 'geostyler-style';
|
|
4
|
-
import './ComparisonFilter.
|
|
4
|
+
import './ComparisonFilter.less';
|
|
5
5
|
type ValidationResult = {
|
|
6
6
|
isValid: boolean;
|
|
7
7
|
errorMsg: string;
|
package/dist/Component/Filter/ComparisonFilter/{ComparisonFilter.css → ComparisonFilter.less}
RENAMED
|
@@ -25,20 +25,27 @@
|
|
|
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
|
+
|
|
28
29
|
.gs-comparison-filter-ui {
|
|
29
30
|
padding-left: 5px;
|
|
30
31
|
display: flex;
|
|
31
32
|
flex: 1;
|
|
32
|
-
|
|
33
|
-
.gs-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.
|
|
43
|
-
|
|
33
|
+
|
|
34
|
+
.gs-attribute-combo {
|
|
35
|
+
flex: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.gs-text-filter-field {
|
|
39
|
+
flex: 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.micro {
|
|
43
|
+
.ant-form-item {
|
|
44
|
+
margin-bottom: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ant-form-item-label {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
44
51
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
29
|
+
.filter-editor-modal {
|
|
30
|
+
.ant-modal-body {
|
|
31
|
+
padding-top: 15px;
|
|
32
|
+
|
|
33
|
+
max-height: calc(100vh - 100px);
|
|
34
|
+
overflow: auto;
|
|
35
|
+
}
|
|
36
|
+
}
|