Skip to content

Commit

Permalink
Add linkOperator visibleElements property
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Feb 1, 2024
1 parent 1c76d4a commit 01dd95e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 3 deletions.
19 changes: 17 additions & 2 deletions src/main/js/apps/sample/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@
"defaultMode": {
"spatialRelation": true,
"spatialInputActions": false,
"linkOperator": true,
"sortSelect": false,
"fieldInfos": false,
"replaceOpenedTables": true
},
"predefinedMode": {
"spatialRelation": true,
"spatialRelation": false,
"linkOperator": false,
"sortSelect": false,
"fieldInfos": false,
"replaceOpenedTables": true
Expand Down Expand Up @@ -206,6 +208,11 @@
"iconClass": "icon-custom-info",
"complexQuery": {
"$or": [
{
"gattung": {
"$eq": "Ahorn (Acer)"
}
},
{
"gattung": {
"$eq": "Ahorn (Acer)"
Expand All @@ -218,9 +225,17 @@
"editable": true,
"editOptions": {
"spatialRelation": true,
"linkOperator": true,
"linkOperator": false,
"editFields": [
{
"label": "Baumart 1",
"field": false,
"relationalOperator": false,
"value": true
},

{
"label": "Baumart 2",
"field": false,
"relationalOperator": false,
"value": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default class EditableQueryBuilderWidgetFactory {
vm.visibleElements = {
fieldInfos: model.visibleElements.predefinedMode.fieldInfos,
spatialRelation: model.visibleElements.predefinedMode.spatialRelation,
linkOperator: model.visibleElements.predefinedMode.linkOperator,
spatialInputActions: false,
sortSelect: model.visibleElements.predefinedMode.sortSelect,
replaceOpenedTables: model.visibleElements.predefinedMode.replaceOpenedTables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export default class FilterQueryBuilderWidgetFactory {
vm.enableDistinctValues = model.enableDistinctValues;
vm.visibleElements = {
fieldInfos: model.visibleElements.filterMode.fieldInfos,
linkOperator: true,
spatialRelation: model.visibleElements.filterMode.spatialRelation,
spatialInputActions: false,
sortSelect: false
Expand Down
3 changes: 2 additions & 1 deletion src/main/js/bundles/dn_querybuilder/QueryBuilderWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
</v-flex>
</v-layout>
<v-layout
v-if="fieldQueriesLength > 1"
v-if="fieldQueriesLength > 1 && visibleElements.linkOperator"
:aria-label="i18n.linkOperator"
role="group"
row
Expand Down Expand Up @@ -400,6 +400,7 @@
spatialRelation: "everywhere",
visibleElements: {
spatialRelation: true,
linkOperator: true,
spatialInputActions: false,
sortSelect: false,
fieldInfos: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default class QueryBuilderWidgetFactory {
vm.visibleElements = {
fieldInfos: model.visibleElements.defaultMode.fieldInfos,
spatialRelation: model.visibleElements.defaultMode.spatialRelation,
linkOperator: model.visibleElements.defaultMode.linkOperator,
spatialInputActions: model.visibleElements.defaultMode.spatialInputActions,
sortSelect: model.visibleElements.defaultMode.sortSelect,
replaceOpenedTables: model.visibleElements.defaultMode.replaceOpenedTables
Expand Down
2 changes: 2 additions & 0 deletions src/main/js/bundles/dn_querybuilder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,14 @@ To use a store with the Query Builder bundle, add the value _querybuilder_ to th
"defaultMode": {
"spatialRelation": true,
"spatialInputActions": false,
"linkOperator": true,
"sortSelect": false,
"fieldInfos": false,
"replaceOpenedTables": false
},
"predefinedMode": {
"spatialRelation": true,
"linkOperator": true,
"sortSelect": false,
"fieldInfos": false,
"replaceOpenedTables": false
Expand Down
2 changes: 2 additions & 0 deletions src/main/js/bundles/dn_querybuilder/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,14 @@
"defaultMode": {
"spatialRelation": true,
"spatialInputActions": false,
"linkOperator": true,
"sortSelect": false,
"fieldInfos": false,
"replaceOpenedTables": false
},
"predefinedMode": {
"spatialRelation": true,
"linkOperator": true,
"sortSelect": false,
"fieldInfos": false,
"replaceOpenedTables": false
Expand Down

0 comments on commit 01dd95e

Please sign in to comment.