@processmaker/screen-builder 3.8.35-branch-c02e435a → 3.8.36
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.css +1 -1
- package/dist/vue-form-builder.es.js +1566 -1585
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +9 -9
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/DataProvider.js +0 -2
- package/src/components/task.vue +4 -14
- package/src/main.js +0 -11
- package/src/mixins/ScreenBase.js +16 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/screen-builder",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.36",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "VITE_COVERAGE=true vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@fortawesome/fontawesome-free": "^5.6.1",
|
|
62
62
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
63
63
|
"@panter/vue-i18next": "^0.15.2",
|
|
64
|
-
"@processmaker/vue-form-elements": "0.65.
|
|
64
|
+
"@processmaker/vue-form-elements": "0.65.9",
|
|
65
65
|
"@processmaker/vue-multiselect": "2.3.2",
|
|
66
66
|
"@storybook/addon-essentials": "^7.6.13",
|
|
67
67
|
"@storybook/addon-interactions": "^7.6.13",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
127
|
"@panter/vue-i18next": "^0.15.0",
|
|
128
|
-
"@processmaker/vue-form-elements": "0.65.
|
|
128
|
+
"@processmaker/vue-form-elements": "0.65.9",
|
|
129
129
|
"i18next": "^15.0.8",
|
|
130
130
|
"vue": "^2.6.12",
|
|
131
131
|
"vuex": "^3.1.1"
|
package/src/DataProvider.js
CHANGED
|
@@ -217,7 +217,6 @@ export default {
|
|
|
217
217
|
getDataSource(dataSourceId, params, nonce = null) {
|
|
218
218
|
// keep backwards compatibility
|
|
219
219
|
if (
|
|
220
|
-
!params.cache &&
|
|
221
220
|
!window.ProcessMaker.screen.cacheEnabled &&
|
|
222
221
|
!window.ProcessMaker.screen.cacheTimeout
|
|
223
222
|
) {
|
|
@@ -227,7 +226,6 @@ export default {
|
|
|
227
226
|
url += this.authQueryString();
|
|
228
227
|
return this.get(url, {
|
|
229
228
|
useCache: window.ProcessMaker.screen.cacheEnabled,
|
|
230
|
-
cache: params.cache,
|
|
231
229
|
params: {
|
|
232
230
|
pmds_config: JSON.stringify(params.config),
|
|
233
231
|
pmds_data: JSON.stringify(params.data)
|
package/src/components/task.vue
CHANGED
|
@@ -283,7 +283,10 @@ export default {
|
|
|
283
283
|
url += `&screen_version=${this.screenVersion}`;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
// For Vocabularies
|
|
287
|
+
if (window.ProcessMaker && window.ProcessMaker.packages && window.ProcessMaker.packages.includes('package-vocabularies')) {
|
|
288
|
+
window.ProcessMaker.VocabulariesSchemaUrl = `vocabularies/task_schema/${this.taskId}`;
|
|
289
|
+
}
|
|
287
290
|
|
|
288
291
|
return this.beforeLoadTask(this.taskId, this.nodeId).then(() => {
|
|
289
292
|
this.$dataProvider
|
|
@@ -690,19 +693,6 @@ export default {
|
|
|
690
693
|
|
|
691
694
|
return this.$dataProvider.getTasks(`?${queryString}`);
|
|
692
695
|
},
|
|
693
|
-
setVocabulariesSchemaUrl() {
|
|
694
|
-
if (
|
|
695
|
-
window.ProcessMaker
|
|
696
|
-
&& window.ProcessMaker.packages
|
|
697
|
-
&& window.ProcessMaker.packages.includes("package-vocabularies")
|
|
698
|
-
) {
|
|
699
|
-
const schemaUrl = `vocabularies/task_schema/${this.taskId}`;
|
|
700
|
-
if (window.ProcessMaker.VocabulariesSchemaUrl !== schemaUrl) {
|
|
701
|
-
window.ProcessMaker.VocabulariesSchemaCache = null;
|
|
702
|
-
}
|
|
703
|
-
window.ProcessMaker.VocabulariesSchemaUrl = schemaUrl;
|
|
704
|
-
}
|
|
705
|
-
},
|
|
706
696
|
/**
|
|
707
697
|
* Parses a JSON string and returns the result.
|
|
708
698
|
* @param {string} jsonString - The JSON string to parse.
|
package/src/main.js
CHANGED
|
@@ -203,17 +203,6 @@ window.ProcessMaker = {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
|
-
} else if (url === "/requests/data_sources/1/resources/list/data") {
|
|
207
|
-
resolve({
|
|
208
|
-
data: {
|
|
209
|
-
response: [
|
|
210
|
-
{ value: 1, content: "James" },
|
|
211
|
-
{ value: 2, content: "John" },
|
|
212
|
-
{ value: 3, content: "Mary" },
|
|
213
|
-
{ value: 4, content: "Patricia" }
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
206
|
} else if (url === "/data_sources") {
|
|
218
207
|
resolve({
|
|
219
208
|
data: {
|
package/src/mixins/ScreenBase.js
CHANGED
|
@@ -10,56 +10,25 @@ import { findRootScreen } from "./DataReference";
|
|
|
10
10
|
const stringFormats = ['string', 'datetime', 'date', 'password'];
|
|
11
11
|
const parentReference = [];
|
|
12
12
|
|
|
13
|
-
const getVocabulariesSchema = () => {
|
|
14
|
-
if (
|
|
15
|
-
window.ProcessMaker &&
|
|
16
|
-
window.ProcessMaker.packages &&
|
|
17
|
-
window.ProcessMaker.packages.includes("package-vocabularies")
|
|
18
|
-
) {
|
|
19
|
-
if (window.ProcessMaker.VocabulariesSchemaUrl) {
|
|
20
|
-
const schemaUrl = window.ProcessMaker.VocabulariesSchemaUrl;
|
|
21
|
-
const cache = window.ProcessMaker.VocabulariesSchemaCache;
|
|
22
|
-
|
|
23
|
-
if (cache && cache.url === schemaUrl) {
|
|
24
|
-
return cache.promise || cache.data;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const promise = window.ProcessMaker.apiClient
|
|
28
|
-
.get(schemaUrl)
|
|
29
|
-
.then((response) => {
|
|
30
|
-
if (window.ProcessMaker.VocabulariesSchemaUrl === schemaUrl) {
|
|
31
|
-
window.ProcessMaker.VocabulariesSchemaCache = {
|
|
32
|
-
url: schemaUrl,
|
|
33
|
-
data: response.data
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return response.data;
|
|
37
|
-
})
|
|
38
|
-
.catch((error) => {
|
|
39
|
-
if (window.ProcessMaker.VocabulariesSchemaCache?.url === schemaUrl) {
|
|
40
|
-
window.ProcessMaker.VocabulariesSchemaCache = null;
|
|
41
|
-
}
|
|
42
|
-
throw error;
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
window.ProcessMaker.VocabulariesSchemaCache = {
|
|
46
|
-
url: schemaUrl,
|
|
47
|
-
promise
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
return promise;
|
|
51
|
-
}
|
|
52
|
-
if (window.ProcessMaker.VocabulariesPreview) {
|
|
53
|
-
return window.ProcessMaker.VocabulariesPreview;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return {};
|
|
57
|
-
};
|
|
58
|
-
|
|
59
13
|
export default {
|
|
60
14
|
name: "ScreenContent",
|
|
61
15
|
mixins: [DataReference, computedFields, VariablesToSubmitFilter],
|
|
62
|
-
schema: [
|
|
16
|
+
schema: [
|
|
17
|
+
function() {
|
|
18
|
+
if (window.ProcessMaker && window.ProcessMaker.packages && window.ProcessMaker.packages.includes('package-vocabularies')) {
|
|
19
|
+
if (window.ProcessMaker.VocabulariesSchemaUrl) {
|
|
20
|
+
let response = window.ProcessMaker.apiClient.get(window.ProcessMaker.VocabulariesSchemaUrl);
|
|
21
|
+
return response.then(response => {
|
|
22
|
+
return response.data;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (window.ProcessMaker.VocabulariesPreview) {
|
|
26
|
+
return window.ProcessMaker.VocabulariesPreview;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return {};
|
|
30
|
+
},
|
|
31
|
+
],
|
|
63
32
|
data() {
|
|
64
33
|
return {
|
|
65
34
|
ValidationRules__: {},
|