diff --git a/client/web/admin/package.json b/client/web/admin/package.json
index 8f019ebc8..ef4638280 100644
--- a/client/web/admin/package.json
+++ b/client/web/admin/package.json
@@ -27,9 +27,9 @@
"acorn": "^6.4.1",
"axios": "0.21.2",
"bootstrap-vue": "^2.21.2",
- "echarts": "^5.3.3",
"brace": "^0.11.1",
"copy-to-clipboard": "^3.3.1",
+ "echarts": "^5.3.3",
"flush-promises": "^1.0.2",
"fstream": "^1.0.12",
"kind-of": "^6.0.3",
@@ -51,7 +51,6 @@
"vue-echarts": "^6.2.3",
"vue-native-websocket": "^2.0.15",
"vue-router": "3.1.5",
- "vue-select": "3.4.0",
"vue2-brace-editor": "^2.0.2",
"vue2-dropzone": "^3.6.0",
"vuedraggable": "^2.23.2",
diff --git a/client/web/admin/src/components/Apigw/CFilterParams.vue b/client/web/admin/src/components/Apigw/CFilterParams.vue
index b58016f95..e13e5534f 100644
--- a/client/web/admin/src/components/Apigw/CFilterParams.vue
+++ b/client/web/admin/src/components/Apigw/CFilterParams.vue
@@ -27,15 +27,13 @@
v-model="param.value"
/>
-
+
+
diff --git a/client/web/compose/src/components/PageBlocks/Report/Configurator.vue b/client/web/compose/src/components/PageBlocks/Report/Configurator.vue
index d7790b0f8..2d6b01f78 100644
--- a/client/web/compose/src/components/PageBlocks/Report/Configurator.vue
+++ b/client/web/compose/src/components/PageBlocks/Report/Configurator.vue
@@ -6,26 +6,29 @@
:label="$t('report.label')"
label-class="text-primary"
>
-
+
-
@@ -37,12 +40,33 @@
:description="$t('report.element.description')"
label-class="text-primary"
>
-
+ :options="selectedReport.blocks"
+ :reduce="o => o.elements[0].elementID"
+ :get-option-label="getElementsOptionLabel"
+ default-value="0"
+ >
+
+
+
{{ option.title || `${$t('general:label.block')} ${option.key}` }}
+
+
+ -
+ {{ subOption.name || subOption.kind }}
+
+
+
+
+
+ {{ option.name }}
+
+
+
@@ -64,13 +88,6 @@ export default {
},
computed: {
- reportOptions () {
- return [
- { reportID: NoID, label: this.$t('general:label.none') },
- ...this.reports.map(r => ({ ...r, label: r.meta.name || r.handle })),
- ]
- },
-
selectedReport () {
const { reportID = NoID } = this.options
@@ -80,30 +97,6 @@ export default {
return undefined
},
-
- scenarioOptions () {
- const { scenarios = [] } = this.selectedReport || {}
-
- return [
- { scenarioID: NoID, label: this.$t('general:label.none') },
- ...scenarios,
- ]
- },
-
- elementOptions () {
- const elements = [{ elementID: NoID, name: this.$t('general:label.none') }]
-
- if (this.selectedReport) {
- this.selectedReport.blocks.forEach(b => {
- elements.push({
- label: b.title || `${this.$t('general:label.block')} ${b.key}`,
- options: b.elements.map(({ elementID, name, kind }) => ({ elementID, name: name || kind })),
- })
- })
- }
-
- return elements
- },
},
watch: {
@@ -132,6 +125,18 @@ export default {
setDefaultValues () {
this.reports = []
},
+
+ getElementsOptionLabel (o) {
+ const blockTitle = o.title.length > 1 ? `${o.title} - ` : ''
+ return `${blockTitle}${o.elements[0].name}` || o.elements[0].kind
+ },
+
+ handleReportChange () {
+ if (this.options.elementID) {
+ this.options.elementID = NoID
+ this.options.scenarioID = NoID
+ }
+ },
},
}
diff --git a/client/web/compose/src/components/PageBlocks/SocialFeedConfigurator.vue b/client/web/compose/src/components/PageBlocks/SocialFeedConfigurator.vue
index 187dca1da..2bede235e 100644
--- a/client/web/compose/src/components/PageBlocks/SocialFeedConfigurator.vue
+++ b/client/web/compose/src/components/PageBlocks/SocialFeedConfigurator.vue
@@ -10,6 +10,7 @@
:options="selectOptions"
/>
+
-
@@ -261,7 +258,6 @@
+
+
diff --git a/lib/vue/src/components/input/index.ts b/lib/vue/src/components/input/index.ts
index b7b65055b..479b7b21c 100644
--- a/lib/vue/src/components/input/index.ts
+++ b/lib/vue/src/components/input/index.ts
@@ -10,4 +10,5 @@ export { default as CInputColorPicker } from './CInputColorPicker.vue'
export { default as CAceEditor } from './CAceEditor.vue'
export {
CButtonSubmit
-} from './button'
\ No newline at end of file
+} from './button'
+export { default as CInputSelect } from './CInputSelect.vue'
diff --git a/lib/vue/src/components/permissions/CPermissionsModal.vue b/lib/vue/src/components/permissions/CPermissionsModal.vue
index d0dc6a39a..a39c7c0cf 100644
--- a/lib/vue/src/components/permissions/CPermissionsModal.vue
+++ b/lib/vue/src/components/permissions/CPermissionsModal.vue
@@ -43,17 +43,16 @@
:label="labels.edit.label"
label-class="text-primary"
>
-
@@ -75,6 +74,7 @@
>
{{ n }}
+
+
{{ labels.loading }}
@@ -122,6 +123,7 @@
:rules.sync="rules"
/>
+
+
+
-
@@ -212,7 +214,7 @@
label-class="text-primary"
class="mt-3 mb-0"
>
-
@@ -243,9 +244,8 @@