geostyler 15.0.0-beta.2 → 15.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +1 -1
  2. package/dist/Component/Breadcrumb/Breadcrumb.d.ts +1 -1
  3. package/dist/Component/Breadcrumb/Breadcrumb.less +15 -0
  4. package/dist/Component/BulkEditor/BulkEditor.d.ts +1 -1
  5. package/dist/Component/BulkEditor/BulkEditor.less +7 -0
  6. package/dist/Component/CardStyle/CardStyle.d.ts +1 -1
  7. package/dist/Component/CardStyle/CardStyle.less +16 -0
  8. package/dist/Component/CodeEditor/CodeEditor.d.ts +1 -1
  9. package/dist/Component/{Symbolizer/IconSelector/IconSelector.css → CodeEditor/CodeEditor.less} +69 -34
  10. package/dist/Component/DataInput/WfsParserInput/WfsParserInput.d.ts +1 -1
  11. package/dist/Component/{FieldSet/FieldSet.css → DataInput/WfsParserInput/WfsParserInput.less} +27 -15
  12. package/dist/Component/ExpressionInput/BooleanExpressionInput/BooleanExpressionInput.d.ts +1 -1
  13. package/dist/Component/ExpressionInput/BooleanExpressionInput/BooleanExpressionInput.less +16 -0
  14. package/dist/Component/ExpressionInput/NumberExpressionInput/NumberExpressionInput.d.ts +1 -1
  15. package/dist/Component/ExpressionInput/NumberExpressionInput/NumberExpressionInput.less +25 -0
  16. package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.d.ts +1 -1
  17. package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.less +29 -0
  18. package/dist/Component/ExpressionInput/StringExpressionSelect/StringExpressionSelect.d.ts +1 -1
  19. package/dist/Component/ExpressionInput/StringExpressionSelect/StringExpressionSelect.less +25 -0
  20. package/dist/Component/FieldContainer/FieldContainer.d.ts +1 -1
  21. package/dist/Component/FieldContainer/FieldContainer.less +7 -0
  22. package/dist/Component/FieldSet/FieldSet.d.ts +1 -1
  23. package/dist/Component/FieldSet/FieldSet.less +52 -0
  24. package/dist/Component/Filter/ComparisonFilter/ComparisonFilter.d.ts +1 -1
  25. package/dist/Component/Filter/ComparisonFilter/{ComparisonFilter.css → ComparisonFilter.less} +19 -12
  26. package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.d.ts +1 -1
  27. package/dist/Component/Filter/FilterEditorWindow/FilterEditorWindow.less +36 -0
  28. package/dist/Component/Filter/FilterTree/FilterTree.d.ts +1 -1
  29. package/dist/Component/Filter/FilterTree/FilterTree.less +87 -0
  30. package/dist/Component/Filter/TextFilterField/TextFilterField.d.ts +1 -1
  31. package/dist/Component/Filter/TextFilterField/TextFilterField.less +5 -0
  32. package/dist/Component/FilterOverview/FilterOverview.d.ts +1 -1
  33. package/dist/Component/FilterOverview/FilterOverview.less +8 -0
  34. package/dist/Component/FunctionUI/FunctionNameCombo/FunctionNameCombo.d.ts +1 -1
  35. package/dist/Component/FunctionUI/FunctionNameCombo/FunctionNameCombo.less +17 -0
  36. package/dist/Component/FunctionUI/FunctionUI.d.ts +1 -1
  37. package/dist/Component/FunctionUI/FunctionUI.less +60 -0
  38. package/dist/Component/NameField/NameField.d.ts +1 -1
  39. package/dist/Component/NameField/{NameField.css → NameField.less} +1 -0
  40. package/dist/Component/PreviewMap/PreviewMap.d.ts +1 -1
  41. package/dist/Component/PreviewMap/{PreviewMap.css → PreviewMap.less} +1 -0
  42. package/dist/Component/RemovableItem/RemovableItem.d.ts +1 -1
  43. package/dist/Component/RemovableItem/RemovableItem.less +18 -0
  44. package/dist/Component/Renderer/OlRenderer/OlRenderer.d.ts +1 -1
  45. package/dist/Component/Renderer/OlRenderer/{OlRenderer.css → OlRenderer.less} +1 -0
  46. package/dist/Component/Renderer/Renderer/Renderer.d.ts +1 -1
  47. package/dist/Component/Renderer/SLDRenderer/SLDRenderer.d.ts +1 -1
  48. package/dist/Component/Renderer/SLDRenderer/{SLDRenderer.css → SLDRenderer.less} +1 -0
  49. package/dist/Component/RuleCard/RuleCard.d.ts +1 -1
  50. package/dist/Component/{Symbolizers/Symbolizers.css → RuleCard/RuleCard.less} +41 -32
  51. package/dist/Component/RuleFieldContainer/RuleFieldContainer.d.ts +1 -1
  52. package/dist/Component/RuleFieldContainer/{RuleFieldContainer.css → RuleFieldContainer.less} +22 -18
  53. package/dist/Component/RuleGenerator/ClassificationCombo/ClassificationCombo.d.ts +1 -1
  54. package/dist/Component/RuleGenerator/ColorRampCombo/ColorRampCombo.d.ts +1 -1
  55. package/dist/Component/RuleGenerator/ColorRampCombo/{ColorRampCombo.css → ColorRampCombo.less} +16 -10
  56. package/dist/Component/RuleGenerator/ColorsPreview/ColorsPreview.d.ts +1 -1
  57. package/dist/Component/RuleGenerator/ColorsPreview/{ColorsPreview.css → ColorsPreview.less} +1 -0
  58. package/dist/Component/RuleGenerator/RuleGenerator.d.ts +1 -1
  59. package/dist/Component/RuleGenerator/{RuleGenerator.css → RuleGenerator.less} +13 -9
  60. package/dist/Component/RuleGenerator/RuleGeneratorWindow.d.ts +1 -1
  61. package/dist/Component/RuleGenerator/RuleGeneratorWindow.less +36 -0
  62. package/dist/Component/RuleOverview/RuleOverview.d.ts +1 -1
  63. package/dist/Component/RuleTable/RuleTable.d.ts +1 -1
  64. package/dist/Component/RuleTable/RuleTable.less +71 -0
  65. package/dist/Component/Rules/Rules.d.ts +1 -1
  66. package/dist/Component/Rules/Rules.less +22 -0
  67. package/dist/Component/ScaleDenominator/MaxScaleDenominator.d.ts +1 -1
  68. package/dist/Component/ScaleDenominator/{MaxScaleDenominator.css → MaxScaleDenominator.less} +1 -0
  69. package/dist/Component/ScaleDenominator/MinScaleDenominator.d.ts +1 -1
  70. package/dist/Component/ScaleDenominator/{MinScaleDenominator.css → MinScaleDenominator.less} +1 -0
  71. package/dist/Component/Selectable/Selectable.d.ts +1 -1
  72. package/dist/Component/Selectable/SelectableItem/SelectableItem.d.ts +1 -1
  73. package/dist/Component/Selectable/SelectableItem/SelectableItem.less +18 -0
  74. package/dist/Component/SortableItem/SortableItem.d.ts +1 -1
  75. package/dist/Component/Style/Style.d.ts +1 -1
  76. package/dist/Component/Style/Style.less +44 -0
  77. package/dist/Component/StyleFieldContainer/StyleFieldContainer.d.ts +1 -1
  78. package/dist/Component/StyleOverview/StyleOverview.d.ts +1 -1
  79. package/dist/Component/Symbolizer/BulkEditModals/BulkEditModals.d.ts +1 -1
  80. package/dist/Component/Symbolizer/BulkEditModals/{BulkEditModals.css → BulkEditModals.less} +1 -0
  81. package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.d.ts +1 -1
  82. package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.less +37 -0
  83. package/dist/Component/Symbolizer/Editor/Editor.d.ts +1 -1
  84. package/dist/Component/{Filter/FilterEditorWindow/FilterEditorWindow.css → Symbolizer/Editor/Editor.less} +9 -4
  85. package/dist/Component/Symbolizer/Field/ColorField/ColorField.d.ts +1 -1
  86. package/dist/Component/{DataInput/WfsParserInput/WfsParserInput.css → Symbolizer/Field/ColorField/ColorField.less} +37 -12
  87. package/dist/Component/Symbolizer/Field/ImageField/ImageField.d.ts +2 -2
  88. package/dist/Component/Symbolizer/Field/ImageField/ImageField.less +43 -0
  89. package/dist/Component/Symbolizer/Field/LineDashField/LineDashField.d.ts +1 -1
  90. package/dist/Component/Symbolizer/Field/LineDashField/{LineDashField.css → LineDashField.less} +1 -0
  91. package/dist/Component/Symbolizer/Field/VisibilityField/VisibilityField.d.ts +1 -1
  92. package/dist/Component/Symbolizer/Field/VisibilityField/{VisibilityField.css → VisibilityField.less} +5 -4
  93. package/dist/Component/Symbolizer/IconSelector/IconSelector.d.ts +1 -1
  94. package/dist/Component/{RuleTable/RuleTable.css → Symbolizer/IconSelector/IconSelector.less} +47 -30
  95. package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.d.ts +1 -1
  96. package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.less +36 -0
  97. package/dist/Component/Symbolizer/MultiEditor/MultiEditor.d.ts +1 -1
  98. package/dist/Component/Symbolizer/MultiEditor/{MultiEditor.css → MultiEditor.less} +11 -8
  99. package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.d.ts +1 -1
  100. package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.less +40 -0
  101. package/dist/Component/Symbolizer/RasterEditor/RasterEditor.d.ts +1 -1
  102. package/dist/Component/Symbolizer/RasterEditor/{RasterEditor.css → RasterEditor.less} +1 -0
  103. package/dist/Component/Symbolizer/SLDUnitsSelect/SLDUnitsSelect.d.ts +1 -1
  104. package/dist/Component/Symbolizer/SLDUnitsSelect/{SLDUnitsSelect.css → SLDUnitsSelect.less} +2 -0
  105. package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.d.ts +1 -1
  106. package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.less +33 -0
  107. package/dist/Component/Symbolizer/TextEditor/TextEditor.d.ts +1 -1
  108. package/dist/Component/Symbolizer/TextEditor/TextEditor.less +33 -0
  109. package/dist/Component/SymbolizerCard/SymbolizerCard.d.ts +1 -1
  110. package/dist/Component/SymbolizerCard/{SymbolizerCard.css → SymbolizerCard.less} +15 -10
  111. package/dist/Component/Symbolizers/Symbolizers.d.ts +1 -1
  112. package/dist/Component/Symbolizers/Symbolizers.less +73 -0
  113. package/package.json +2 -2
  114. package/dist/Component/Breadcrumb/Breadcrumb.css +0 -8
  115. package/dist/Component/BulkEditor/BulkEditor.css +0 -3
  116. package/dist/Component/CardStyle/CardStyle.css +0 -10
  117. package/dist/Component/CodeEditor/CodeEditor.css +0 -85
  118. package/dist/Component/ExpressionInput/BooleanExpressionInput/BooleanExpressionInput.css +0 -12
  119. package/dist/Component/ExpressionInput/NumberExpressionInput/NumberExpressionInput.css +0 -18
  120. package/dist/Component/ExpressionInput/StringExpressionInput/StringExpressionInput.css +0 -22
  121. package/dist/Component/ExpressionInput/StringExpressionSelect/StringExpressionSelect.css +0 -18
  122. package/dist/Component/FieldContainer/FieldContainer.css +0 -6
  123. package/dist/Component/Filter/FilterTree/FilterTree.css +0 -65
  124. package/dist/Component/Filter/TextFilterField/TextFilterField.css +0 -3
  125. package/dist/Component/FilterOverview/FilterOverview.css +0 -6
  126. package/dist/Component/FunctionUI/FunctionNameCombo/FunctionNameCombo.css +0 -12
  127. package/dist/Component/FunctionUI/FunctionUI.css +0 -40
  128. package/dist/Component/RemovableItem/RemovableItem.css +0 -14
  129. package/dist/Component/RuleCard/RuleCard.css +0 -59
  130. package/dist/Component/RuleGenerator/RuleGeneratorWindow.css +0 -32
  131. package/dist/Component/Rules/Rules.css +0 -17
  132. package/dist/Component/Selectable/SelectableItem/SelectableItem.css +0 -14
  133. package/dist/Component/Style/Style.css +0 -39
  134. package/dist/Component/Symbolizer/ColorMapEditor/ColorMapEditor.css +0 -34
  135. package/dist/Component/Symbolizer/Editor/Editor.css +0 -33
  136. package/dist/Component/Symbolizer/Field/ColorField/ColorField.css +0 -56
  137. package/dist/Component/Symbolizer/Field/ImageField/ImageField.css +0 -39
  138. package/dist/Component/Symbolizer/IconSelectorWindow/IconSelectorWindow.css +0 -32
  139. package/dist/Component/Symbolizer/PropTextEditor/PropTextEditor.css +0 -33
  140. package/dist/Component/Symbolizer/SymbolizerEditorWindow/SymbolizerEditorWindow.css +0 -30
  141. package/dist/Component/Symbolizer/TextEditor/TextEditor.css +0 -30
  142. /package/dist/Component/Renderer/Renderer/{Renderer.css → Renderer.less} +0 -0
  143. /package/dist/Component/RuleGenerator/ClassificationCombo/{ClassificationCombo.css → ClassificationCombo.less} +0 -0
  144. /package/dist/Component/RuleOverview/{RuleOverview.css → RuleOverview.less} +0 -0
  145. /package/dist/Component/Selectable/{Selectable.css → Selectable.less} +0 -0
  146. /package/dist/Component/SortableItem/{SortableItem.css → SortableItem.less} +0 -0
  147. /package/dist/Component/StyleFieldContainer/{StyleFieldContainer.css → StyleFieldContainer.less} +0 -0
  148. /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.1](https://geostyler.github.io/geostyler/v15.0.0-beta.1/index.html)
11
+ Documentation: [main](https://geostyler.github.io/geostyler/main/index.html) / [latest](https://geostyler.github.io/geostyler/latest/index.html) / [15.0.0-beta.2](https://geostyler.github.io/geostyler/v15.0.0-beta.2/index.html)
12
12
 
13
13
  Examples:
14
14
  [Demo application](https://geostyler.github.io/geostyler-demo/)
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './Breadcrumb.css';
2
+ import './Breadcrumb.less';
3
3
  export interface Crumb {
4
4
  title: string;
5
5
  view: string;
@@ -0,0 +1,15 @@
1
+ .gs-breadcrumb {
2
+
3
+ display: flex;
4
+ align-items: center;
5
+
6
+ .gs-breadcrumb-crumbs {
7
+
8
+ :not(span.ant-breadcrumb-separator) {
9
+ cursor: pointer;
10
+ text-decoration: underline;
11
+ }
12
+
13
+ }
14
+
15
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './BulkEditor.css';
2
+ import './BulkEditor.less';
3
3
  export interface BulkEditorProps {
4
4
  /** The callback that is triggered, when a style property changed. */
5
5
  onStylePropChange?: (prop: string, val: any) => void;
@@ -0,0 +1,7 @@
1
+ .gs-bulkeditor {
2
+ .gs-symbol-selection {
3
+ .kind-field {
4
+ margin-bottom: 12px;
5
+ }
6
+ }
7
+ }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Style as GsStyle } from 'geostyler-style';
3
- import './CardStyle.css';
3
+ import './CardStyle.less';
4
4
  import { Crumb } from '../Breadcrumb/Breadcrumb';
5
5
  export interface CardStyleProps {
6
6
  /** The geoStylerStyle object */
@@ -0,0 +1,16 @@
1
+ .gs-card-style {
2
+ > .gs-renderer {
3
+
4
+ .gs-symbolizer-olrenderer {
5
+ width: 50px;
6
+ height: 50px;
7
+ cursor: default;
8
+ }
9
+
10
+ .gs-symbolizer-sldrenderer {
11
+ width: 50px;
12
+ height: 50px;
13
+ cursor: default;
14
+ }
15
+ }
16
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './CodeEditor.css';
2
+ import './CodeEditor.less';
3
3
  import { Style as GsStyle, StyleParser } from 'geostyler-style';
4
4
  export interface CodeEditorProps {
5
5
  /** Delay in ms until onStyleChange will be called */
@@ -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
- .gs-icon-selector .gs-icon-selector-grid {
29
- cursor: pointer;
30
- box-shadow: none;
28
+
29
+ .gs-code-editor{
30
+ height: 100%;
31
+ text-align: left;
31
32
  display: flex;
32
33
  flex-direction: column;
33
- }
34
- .gs-icon-selector .gs-icon-selector-grid:hover {
35
- background-color: rgba(0, 0, 0, 0.05);
36
- /* box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.5); */
37
- }
38
- .gs-icon-selector .gs-icon-selector-grid-selected {
39
- background-color: rgba(0, 0, 0, 0);
40
- box-shadow: inset 0px 0px 2px 2px rgba(24, 144, 255, 0.8);
41
- }
42
- .gs-icon-selector .gs-icon-selector-grid-selected:hover {
43
- background-color: rgba(0, 0, 0, 0.05);
44
- box-shadow: inset 0px 0px 2px 2px rgba(24, 144, 255, 0.8);
45
- }
46
- .gs-icon-selector .gs-lib-row {
47
- display: flex;
48
- padding: 3px 0 3px 3px;
49
- }
50
- .gs-icon-selector .gs-lib-row .gs-label {
51
- padding-right: 10px;
52
- vertical-align: middle;
53
- line-height: 30px;
54
- }
55
- .gs-icon-selector .gs-lib-row .gs-select {
56
- flex: 1;
57
- }
58
- .gs-icon-selector .gs-icon-selector-grid-avatar {
59
- align-self: center;
60
- }
61
- .gs-icon-selector .gs-icon-selector-grid-description {
62
- text-align: center;
63
- padding-top: 5px;
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.css';
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;
@@ -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
- .gs-fieldset .fieldset-title {
29
- position: relative;
30
- top: 0.75em;
31
- left: 1em;
32
- background: white;
33
- padding-left: 0.25em;
34
- }
35
- .gs-fieldset .fieldset-body {
36
- border-top: 1px solid lightgrey;
37
- }
38
- .gs-fieldset.checked .fieldset-body {
39
- border: 1px solid lightgrey;
40
- border-radius: 4px;
41
- padding-top: 1em;
42
- padding-bottom: 0.5em;
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.css';
5
+ import './BooleanExpressionInput.less';
6
6
  export interface BooleanExpressionInputProps {
7
7
  value?: Expression<boolean>;
8
8
  switchProps?: Omit<SwitchProps, 'checked' | 'onChange' | 'className'>;
@@ -0,0 +1,16 @@
1
+ .boolean-expression-input {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ height: 32px;
6
+
7
+ button.ant-btn {
8
+ display: none;
9
+ }
10
+
11
+ &:hover {
12
+ button.ant-btn {
13
+ display: inline-block;
14
+ }
15
+ }
16
+ }
@@ -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.css';
5
+ import './NumberExpressionInput.less';
6
6
  export interface NumberExpressionInputProps {
7
7
  className?: string;
8
8
  functionUiProps?: FunctionUIProps<GeoStylerNumberFunction>;
@@ -0,0 +1,25 @@
1
+ .number-expression-input {
2
+ display: flex;
3
+ align-items: center;
4
+
5
+ .gs-function-ui,
6
+ .ant-input-number {
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-number {
21
+ border-radius: 6px 0 0 6px;
22
+ }
23
+ }
24
+
25
+ }
@@ -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.css';
5
+ import './StringExpressionInput.less';
6
6
  export interface StringExpressionInputProps {
7
7
  className?: string;
8
8
  functionUiProps?: FunctionUIProps<GeoStylerStringFunction>;
@@ -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.css';
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
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './FieldContainer.css';
2
+ import './FieldContainer.less';
3
3
  export interface FieldContainerProps {
4
4
  children?: React.ReactElement | React.ReactElement[];
5
5
  className?: string;
@@ -0,0 +1,7 @@
1
+ .gs-field-container {
2
+ width: 100%;
3
+
4
+ .ant-form-item {
5
+ margin-bottom: 12px;
6
+ }
7
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './FieldSet.css';
2
+ import './FieldSet.less';
3
3
  export interface FieldSetProps extends React.PropsWithChildren {
4
4
  /**
5
5
  * a CSS classanme
@@ -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.css';
4
+ import './ComparisonFilter.less';
5
5
  type ValidationResult = {
6
6
  isValid: boolean;
7
7
  errorMsg: string;
@@ -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-comparison-filter-ui .gs-attribute-combo {
34
- flex: 1;
35
- }
36
- .gs-comparison-filter-ui .gs-text-filter-field {
37
- flex: 1;
38
- }
39
- .gs-comparison-filter-ui.micro .ant-form-item {
40
- margin-bottom: 0;
41
- }
42
- .gs-comparison-filter-ui.micro .ant-form-item-label {
43
- display: none;
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
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import './FilterEditorWindow.css';
2
+ import './FilterEditorWindow.less';
3
3
  import { ModalProps } from 'antd';
4
4
  import { Filter } from 'geostyler-style';
5
5
  export interface FilterEditorWindowProps extends Partial<ModalProps> {
@@ -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
+ }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TreeProps } from 'antd';
3
3
  import { Filter } from 'geostyler-style';
4
- import './FilterTree.css';
4
+ import './FilterTree.less';
5
5
  export interface FilterTreeProps {
6
6
  /** The filter to edit */
7
7
  filter?: Filter;
@@ -0,0 +1,87 @@
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-filter-tree {
30
+ text-align: left;
31
+
32
+ &.ant-tree {
33
+ .style-filter-node.and-filter,
34
+ .style-filter-node.or-filter,
35
+ .style-filter-node.not-filter {
36
+ border-radius: 4px;
37
+ margin-bottom: 5px;
38
+ }
39
+
40
+ .style-filter-node {
41
+ width: 100%;
42
+
43
+ &.comparison-filter {
44
+
45
+ .gs-comparison-filter-ui {
46
+ padding-left: 0;
47
+ }
48
+
49
+ .ant-form-item {
50
+ .ant-form-item-control-input {
51
+ min-height: unset;
52
+ }
53
+ }
54
+
55
+ .ant-tree-switcher {
56
+ display: none;
57
+ }
58
+ }
59
+
60
+ .ant-tree-node-content-wrapper {
61
+ flex: 1;
62
+ height: inherit;
63
+ padding: 0;
64
+ }
65
+
66
+ .node-title {
67
+ display: flex;
68
+ align-items: baseline;
69
+ justify-content: space-between;
70
+
71
+ .filter-menu-button {
72
+ margin-left: 0.5em;
73
+ visibility: hidden;
74
+ }
75
+ }
76
+
77
+ &:hover {
78
+ .node-title {
79
+ .filter-menu-button {
80
+ visibility: visible;
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ }
87
+ }