@geogirafe/lib-geoportal 1.1.0-dev.2533353529 → 1.1.0-dev.2536443365
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/assets/i18n/de.json +36 -0
- package/assets/i18n/en.json +37 -0
- package/assets/i18n/fr.json +36 -0
- package/assets/i18n/it.json +37 -1
- package/assets/icons/advanced-filter.svg +1 -0
- package/components/advancedfilter/component.d.ts +54 -0
- package/components/advancedfilter/component.js +213 -0
- package/components/advancedfilter/layerfilterelement.d.ts +66 -0
- package/components/advancedfilter/layerfilterelement.js +182 -0
- package/components/drawing/component.d.ts +5 -3
- package/components/drawing/component.js +10 -9
- package/components/main.d.ts +2 -1
- package/components/main.js +2 -1
- package/components/map/component.js +6 -7
- package/components/querybuilder/component.d.ts +4 -7
- package/components/querybuilder/component.js +25 -60
- package/components/treeview/tools/treeviewelement.js +14 -1
- package/components/treeview/treeviewitem/component.js +1 -1
- package/models/filter.d.ts +19 -0
- package/models/filter.js +57 -0
- package/models/main.d.ts +3 -1
- package/models/main.js +2 -1
- package/models/selectionparam.d.ts +2 -2
- package/models/xmlTypes.d.ts +2 -0
- package/models/xmlTypes.js +14 -1
- package/package.json +1 -1
- package/templates/index.html +8 -0
- package/templates/public/about.json +1 -1
- package/tools/app/geogirafeapp.js +6 -4
- package/tools/drawing/cesiumDrawing.d.ts +42 -0
- package/{components → tools}/drawing/cesiumDrawing.js +11 -10
- package/{components → tools}/drawing/drawingFeature.d.ts +6 -11
- package/{components → tools}/drawing/drawingFeature.js +6 -11
- package/{components → tools}/drawing/drawingSerializer.d.ts +4 -4
- package/{components → tools}/drawing/drawingSerializer.js +9 -7
- package/tools/drawing/drawingState.d.ts +7 -0
- package/tools/drawing/drawingState.js +5 -0
- package/{components → tools}/drawing/olDrawing.d.ts +35 -42
- package/{components → tools}/drawing/olDrawing.js +21 -20
- package/tools/filter/basefilter.d.ts +35 -0
- package/tools/filter/basefilter.js +58 -0
- package/tools/main.d.ts +13 -3
- package/tools/main.js +10 -1
- package/tools/share/serializers/layerconfigserializer.js +5 -5
- package/tools/share/serializers/selectionserializer.d.ts +1 -1
- package/tools/share/serializers/selectionserializer.js +3 -3
- package/tools/share/serializers/sharedtypes.d.ts +8 -3
- package/tools/share/serializers/wfsfilterserializer.d.ts +4 -0
- package/tools/share/serializers/wfsfilterserializer.js +22 -0
- package/tools/state/brain/serialize.d.ts +1 -1
- package/tools/state/brain/serialize.js +1 -1
- package/tools/state/graphicalInterface.d.ts +1 -0
- package/tools/state/graphicalInterface.js +1 -0
- package/tools/state/objectselection.d.ts +1 -1
- package/tools/themes/themeshelper.js +6 -2
- package/tools/wfs/wfsclient.js +1 -1
- package/tools/wfs/wfsfilter.d.ts +19 -27
- package/tools/wfs/wfsfilter.js +63 -180
- package/tools/wfs/wfsfiltercondition.d.ts +48 -0
- package/tools/wfs/wfsfiltercondition.js +211 -0
- package/tools/wfs/wfsmanager.d.ts +7 -1
- package/tools/wfs/wfsmanager.js +22 -1
- package/tools/wms/wmsclient.d.ts +1 -1
- package/tools/wms/wmsmanager.d.ts +1 -1
- package/components/drawing/cesiumDrawing.d.ts +0 -45
- /package/{components → tools}/drawing/shapeConstraints.d.ts +0 -0
- /package/{components → tools}/drawing/shapeConstraints.js +0 -0
package/assets/i18n/it.json
CHANGED
|
@@ -9,18 +9,23 @@
|
|
|
9
9
|
"Activate batch creation mode to draw multiple features without needing to reselect the tool": "Attiva la modalità di creazione batch per disegnare più feature senza la necessità di riselezionare lo strumento",
|
|
10
10
|
"add": "Aggiungi",
|
|
11
11
|
"Add bookmark": "Aggiungi segnalibro",
|
|
12
|
+
"Add condition": "Aggiungi condizione",
|
|
12
13
|
"Add selected": "Agguingi selezione",
|
|
13
14
|
"Add your first items": "Aggiungi i tuoi primi elementi",
|
|
14
15
|
"add_bookmark": "Aggiungi segnalibro",
|
|
15
16
|
"add_group": "Aggiungi un gruppo di layer",
|
|
16
17
|
"add_layer": "Aggiungi un layer",
|
|
17
18
|
"add_theme": "Aggiungi un tema",
|
|
19
|
+
"Advanced filter": "Filtro avanzato",
|
|
20
|
+
"advanced-filter-panel": "Filtro avanzato",
|
|
18
21
|
"after": "dopo",
|
|
19
22
|
"Altitude": "Altitudine",
|
|
20
23
|
"An error occurred while loading the themes. This has nothing to do with GeoGirafe and is very probably a backend-configuration error (wrong content in themes.json, or CORS error). Please check the backend configuration.": "Si è verificato un errore durante il caricamento dei temi. Questo non ha nulla a che fare con GeoGirafe ed è molto probabilmente un errore di configurazione del backend (contenuto errato in themes.json o errore CORS). Si prega di controllare la configurazione del backend.",
|
|
24
|
+
"Apply": "Applica",
|
|
21
25
|
"Apply filter": "Applica filtro",
|
|
22
26
|
"Arrows style": "Stile delle frecce",
|
|
23
27
|
"Ask a question": "Fai una domanda",
|
|
28
|
+
"Attribute": "Attributo",
|
|
24
29
|
"auto_WMTS": "WMS/WMTS",
|
|
25
30
|
"Backend error": "Errore del backend",
|
|
26
31
|
"basemap": "Mappe di base",
|
|
@@ -29,15 +34,17 @@
|
|
|
29
34
|
"Batch creation mode": "Modalità di creazione batch",
|
|
30
35
|
"before": "prima",
|
|
31
36
|
"between": "tra",
|
|
37
|
+
"boolean": "booleano",
|
|
32
38
|
"Build": "Build",
|
|
33
39
|
"by selecting a theme": "selezionando un tema",
|
|
40
|
+
"byte": "octet",
|
|
34
41
|
"Cancel": "Annulla",
|
|
35
42
|
"Cancel editing": "Annullamento della modifica",
|
|
36
43
|
"Cannot send message": "Impossibile inviare il messaggio",
|
|
37
44
|
"Center on shape": "Centra sulla forma",
|
|
38
45
|
"cesium-loading-quote": "cesium-loading-quote",
|
|
39
46
|
"change_search_result_color": "Cambia il colore del risultato",
|
|
40
|
-
"Choose a layer...": "
|
|
47
|
+
"Choose a layer...": "Scegliere un livello...",
|
|
41
48
|
"Choose local file": "Scegliere un file locale",
|
|
42
49
|
"Circle": "Cerchio",
|
|
43
50
|
"Classes": "Classi",
|
|
@@ -66,8 +73,11 @@
|
|
|
66
73
|
"darkFrontendMode": "Modalità di visualizzazione",
|
|
67
74
|
"darkMapMode": "Mappa scura",
|
|
68
75
|
"Date": "Data",
|
|
76
|
+
"date": "data",
|
|
77
|
+
"dateTime": "data e ora",
|
|
69
78
|
"de": "Tedesco",
|
|
70
79
|
"debug": "Debug",
|
|
80
|
+
"decimal": "decimale",
|
|
71
81
|
"Define time restriction on group": "Definire la restrizione temporale del gruppo",
|
|
72
82
|
"Define time restriction on layer": "Definire la restrizione temporale del livello",
|
|
73
83
|
"delete": "Elimina",
|
|
@@ -92,6 +102,7 @@
|
|
|
92
102
|
"Documentation": "Documentazione",
|
|
93
103
|
"does not contain": "non contiene",
|
|
94
104
|
"does not equal": "diverso da",
|
|
105
|
+
"double": "double",
|
|
95
106
|
"download": "Scarica",
|
|
96
107
|
"download_help": "Scarica",
|
|
97
108
|
"download_video": "Scaricare il video",
|
|
@@ -143,6 +154,7 @@
|
|
|
143
154
|
"File from": "File da",
|
|
144
155
|
"Files _fileNames_ are not supported": "I file _fileNames_ non sono supportati",
|
|
145
156
|
"Fill color": "Colore di riempimento",
|
|
157
|
+
"Filter": "Filtra",
|
|
146
158
|
"Filter external layers...": "Filtra i layers...",
|
|
147
159
|
"Filter layer": "Filtra layer",
|
|
148
160
|
"Filter layer tree...": "Albero dei livelli di filtraggio...",
|
|
@@ -191,6 +203,8 @@
|
|
|
191
203
|
"Hide Swiper": "Nascondi Swiper",
|
|
192
204
|
"info": "Informazione",
|
|
193
205
|
"Information without public faith": "Informazioni prive di fede pubblica",
|
|
206
|
+
"int": "intero",
|
|
207
|
+
"integer": "intero",
|
|
194
208
|
"Intensity": "Intensità",
|
|
195
209
|
"Invert selection": "Inverti selezione",
|
|
196
210
|
"is blank": "è vuoto",
|
|
@@ -202,6 +216,8 @@
|
|
|
202
216
|
"Label": "Etichetta",
|
|
203
217
|
"language": "Lingua",
|
|
204
218
|
"Large": "Grande",
|
|
219
|
+
"Layer": "Layer",
|
|
220
|
+
"Layer selection": "Selezione dei layer",
|
|
205
221
|
"Layers": "Layer",
|
|
206
222
|
"Layers (from Capabilities)": "Livelli (da Capabilities)",
|
|
207
223
|
"layers selected": "layer nella selezione",
|
|
@@ -223,9 +239,11 @@
|
|
|
223
239
|
"local": "Locale",
|
|
224
240
|
"local file": "File locale",
|
|
225
241
|
"Local Files": "File locali",
|
|
242
|
+
"Logic": "Logica",
|
|
226
243
|
"Login": "Accedi",
|
|
227
244
|
"logLevel": "Livello di log",
|
|
228
245
|
"Logout": "Disconnetti",
|
|
246
|
+
"long": "entier long",
|
|
229
247
|
"Longpress disable geolocation": "Tenga premuto il pulsante per disattivare la geolocalizzazione.",
|
|
230
248
|
"Manual entry": "Inserimento manuale",
|
|
231
249
|
"map": "Mappa",
|
|
@@ -241,6 +259,8 @@
|
|
|
241
259
|
"My selection": "La mia selezione",
|
|
242
260
|
"Name": "Nome",
|
|
243
261
|
"Navigate to Selection": "Vai alla selezione",
|
|
262
|
+
"negativeInteger": "intero negativo",
|
|
263
|
+
"New Filter": "Nuovo filtro",
|
|
244
264
|
"news": "Notizie",
|
|
245
265
|
"No": "No",
|
|
246
266
|
"No bookmark": "Nessun segnalibro",
|
|
@@ -248,8 +268,12 @@
|
|
|
248
268
|
"No features where found in your file that could be displayed within the maximal extent configured in your application.": "Nel tuo file non sono state trovate entità che possano essere visualizzate nell'estensione massima configurata nella tua applicazione.",
|
|
249
269
|
"No features within map extent": "Nessuna entità nell'estensione della mappa",
|
|
250
270
|
"No graph to export in PNG!": "Nessun grafico da esportare in PNG!",
|
|
271
|
+
"No layer available": "Nessun layer disponibile",
|
|
251
272
|
"No match found": "Nessun risultato corrispondente",
|
|
273
|
+
"nonNegativeInteger": "intero non negativo",
|
|
274
|
+
"nonPositiveInteger": "intero non positivo",
|
|
252
275
|
"Nothing here yet!": "Ancora nessun contenuto!",
|
|
276
|
+
"number": "numero",
|
|
253
277
|
"Offline data": "Dati offline",
|
|
254
278
|
"Offline mode": "Modalità offline",
|
|
255
279
|
"Ok": "Ok",
|
|
@@ -264,7 +288,9 @@
|
|
|
264
288
|
"onboarding-treeview-filter-selection-description": "Puoi filtrare i livelli presenti nella struttura ad albero",
|
|
265
289
|
"onboarding-treeview-filter-selection-title": "Filtra i livelli",
|
|
266
290
|
"Only WMTS layers are saved": "Solo i layer WMTS vengono salvati",
|
|
291
|
+
"Open advanced filter tool": "Apri lo strumento di filtro avanzato",
|
|
267
292
|
"OpenStreetMap": "OpenStreetMap",
|
|
293
|
+
"Operator": "Operatore",
|
|
268
294
|
"or": "oppure",
|
|
269
295
|
"palette_option_blues": "Blu",
|
|
270
296
|
"palette_option_greys": "Grigio",
|
|
@@ -277,6 +303,7 @@
|
|
|
277
303
|
"PNG export": "Esporta PNG",
|
|
278
304
|
"Point": "Punto",
|
|
279
305
|
"Polygon": "Poligono",
|
|
306
|
+
"positiveInteger": "intero positivo",
|
|
280
307
|
"predefined": "Predefinito",
|
|
281
308
|
"Predefined servers": "Servers predefiniti",
|
|
282
309
|
"Press 'Enter' to apply": "Premi 'Invio' per applicare",
|
|
@@ -371,8 +398,11 @@
|
|
|
371
398
|
"search_tooltip": "Cerca un luogo, un indirizzo, una mappa o un dato geografico",
|
|
372
399
|
"searchFillColor": "Colore di riempimento dei risultati della ricerca",
|
|
373
400
|
"searchStrokeColor": "Colore del tratto dei risultati della ricerca",
|
|
401
|
+
"Select a layer": "Seleziona un layer",
|
|
374
402
|
"Select all": "Seleziona tutto",
|
|
375
403
|
"Select all filtered layers": "Slezionare tutti i layers filtrati",
|
|
404
|
+
"Select an attribute": "Seleziona un attributo",
|
|
405
|
+
"Select an operator": "Seleziona un operatore",
|
|
376
406
|
"Select attribute...": "Seleziona attributo...",
|
|
377
407
|
"Select basemap": "Seleziona mappa di base",
|
|
378
408
|
"Select File": "Seleziona un file",
|
|
@@ -394,6 +424,7 @@
|
|
|
394
424
|
"Shadows": "Ombre",
|
|
395
425
|
"Share this map": "Condividi questa mappa",
|
|
396
426
|
"share-panel": "Condividi o incorpora la mappa",
|
|
427
|
+
"short": "intero corto",
|
|
397
428
|
"Show metadata": "Mostra metadati",
|
|
398
429
|
"Show or hide measure information": "Mostra o nascondi le informazioni di misura",
|
|
399
430
|
"Show or hide shape name": "Mostra o nascondi il nome della forma",
|
|
@@ -416,6 +447,7 @@
|
|
|
416
447
|
"Source Type": "Tipo di layer",
|
|
417
448
|
"Square": "Quadrato",
|
|
418
449
|
"stop_video": "Interrompere il video",
|
|
450
|
+
"string": "stringa",
|
|
419
451
|
"Stroke color": "Colore della linea",
|
|
420
452
|
"Suggestions": "Suggerimenti",
|
|
421
453
|
"SVG": "SVG",
|
|
@@ -444,6 +476,10 @@
|
|
|
444
476
|
"Tools": "Strumenti",
|
|
445
477
|
"unfreeze-column": "Sblocca colonna",
|
|
446
478
|
"Unselect all filtered layers": "Deselezionare tutti i layers filtrati",
|
|
479
|
+
"unsignedByte": "byte non segnato",
|
|
480
|
+
"unsignedInt": "entier non signé",
|
|
481
|
+
"unsignedLong": "intero lungo non segnato",
|
|
482
|
+
"unsignedShort": "intero corto non segnato",
|
|
447
483
|
"Unsupported file format": "Formato di file non supportato",
|
|
448
484
|
"URL (auto_WMTS)": "URL",
|
|
449
485
|
"URL (WMS)": "URL",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><mask id="a" width="24" height="24" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#d9d9d9" d="M0 0h24v24H0z"/></mask><g mask="url(#a)" transform="translate(-4 3)"><path fill="#1c1b1f" d="M11 20a.97.97 0 0 1-.713-.288A.97.97 0 0 1 10 19v-6L4.2 5.6q-.375-.5-.112-1.05Q4.35 4 5 4h14q.65 0 .913.55.261.55-.113 1.05L14 13v6q0 .424-.287.712A.97.97 0 0 1 13 20zm1-7.7L16.95 6h-9.9z"/></g><g mask="url(#a)" transform="translate(4 -1)"><path fill="#1c1b1f" d="M11 20a.97.97 0 0 1-.713-.288A.97.97 0 0 1 10 19v-6L4.2 5.6q-.375-.5-.112-1.05Q4.35 4 5 4h14q.65 0 .913.55.261.55-.113 1.05L14 13v6q0 .424-.287.712A.97.97 0 0 1 13 20zm1-7.7L16.95 6h-9.9z"/></g></svg>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
2
|
+
import LayerWms from '../../models/layers/layerwms.js';
|
|
3
|
+
import ColumnAliasHelper from '../../tools/utils/aliases.js';
|
|
4
|
+
import IGirafePanel from '../../tools/state/igirafepanel.js';
|
|
5
|
+
import LayerFilterElement, { FilterCondition } from './layerfilterelement.js';
|
|
6
|
+
declare class AdvancedFilterComponent extends GirafeHTMLElement implements IGirafePanel {
|
|
7
|
+
protected templateUrl: string | null;
|
|
8
|
+
protected styleUrls: string[] | null;
|
|
9
|
+
template: () => import("uhtml").Hole;
|
|
10
|
+
isPanelVisible: boolean;
|
|
11
|
+
panelTitle: string;
|
|
12
|
+
panelTogglePath: string;
|
|
13
|
+
layers: LayerWms[];
|
|
14
|
+
layerFilterElements: LayerFilterElement[];
|
|
15
|
+
columnAliasHelper: ColumnAliasHelper;
|
|
16
|
+
layerIsRefreshing: Map<number, boolean>;
|
|
17
|
+
constructor();
|
|
18
|
+
render(): void;
|
|
19
|
+
registerEvents(): void;
|
|
20
|
+
private updateFilterableLayerList;
|
|
21
|
+
/**
|
|
22
|
+
* Updates the list of filter elements based on the current state of the layers in the layer tree.
|
|
23
|
+
*/
|
|
24
|
+
private updateFilterItemsByLayerState;
|
|
25
|
+
/**
|
|
26
|
+
* Determines whether the given layer is selectable based on its visibility and absence in other filter elements.
|
|
27
|
+
*/
|
|
28
|
+
isLayerSelectable(filterElement: LayerFilterElement, layer: LayerWms): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Combine layer name and name of the parent group for easier identification.
|
|
31
|
+
*/
|
|
32
|
+
getLayerDisplayName(layer: LayerWms): string;
|
|
33
|
+
onFilterAdded(): void;
|
|
34
|
+
private addEmptyFilterElement;
|
|
35
|
+
/**
|
|
36
|
+
* Uses the already existing filter object in the layer to create a filter element in the UI.
|
|
37
|
+
*/
|
|
38
|
+
private addFilterElementFromLayer;
|
|
39
|
+
onFilterRemoved(filterElement: LayerFilterElement): void;
|
|
40
|
+
private removeFilterElement;
|
|
41
|
+
onLayerChanged(filterElement: LayerFilterElement, e: Event): Promise<void>;
|
|
42
|
+
onConditionRemoved(filterElement: LayerFilterElement, condition: FilterCondition): void;
|
|
43
|
+
onConditionAdded(filterElement: LayerFilterElement): void;
|
|
44
|
+
onLogicalOperatorChanged(filterElement: LayerFilterElement, condition: FilterCondition, e: Event): void;
|
|
45
|
+
onAttributeChanged(filterElement: LayerFilterElement, condition: FilterCondition, e: Event): void;
|
|
46
|
+
onOperatorChanged(filterElement: LayerFilterElement, condition: FilterCondition, e: Event): void;
|
|
47
|
+
onValueChanged(condition: FilterCondition, e: Event): void;
|
|
48
|
+
onValue2Changed(condition: FilterCondition, e: Event): void;
|
|
49
|
+
onConditionApplied(filterElement: LayerFilterElement, condition: FilterCondition): void;
|
|
50
|
+
private applyFilter;
|
|
51
|
+
togglePanel(visible: boolean): void;
|
|
52
|
+
protected connectedCallback(): void;
|
|
53
|
+
}
|
|
54
|
+
export default AdvancedFilterComponent;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { html as uHtml } from 'uhtml';
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import GirafeHTMLElement from '../../base/GirafeHTMLElement.js';
|
|
4
|
+
import LayerWms from '../../models/layers/layerwms.js';
|
|
5
|
+
import ColumnAliasHelper from '../../tools/utils/aliases.js';
|
|
6
|
+
import LayerFilterElement from './layerfilterelement.js';
|
|
7
|
+
import GroupLayer from '../../models/layers/grouplayer.js';
|
|
8
|
+
class AdvancedFilterComponent extends GirafeHTMLElement {
|
|
9
|
+
templateUrl = null;
|
|
10
|
+
styleUrls = null;
|
|
11
|
+
template = () => {
|
|
12
|
+
return uHtml `<style>
|
|
13
|
+
*{font-family:Arial,sans-serif}.hidden{display:none!important}.gg-rotate90{transform:rotate(90deg)}.gg-rotate180{transform:rotate(180deg)}.gg-rotate270{transform:rotate(270deg)}img{filter:var(--svg-filter)}img.legend-image{filter:var(--svg-map-filter);background:var(--svg-legend-bkg)}div{scrollbar-width:thin}a,a:visited{color:var(--link-color)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin-wait{0%{transform:rotate(0)}7%{transform:rotate(360deg)}to{transform:rotate(360deg)}}.gg-spin{animation-name:spin;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite}.gg-spin-wait{animation-name:spin-wait;animation-duration:10s;animation-timing-function:linear;animation-iteration-count:infinite}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#999}.gg-button,.gg-select,.gg-input,.gg-textarea{background-color:var(--bkg-color);color:var(--text-color);border:var(--app-standard-border);box-sizing:border-box;cursor:pointer;border-radius:3px;outline:0;margin:0;padding:0 0 0 .5rem;display:inline-block}.gg-label{background-color:var(--bkg-color);color:var(--text-color);border:none;align-items:center;margin:0;padding:0;display:flex}.gg-button,.gg-select,.gg-input,.gg-label{min-height:calc(var(--app-standard-height) / 1.5)}.gg-textarea{max-height:initial;resize:vertical;height:6rem;padding:.5rem;line-height:1.3rem}.gg-input{cursor:text}.gg-checkbox{accent-color:var(--text-color);width:1.2rem}.gg-range{accent-color:var(--text-color)}.gg-button{padding:0 .5rem}.gg-button.active{border:solid 1px var(--text-color-grad2);background-color:var(--text-color-grad2);color:var(--bkg-color)}.gg-button:disabled{color:gray;cursor:not-allowed;background-color:#d3d3d3;border:none}.gg-input:disabled,.gg-select:disabled,.gg-textarea:disabled{color:gray;cursor:not-allowed;background-color:#d3d3d3}.gg-button>img{vertical-align:middle}.gg-icon-button{color:var(--text-color);cursor:pointer;background-color:#0000;border:none;flex-direction:column;justify-content:center;align-items:center;padding:0;display:flex}.gg-icon{justify-content:center;align-items:center;display:flex}.gg-big,.gg-big-withtext{min-width:var(--app-standard-height);min-height:var(--app-standard-height);max-height:var(--app-standard-height)}.gg-big img,.gg-big-withtext img{width:calc(var(--app-standard-height) - 1.5rem);margin:0}.gg-big-withtext span{font-variant:small-caps;padding:0 1rem;font-size:.9rem}.gg-medium,.gg-medium-withtext{min-width:calc(var(--app-standard-height) / 1.2);min-height:calc(var(--app-standard-height) / 1.2);max-height:calc(var(--app-standard-height) / 1.2);flex-direction:row}.gg-medium img{width:calc(var(--app-standard-height) / 2.4);margin:0}.gg-medium-withtext img{width:calc(var(--app-standard-height) / 2.4);margin-left:.5rem}.gg-medium-withtext span{padding:0 1rem 0 .5rem;font-size:.9rem}.gg-small,.gg-small-withtext{min-width:calc(var(--app-standard-height) / 2);min-height:calc(var(--app-standard-height) / 2);max-height:calc(var(--app-standard-height) / 2);flex-direction:row}.gg-small img{width:calc(var(--app-standard-height) / 3);margin:0}.gg-small-withtext img{width:calc(var(--app-standard-height) / 3);margin-left:.5rem}.gg-small-withtext span{padding:0 .5rem 0 .3rem;font-size:.9rem}.gg-button:hover,.gg-select:hover,.gg-input:hover,.gg-textarea:hover,.gg-icon-button:hover{background-color:var(--bkg-color-grad1)}.gg-opacity{opacity:.5}.gg-opacity:hover{opacity:1;background-color:#0000}.gg-tabs{cursor:pointer;grid-auto-flow:column;padding-bottom:1rem;font-size:1rem;display:grid}.gg-tab{border:none;border-bottom:var(--app-standard-border);cursor:pointer;color:var(--text-color);background:0 0;padding:.5rem}.gg-tab.active{border-bottom:solid 1px var(--text-color)}.girafe-button-big,.girafe-button-large,.girafe-button-small,.girafe-button-tiny{color:var(--text-color);background-color:#0000;border:none;flex-direction:column;display:flex}.girafe-button-big:hover,.girafe-button-large:hover,.girafe-button-small:hover,.girafe-button-tiny:hover{background-color:var(--bkg-color-grad1);cursor:pointer}.girafe-button-big.dark,.girafe-button-large.dark,.girafe-button-small.dark,.girafe-button-tiny.dark{background-color:var(--bkg-color);filter:invert()}.girafe-button-big{width:var(--app-standard-height);height:var(--app-standard-height);align-items:center;padding:1rem}.girafe-button-big img{overflow:hidden}.girafe-button-large{flex-direction:row}.girafe-button-large img{height:2rem;margin:.3rem}.girafe-button-large span{height:2rem;margin:.3rem;line-height:2rem}.girafe-button-small{min-width:calc(var(--app-standard-height) / 2);height:calc(var(--app-standard-height) / 2);align-items:center;padding:.5rem}.girafe-button-small img{overflow:hidden}.girafe-button-small span{text-align:left;text-overflow:ellipsis;width:100%;overflow:hidden}.girafe-button-tiny{align-items:center;width:1rem;height:1rem;padding:0}.girafe-button-tiny img{overflow:hidden}.girafe-onboarding-theme{background-color:var(--bkg-color)!important;color:var(--text-color)!important}.girafe-onboarding-theme button{background-color:var(--bkg-color)!important;color:var(--text-color)!important;text-shadow:none!important}.girafe-onboarding-theme button.driver-popover-close-btn{z-index:10000}
|
|
14
|
+
</style><style>
|
|
15
|
+
#content{background:var(--bkg-color);color:var(--text-color);flex-direction:column;gap:1rem;margin:0;padding:1rem;display:flex}.filter-element-container{flex-direction:column;gap:1.5rem;display:flex}.filter-element{background-color:color-mix(in srgb, var(--bkg-color-grad1) 30%, transparent);box-shadow:var(--bx-shdw);border-radius:3px;flex-direction:column;gap:.5rem;padding:.5rem;display:flex;position:relative}.filter-title{text-overflow:ellipsis;white-space:nowrap;padding-right:2rem;font-size:1.2rem}.filter-expression{padding-right:1.5rem;font-family:monospace,Arial,sans-serif;font-size:.85rem}.gg-label{background-color:#0000}.layer-select-container{flex-direction:column;display:flex}.text-ellipsis{text-overflow:ellipsis;overflow:hidden}.filter-condition-container{flex-direction:column;gap:.5rem;display:flex}.filter-condition{background-color:var(--bkg-color);box-shadow:var(--bx-shdw);border-radius:3px;flex-direction:column;margin-left:.5rem;padding:.5rem;display:flex}.value-inputs{gap:.5rem;display:flex}.value-inputs>input{width:100%}.action-btn{float:left;width:fit-content}.apply-btn{margin-top:1rem}.remove-btn{align-self:flex-end;margin:-.25rem -.25rem 0 0;font-size:1.25rem;position:absolute}.footer-container{display:flex}.loader{box-sizing:border-box;border:3px solid var(--text-color);opacity:.5;border-bottom-color:#0000;border-radius:50%;align-self:center;width:25px;height:25px;margin-left:auto;margin-right:.5rem;animation:1s linear infinite rotation;display:inline-block}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
16
|
+
</style>
|
|
17
|
+
<style>${this.customStyle}</style>
|
|
18
|
+
<div id="content"><div class="filter-element-container">${this.layerFilterElements.map((filterElement) => uHtml `<div class="filter-element" data-id="${filterElement.id}"><div class="filter-title text-ellipsis">${filterElement.title}</div><button class="gg-icon-button gg-small remove-btn" onclick="${() => this.onFilterRemoved(filterElement)}"><img alt="remove-icon" src="icons/close.svg"></button><div class="layer-select-container"><label class="gg-label" i18n="Layer selection" for="${'layer-select-' + filterElement.id}">Layer selection</label> <select id="${'layer-select-' + filterElement.id}" class="gg-select text-ellipsis" onchange="${(e) => this.onLayerChanged(filterElement, e)}"><option value="" i18n="${this.layers.length === 0 ? 'No layer available' : 'Select a layer'}" selected="selected" disabled="disabled"></option>${this.layers.map(layer => uHtml `<option value="${layer.id}" i18n="${this.getLayerDisplayName(layer)}" ?selected="${filterElement.layer?.id === layer.id}" ?disabled="${!this.isLayerSelectable(filterElement, layer)}">${this.getLayerDisplayName(layer)}</option>`)}</select></div><div class="${filterElement.conditions ? 'filter-condition-container' : 'hidden'}">${filterElement.conditions.map((condition) => uHtml `<div class="filter-condition"><button class="gg-icon-button gg-small remove-btn" onclick="${() => this.onConditionRemoved(filterElement, condition)}"><img alt="remove-icon" src="icons/close.svg"></button> ${condition.filterConditionInstance ? uHtml `<div class="filter-expression">${filterElement.conditionToText(condition)}</div>` : uHtml ` ${filterElement.isLogicalOperatorSelectorVisible(condition) ? uHtml ` <label class="gg-label" i18n="Logic" for="${'attribute-select-' + condition.id}">Logic</label> <select id="${'logic-select-' + condition.id}" class="gg-select text-ellipsis" onchange="${(e) => this.onLogicalOperatorChanged(filterElement, condition, e)}">${filterElement.availableLogicalOperators.map((lop) => uHtml `<option value="${lop.operator}" ?selected="${condition.logicalOperator === lop.operator}">${lop.displayName}</option>`)}</select> ` : ''} <label class="gg-label" i18n="Attribute" for="${'attribute-select-' + condition.id}">Attribute</label> <select id="${'attribute-select-' + condition.id}" class="gg-select text-ellipsis" onchange="${(e) => this.onAttributeChanged(filterElement, condition, e)}"><option value="" i18n="Select an attribute" selected="selected" disabled="disabled"></option>${filterElement.attributes.map((attr) => uHtml `<option value="${attr.name}" ?selected="${condition.attribute?.name === attr.name}">${filterElement.getAttributeDisplayName(attr)}</option>`)}</select> <label class="gg-label" i18n="Operator" for="${'operator-select-' + condition.id}">Operator</label> <select id="${'operator-select-' + condition.id}" class="gg-select text-ellipsis" disabled="${!filterElement.isOperatorSelectorEnabled(condition)}" onchange="${(e) => this.onOperatorChanged(filterElement, condition, e)}"><option value="" i18n="Select an operator" selected="selected" disabled="disabled"></option>${(condition.availableOperators ?? []).map((op) => uHtml `<option value="${op.operator}" ?selected="${condition.operator === op.operator}">${op.displayName}</option>`)}</select> ${filterElement.isValueInputVisible(condition) ? uHtml ` <label class="gg-label" i18n="Value" for="${'value-input-' + condition.id}">Value</label><div class="value-inputs"><input id="${'value-input-' + condition.id}" type="${filterElement.getInputTypeByAttributeType(condition.attribute?.type)}" class="gg-input" disabled="${condition.operator ? '' : 'disabled'}" value="${condition.value}" oninput="${(e) => this.onValueChanged(condition, e)}"> ${filterElement.isValue2InputVisible(condition) ? uHtml ` <input type="${filterElement.getInputTypeByAttributeType(condition.attribute?.type)}" class="gg-input" value="${condition.value2}" oninput="${(e) => this.onValue2Changed(condition, e)}"> ` : ''}</div>` : ''} <button class="gg-button action-btn apply-btn" onclick="${() => this.onConditionApplied(filterElement, condition)}" i18n="Apply"></button> `}</div>`)}</div><div class="footer-container"><button class="${filterElement.layer ? 'gg-button action-btn' : 'hidden'}" onclick="${() => this.onConditionAdded(filterElement)}" i18n="Add condition"></button> <span class="${filterElement.layer && this.layerIsRefreshing.get(filterElement.layer.id) ? 'loader' : 'hidden'}"></span></div></div>`)}</div><div class="filter-actions"><button class="gg-button gaction-btn" onclick="${() => this.onFilterAdded()}" i18n="New Filter"></button></div></div>`;
|
|
19
|
+
};
|
|
20
|
+
isPanelVisible = false;
|
|
21
|
+
panelTitle = 'advanced-filter-panel';
|
|
22
|
+
panelTogglePath = 'interface.advancedFilterPanelVisible';
|
|
23
|
+
layers = [];
|
|
24
|
+
layerFilterElements = [];
|
|
25
|
+
columnAliasHelper;
|
|
26
|
+
layerIsRefreshing = new Map();
|
|
27
|
+
constructor() {
|
|
28
|
+
super('advanced-filter');
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
super.render();
|
|
32
|
+
if (!this.isPanelVisible) {
|
|
33
|
+
this.renderEmpty();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
super.girafeTranslate();
|
|
37
|
+
}
|
|
38
|
+
registerEvents() {
|
|
39
|
+
this.subscribe(/layers\.layersList\..*/, () => {
|
|
40
|
+
if (this.isPanelVisible) {
|
|
41
|
+
void this.updateFilterItemsByLayerState();
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
this.subscribe(/layers\.layersList\..*\.activeState/, (_oldValue, _newValue, layer) => {
|
|
45
|
+
if (layer instanceof LayerWms && this.isPanelVisible) {
|
|
46
|
+
this.updateFilterableLayerList();
|
|
47
|
+
this.render();
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
this.subscribe('loading', (_, loading) => {
|
|
51
|
+
// Update the loading state of layers to control the spinner style in the template
|
|
52
|
+
if (!loading && this.layerIsRefreshing.size > 0) {
|
|
53
|
+
this.layerIsRefreshing = new Map();
|
|
54
|
+
this.render();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
updateFilterableLayerList() {
|
|
59
|
+
this.layers = this.context.layerManager
|
|
60
|
+
.getFlattenedLayerTree(this.state.layers.layersList)
|
|
61
|
+
.filter((l) => l instanceof LayerWms && l.active && l.queryable && l.ogcServer?.urlWfs);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Updates the list of filter elements based on the current state of the layers in the layer tree.
|
|
65
|
+
*/
|
|
66
|
+
async updateFilterItemsByLayerState() {
|
|
67
|
+
// Set back the currently refreshing layer
|
|
68
|
+
this.layerIsRefreshing = new Map();
|
|
69
|
+
// Update which layers are active and queryable
|
|
70
|
+
this.updateFilterableLayerList();
|
|
71
|
+
// Remove filter elements that are no longer needed
|
|
72
|
+
for (const filterElement of this.layerFilterElements) {
|
|
73
|
+
const layerInTree = this.layers.find((l) => l.id === filterElement.layer?.id);
|
|
74
|
+
if (
|
|
75
|
+
// Filter element does not have a layer yet
|
|
76
|
+
filterElement.layer === undefined ||
|
|
77
|
+
// Layer isn't in layer tree anymore
|
|
78
|
+
(filterElement.layer && !layerInTree) ||
|
|
79
|
+
// Filter in layer was removed
|
|
80
|
+
(filterElement.layer && layerInTree.filter === undefined)) {
|
|
81
|
+
this.removeFilterElement(filterElement);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// Add filter elements for layers that are new in the layer tree and do not have a filter element yet
|
|
85
|
+
for (const layer of this.layers) {
|
|
86
|
+
if (layer.hasFilter && !this.layerFilterElements.some((f) => f.layer?.id === layer.id)) {
|
|
87
|
+
await this.addFilterElementFromLayer(layer);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// Finally, if no filter element is present, add an empty one
|
|
91
|
+
if (this.layerFilterElements.length === 0) {
|
|
92
|
+
// Render an empty component first,
|
|
93
|
+
this.render();
|
|
94
|
+
// ...then add an empty filter element
|
|
95
|
+
this.addEmptyFilterElement();
|
|
96
|
+
}
|
|
97
|
+
this.render();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Determines whether the given layer is selectable based on its visibility and absence in other filter elements.
|
|
101
|
+
*/
|
|
102
|
+
isLayerSelectable(filterElement, layer) {
|
|
103
|
+
return (this.layerFilterElements.filter((f) => f.id != filterElement.id && f.layer?.id === layer.id)
|
|
104
|
+
.length === 0);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Combine layer name and name of the parent group for easier identification.
|
|
108
|
+
*/
|
|
109
|
+
getLayerDisplayName(layer) {
|
|
110
|
+
let nameParts = [layer.name];
|
|
111
|
+
if (layer.parent instanceof GroupLayer) {
|
|
112
|
+
nameParts = [layer.parent.name, layer.name];
|
|
113
|
+
}
|
|
114
|
+
const uniqueNames = new Set(nameParts.map((part) => this.context.i18nManager.getTranslation(part)));
|
|
115
|
+
return Array.from(uniqueNames).join(' - ');
|
|
116
|
+
}
|
|
117
|
+
onFilterAdded() {
|
|
118
|
+
this.addEmptyFilterElement();
|
|
119
|
+
this.render();
|
|
120
|
+
}
|
|
121
|
+
addEmptyFilterElement() {
|
|
122
|
+
const filterElement = new LayerFilterElement(this.context, this.columnAliasHelper, this.layerFilterElements.length);
|
|
123
|
+
this.layerFilterElements.push(filterElement);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Uses the already existing filter object in the layer to create a filter element in the UI.
|
|
127
|
+
*/
|
|
128
|
+
async addFilterElementFromLayer(layer) {
|
|
129
|
+
const filterElement = new LayerFilterElement(this.context, this.columnAliasHelper, this.layerFilterElements.length);
|
|
130
|
+
await filterElement.setFromLayer(layer);
|
|
131
|
+
this.layerFilterElements.push(filterElement);
|
|
132
|
+
}
|
|
133
|
+
onFilterRemoved(filterElement) {
|
|
134
|
+
this.removeFilterElement(filterElement);
|
|
135
|
+
this.render();
|
|
136
|
+
}
|
|
137
|
+
removeFilterElement(filterElement) {
|
|
138
|
+
const idx = this.layerFilterElements.indexOf(filterElement);
|
|
139
|
+
if (idx !== -1) {
|
|
140
|
+
if (filterElement.layer) {
|
|
141
|
+
filterElement.layer.filter = undefined;
|
|
142
|
+
}
|
|
143
|
+
this.layerFilterElements.splice(idx, 1);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
async onLayerChanged(filterElement, e) {
|
|
147
|
+
const layerId = Number(e.target.value);
|
|
148
|
+
const layer = this.layers.find((l) => l.id === layerId);
|
|
149
|
+
await filterElement.setLayer(layer);
|
|
150
|
+
this.render();
|
|
151
|
+
}
|
|
152
|
+
onConditionRemoved(filterElement, condition) {
|
|
153
|
+
filterElement.removeCondition(condition);
|
|
154
|
+
if (condition.filterConditionInstance) {
|
|
155
|
+
this.applyFilter(filterElement);
|
|
156
|
+
}
|
|
157
|
+
this.render();
|
|
158
|
+
}
|
|
159
|
+
onConditionAdded(filterElement) {
|
|
160
|
+
filterElement.addCondition();
|
|
161
|
+
this.render();
|
|
162
|
+
}
|
|
163
|
+
onLogicalOperatorChanged(filterElement, condition, e) {
|
|
164
|
+
const selectedLogicalOperator = e.target.value;
|
|
165
|
+
filterElement.setLogicalOperatorInCondition(condition, selectedLogicalOperator);
|
|
166
|
+
this.render();
|
|
167
|
+
}
|
|
168
|
+
onAttributeChanged(filterElement, condition, e) {
|
|
169
|
+
const selectedAttributeName = e.target.value;
|
|
170
|
+
filterElement.setAttributeInCondition(condition, selectedAttributeName);
|
|
171
|
+
this.render();
|
|
172
|
+
}
|
|
173
|
+
onOperatorChanged(filterElement, condition, e) {
|
|
174
|
+
const selectedOperator = e.target.value;
|
|
175
|
+
filterElement.setOperatorInCondition(condition, selectedOperator);
|
|
176
|
+
this.render();
|
|
177
|
+
}
|
|
178
|
+
onValueChanged(condition, e) {
|
|
179
|
+
condition.value = e.target.value;
|
|
180
|
+
}
|
|
181
|
+
onValue2Changed(condition, e) {
|
|
182
|
+
condition.value2 = e.target.value;
|
|
183
|
+
}
|
|
184
|
+
onConditionApplied(filterElement, condition) {
|
|
185
|
+
if (filterElement.createFilterConditionInstance(condition)) {
|
|
186
|
+
this.applyFilter(filterElement);
|
|
187
|
+
}
|
|
188
|
+
this.render();
|
|
189
|
+
}
|
|
190
|
+
applyFilter(filterElement) {
|
|
191
|
+
if (filterElement.layer) {
|
|
192
|
+
filterElement.layer.filter = filterElement.createFilterInstance();
|
|
193
|
+
this.layerIsRefreshing.set(filterElement.layer.id, true);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
togglePanel(visible) {
|
|
197
|
+
this.isPanelVisible = visible;
|
|
198
|
+
if (visible) {
|
|
199
|
+
void this.updateFilterItemsByLayerState();
|
|
200
|
+
}
|
|
201
|
+
this.render();
|
|
202
|
+
}
|
|
203
|
+
connectedCallback() {
|
|
204
|
+
super.connectedCallback();
|
|
205
|
+
this.columnAliasHelper = new ColumnAliasHelper(this.context.stateManager);
|
|
206
|
+
this.updateFilterItemsByLayerState().then(() => {
|
|
207
|
+
super.render();
|
|
208
|
+
super.girafeTranslate();
|
|
209
|
+
this.registerEvents();
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
export default AdvancedFilterComponent;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import LayerWms from '../../models/layers/layerwms.js';
|
|
2
|
+
import { LayerAttribute } from '../../models/serverwfs.js';
|
|
3
|
+
import { AttributeTypeGroup, FilterOperator, LogicalFilterOperator } from '../../models/filter.js';
|
|
4
|
+
import { BaseFilterCondition } from '../../tools/filter/basefilter.js';
|
|
5
|
+
import IGirafeContext from '../../tools/context/icontext.js';
|
|
6
|
+
import WfsFilter from '../../tools/wfs/wfsfilter.js';
|
|
7
|
+
import ColumnAliasHelper from '../../tools/utils/aliases.js';
|
|
8
|
+
export interface FilterCondition {
|
|
9
|
+
id: string;
|
|
10
|
+
attribute?: LayerAttribute;
|
|
11
|
+
availableOperators?: {
|
|
12
|
+
operator: FilterOperator;
|
|
13
|
+
displayName: string;
|
|
14
|
+
}[];
|
|
15
|
+
operator?: FilterOperator;
|
|
16
|
+
value?: string;
|
|
17
|
+
value2?: string;
|
|
18
|
+
logicalOperator?: LogicalFilterOperator;
|
|
19
|
+
filterConditionInstance?: BaseFilterCondition<unknown>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents the state of a filter element in the AdvancedFilterComponent. This class provides functionality
|
|
23
|
+
* to store and manage filter conditions, operators, and attributes.
|
|
24
|
+
*/
|
|
25
|
+
declare class LayerFilterElement {
|
|
26
|
+
context: IGirafeContext;
|
|
27
|
+
columnAliasHelper: ColumnAliasHelper;
|
|
28
|
+
id: string;
|
|
29
|
+
position: number;
|
|
30
|
+
layer?: LayerWms;
|
|
31
|
+
attributes: LayerAttribute[];
|
|
32
|
+
attributeTitles: Map<string, string>;
|
|
33
|
+
conditions: FilterCondition[];
|
|
34
|
+
constructor(context: IGirafeContext, columnAliasHelper: ColumnAliasHelper, position: number);
|
|
35
|
+
/**
|
|
36
|
+
* Sets the filter element with all conditions from a given layer with an existing filter.
|
|
37
|
+
*/
|
|
38
|
+
setFromLayer(layer: LayerWms): Promise<void>;
|
|
39
|
+
private setConditionsFromLayerRecursively;
|
|
40
|
+
get title(): string;
|
|
41
|
+
get availableLogicalOperators(): {
|
|
42
|
+
operator: LogicalFilterOperator;
|
|
43
|
+
displayName: string;
|
|
44
|
+
}[];
|
|
45
|
+
setLayer(layer: LayerWms): Promise<void>;
|
|
46
|
+
addCondition(): void;
|
|
47
|
+
removeCondition(condition: FilterCondition): void;
|
|
48
|
+
setLogicalOperatorInCondition(condition: FilterCondition, operator: string): void;
|
|
49
|
+
setAttributeInCondition(condition: FilterCondition, attributeName: string): void;
|
|
50
|
+
setOperatorInCondition(condition: FilterCondition, operator: string): void;
|
|
51
|
+
private getOperatorsByAttributeType;
|
|
52
|
+
createFilterConditionInstance(condition: FilterCondition): boolean;
|
|
53
|
+
createFilterInstance(): WfsFilter | undefined;
|
|
54
|
+
isLogicalOperatorSelectorVisible(condition: FilterCondition): boolean;
|
|
55
|
+
isOperatorSelectorEnabled(condition: FilterCondition): boolean;
|
|
56
|
+
isValueInputVisible(condition: FilterCondition): boolean;
|
|
57
|
+
isValue2InputVisible(condition: FilterCondition): boolean;
|
|
58
|
+
getInputTypeByAttributeType(attributeType: string | undefined): AttributeTypeGroup;
|
|
59
|
+
getAttributeDisplayName(attribute: LayerAttribute): string;
|
|
60
|
+
/**
|
|
61
|
+
* Converts a filter condition to its text representation, using the filterCondition instances
|
|
62
|
+
* toTextRepresentation method and adding the logical operator if it is defined.
|
|
63
|
+
*/
|
|
64
|
+
conditionToText(condition: FilterCondition): string;
|
|
65
|
+
}
|
|
66
|
+
export default LayerFilterElement;
|