@processmaker/screen-builder 2.66.0 → 2.68.0
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/dist/vue-form-builder.common.js +627 -332
- package/dist/vue-form-builder.common.js.map +1 -1
- package/dist/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.umd.js +627 -332
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/dist/vue-form-builder.umd.min.js +5 -5
- package/dist/vue-form-builder.umd.min.js.map +1 -1
- package/package.json +3 -3
- package/src/components/inspector/collection-select-list.vue +33 -10
- package/src/components/inspector/options-list.vue +2 -4
- package/src/components/watchers-form.vue +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/screen-builder",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.68.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve",
|
|
6
6
|
"build": "vue-cli-service build",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@cypress/code-coverage": "^3.8.1",
|
|
40
40
|
"@fortawesome/fontawesome-free": "^5.6.1",
|
|
41
41
|
"@panter/vue-i18next": "^0.15.2",
|
|
42
|
-
"@processmaker/vue-form-elements": "0.44.
|
|
42
|
+
"@processmaker/vue-form-elements": "0.44.1",
|
|
43
43
|
"@processmaker/vue-multiselect": "^2.2.0",
|
|
44
44
|
"@vue/cli-plugin-babel": "^3.6.0",
|
|
45
45
|
"@vue/cli-plugin-e2e-cypress": "^4.0.3",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@panter/vue-i18next": "^0.15.0",
|
|
91
|
-
"@processmaker/vue-form-elements": "0.44.
|
|
91
|
+
"@processmaker/vue-form-elements": "0.44.1",
|
|
92
92
|
"i18next": "^15.0.8",
|
|
93
93
|
"vue": "^2.6.12",
|
|
94
94
|
"vuex": "^3.1.1"
|
|
@@ -32,23 +32,33 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<div class="mt-3" v-if="fields.length > 1">
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
<pmql-input
|
|
36
|
+
:search-type="'collections_w_mustaches'"
|
|
37
|
+
class="mb-1"
|
|
38
|
+
data-cy="inspector-collection-pmql"
|
|
39
|
+
:input-label="'PMQL'"
|
|
40
|
+
v-model="pmql"
|
|
41
|
+
:condensed="true"
|
|
42
|
+
:ai-enabled="true"
|
|
43
|
+
:placeholder="$t('PMQL')">
|
|
44
|
+
</pmql-input>
|
|
45
|
+
<small class="form-text text-muted">{{ $t('Advanced data search') }}</small>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="mt-3" v-if="fields.length > 1">
|
|
49
|
+
<form-checkbox
|
|
50
|
+
:label="$t('Ignore duplicates in list')"
|
|
51
|
+
v-model="unique"
|
|
52
|
+
:helper="$t('Select to show only distinct list entries if labels are repeated. Only the first value will be used if duplicate labels have different values.')"
|
|
53
|
+
data-cy="inspector-collection-isDependent"
|
|
42
54
|
/>
|
|
43
|
-
<small class="form-text text-muted">{{
|
|
44
|
-
$t("Add a PMQL query to filter the result list. Use `data` as prefix")
|
|
45
|
-
}}</small>
|
|
46
55
|
</div>
|
|
47
56
|
|
|
48
57
|
</div>
|
|
49
58
|
</template>
|
|
50
59
|
|
|
51
60
|
<script>
|
|
61
|
+
import { debounce } from "lodash";
|
|
52
62
|
import _ from "lodash";
|
|
53
63
|
import MustacheHelper from "./mustache-helper";
|
|
54
64
|
import ScreenVariableSelector from '../screen-variable-selector.vue';
|
|
@@ -58,6 +68,7 @@ const CONFIG_FIELDS = [
|
|
|
58
68
|
"labelField",
|
|
59
69
|
"valueField",
|
|
60
70
|
"pmql",
|
|
71
|
+
"unique",
|
|
61
72
|
];
|
|
62
73
|
|
|
63
74
|
export default {
|
|
@@ -74,6 +85,7 @@ export default {
|
|
|
74
85
|
labelField: null,
|
|
75
86
|
valueField: null,
|
|
76
87
|
pmql: "",
|
|
88
|
+
unique: false,
|
|
77
89
|
};
|
|
78
90
|
},
|
|
79
91
|
watch: {
|
|
@@ -98,6 +110,11 @@ export default {
|
|
|
98
110
|
deep: true
|
|
99
111
|
}
|
|
100
112
|
},
|
|
113
|
+
created() {
|
|
114
|
+
this.onDebouncedPmqlChange = debounce((pmql) => {
|
|
115
|
+
this.onPmqlChange(pmql);
|
|
116
|
+
}, 1000);
|
|
117
|
+
},
|
|
101
118
|
computed: {
|
|
102
119
|
options() {
|
|
103
120
|
return Object.fromEntries(CONFIG_FIELDS.map(field => [field, this[field]]));
|
|
@@ -140,6 +157,12 @@ export default {
|
|
|
140
157
|
})
|
|
141
158
|
];
|
|
142
159
|
});
|
|
160
|
+
},
|
|
161
|
+
onNLQConversion(pmql) {
|
|
162
|
+
this.pmql = pmql;
|
|
163
|
+
},
|
|
164
|
+
onPmqlChange(pmql) {
|
|
165
|
+
this.pmql = pmql;
|
|
143
166
|
}
|
|
144
167
|
},
|
|
145
168
|
mounted() {
|
|
@@ -230,12 +230,10 @@
|
|
|
230
230
|
:search-type="'collections'"
|
|
231
231
|
class="mb-1"
|
|
232
232
|
:input-label="'PMQL'"
|
|
233
|
-
|
|
233
|
+
v-model="pmqlQuery"
|
|
234
234
|
:condensed="true"
|
|
235
235
|
:ai-enabled="true"
|
|
236
|
-
:placeholder="$t('PMQL')"
|
|
237
|
-
@submit="onNLQConversion"
|
|
238
|
-
@pmqlchange="onDebouncedPmqlChange">
|
|
236
|
+
:placeholder="$t('PMQL')">
|
|
239
237
|
</pmql-input>
|
|
240
238
|
<small class="form-text text-muted">{{ $t('Advanced data search') }}</small>
|
|
241
239
|
</div>
|
|
@@ -24,24 +24,6 @@
|
|
|
24
24
|
aria-required="true"
|
|
25
25
|
/>
|
|
26
26
|
|
|
27
|
-
<!-- <form-multi-select
|
|
28
|
-
:name="$t('Variable to Watch')"
|
|
29
|
-
:label="$t('Variable to Watch') + ' *'"
|
|
30
|
-
:options="variables"
|
|
31
|
-
:taggable="true"
|
|
32
|
-
v-model="config.watching"
|
|
33
|
-
:placeholder="$t('None')"
|
|
34
|
-
:multiple="false"
|
|
35
|
-
:show-labels="false"
|
|
36
|
-
:internal-search="true"
|
|
37
|
-
:validation="ruleWatcherVariable"
|
|
38
|
-
:helper="$t('Select the variable to watch on this screen or type any request variable name')"
|
|
39
|
-
@open="loadVariables"
|
|
40
|
-
@tag="addTag"
|
|
41
|
-
:tag-placeholder="$t('Press enter to use this variable')"
|
|
42
|
-
data-cy="watchers-watcher-variable"
|
|
43
|
-
ref="watching"
|
|
44
|
-
/> -->
|
|
45
27
|
<screen-variable-selector
|
|
46
28
|
:name="$t('Variable to Watch')"
|
|
47
29
|
:label="$t('Variable to Watch') + ' *'"
|