diff --git a/.eslintrc b/.eslintrc index 5a3f341b6..e6f7cb808 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "ecmaVersion": 2020, + "ecmaVersion": 2022, "sourceType": "module" }, "globals": { diff --git a/babel.config.js b/babel.config.js index 9bc21ecc7..da9df6caf 100644 --- a/babel.config.js +++ b/babel.config.js @@ -3,6 +3,7 @@ module.exports = { '@vue/cli-plugin-babel/preset' ], plugins: [ - "@babel/plugin-proposal-optional-chaining" + "@babel/plugin-proposal-optional-chaining", + "@babel/plugin-proposal-class-properties" ] }; diff --git a/src/components/ApiCapabilitiesMixin.js b/src/components/ApiCapabilitiesMixin.js index c7bf66470..0baefc573 100644 --- a/src/components/ApiCapabilitiesMixin.js +++ b/src/components/ApiCapabilitiesMixin.js @@ -45,7 +45,7 @@ export default ogcapi => ({ } let textMode = this.supportsConformance(CQL_TEXT); let jsonMode = this.supportsConformance(CQL_JSON); - if (!textMode/* && !jsonMode*/) { + if (!textMode && !jsonMode) { return null; } @@ -55,6 +55,9 @@ export default ogcapi => ({ advancedComparison: this.supportsConformance(CQL_ADV_COMPARISON) }; }, + cqlAdvComparison() { + return this.supportsConformance(CQL_ADV_COMPARISON); + }, filterComponentProps() { return { canSort: this.canSort, diff --git a/src/components/ItemFilter.vue b/src/components/ItemFilter.vue index c50ff87de..029ec4986 100644 --- a/src/components/ItemFilter.vue +++ b/src/components/ItemFilter.vue @@ -61,20 +61,21 @@