@processmaker/screen-builder 2.67.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 +539 -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 +539 -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 +1 -1
- package/src/components/inspector/collection-select-list.vue +23 -11
- package/src/components/inspector/options-list.vue +2 -4
package/package.json
CHANGED
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<div class="mt-3" v-if="fields.length > 1">
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
46
|
</div>
|
|
47
47
|
|
|
48
48
|
<div class="mt-3" v-if="fields.length > 1">
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
|
|
60
60
|
<script>
|
|
61
|
+
import { debounce } from "lodash";
|
|
61
62
|
import _ from "lodash";
|
|
62
63
|
import MustacheHelper from "./mustache-helper";
|
|
63
64
|
import ScreenVariableSelector from '../screen-variable-selector.vue';
|
|
@@ -109,6 +110,11 @@ export default {
|
|
|
109
110
|
deep: true
|
|
110
111
|
}
|
|
111
112
|
},
|
|
113
|
+
created() {
|
|
114
|
+
this.onDebouncedPmqlChange = debounce((pmql) => {
|
|
115
|
+
this.onPmqlChange(pmql);
|
|
116
|
+
}, 1000);
|
|
117
|
+
},
|
|
112
118
|
computed: {
|
|
113
119
|
options() {
|
|
114
120
|
return Object.fromEntries(CONFIG_FIELDS.map(field => [field, this[field]]));
|
|
@@ -151,6 +157,12 @@ export default {
|
|
|
151
157
|
})
|
|
152
158
|
];
|
|
153
159
|
});
|
|
160
|
+
},
|
|
161
|
+
onNLQConversion(pmql) {
|
|
162
|
+
this.pmql = pmql;
|
|
163
|
+
},
|
|
164
|
+
onPmqlChange(pmql) {
|
|
165
|
+
this.pmql = pmql;
|
|
154
166
|
}
|
|
155
167
|
},
|
|
156
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>
|