@processmaker/screen-builder 2.68.0 → 2.70.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 +4288 -3968
- 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 +4288 -3968
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/dist/vue-form-builder.umd.min.js +14 -14
- package/dist/vue-form-builder.umd.min.js.map +1 -1
- package/package.json +3 -3
- package/src/components/inspector/color-select.vue +36 -26
- package/src/components/vue-form-builder.vue +448 -283
- package/src/mixins/ScreenBase.js +5 -3
- package/src/store/modules/undoRedoModule.js +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/screen-builder",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.70.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.
|
|
42
|
+
"@processmaker/vue-form-elements": "0.45.0",
|
|
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.
|
|
91
|
+
"@processmaker/vue-form-elements": "0.45.0",
|
|
92
92
|
"i18next": "^15.0.8",
|
|
93
93
|
"vue": "^2.6.12",
|
|
94
94
|
"vuex": "^3.1.1"
|
|
@@ -4,65 +4,75 @@
|
|
|
4
4
|
<label>{{ label }}</label>
|
|
5
5
|
<b-button-toolbar>
|
|
6
6
|
<b-button-group size="sm">
|
|
7
|
-
<b-button
|
|
8
|
-
variant="outline-light"
|
|
7
|
+
<b-button
|
|
9
8
|
v-for="option in options"
|
|
10
9
|
:key="option.value"
|
|
10
|
+
size="sm"
|
|
11
|
+
variant="outline-light"
|
|
11
12
|
class="btn btn-sm mr-1 pr-1 pl-1 pt-0 pb-0 btn-outline-none"
|
|
12
13
|
:class="['bg-' + parsedColor(option.value)]"
|
|
13
14
|
:title="option.content"
|
|
14
15
|
>
|
|
15
|
-
<i
|
|
16
|
-
|
|
16
|
+
<i
|
|
17
|
+
class="fas fa-check"
|
|
18
|
+
:class="[
|
|
19
|
+
option.value === value
|
|
20
|
+
? 'text-light'
|
|
21
|
+
: 'text-' + parsedColor(option.value)
|
|
22
|
+
]"
|
|
17
23
|
@click="selectColor(option.value)"
|
|
18
24
|
/>
|
|
19
25
|
</b-button>
|
|
20
26
|
</b-button-group>
|
|
21
27
|
</b-button-toolbar>
|
|
22
|
-
<small @click="checkColor">
|
|
23
|
-
<i class="fas fa-ban"/>
|
|
24
|
-
{{ $t(
|
|
28
|
+
<small @click="checkColor()">
|
|
29
|
+
<i class="fas fa-ban" />
|
|
30
|
+
{{ $t("Clear Color Selection") }}
|
|
25
31
|
</small>
|
|
26
32
|
</div>
|
|
27
33
|
</div>
|
|
28
34
|
</template>
|
|
29
35
|
|
|
30
36
|
<script>
|
|
31
|
-
|
|
32
37
|
export default {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
38
|
+
components: {},
|
|
39
|
+
props: ["label", "value", "helper", "options"],
|
|
36
40
|
data() {
|
|
37
41
|
return {
|
|
38
|
-
newColor:
|
|
42
|
+
newColor: ""
|
|
39
43
|
};
|
|
40
44
|
},
|
|
41
45
|
computed: {
|
|
42
46
|
hasColor() {
|
|
43
|
-
return
|
|
44
|
-
}
|
|
47
|
+
return Boolean(this.value);
|
|
48
|
+
}
|
|
45
49
|
},
|
|
46
50
|
methods: {
|
|
51
|
+
emitChanges(value) {
|
|
52
|
+
this.$emit("input", value);
|
|
53
|
+
this.$emit("update-state");
|
|
54
|
+
},
|
|
47
55
|
checkColor() {
|
|
48
|
-
this.hasColor
|
|
56
|
+
if (this.hasColor) {
|
|
57
|
+
this.emitChanges("");
|
|
58
|
+
}
|
|
49
59
|
},
|
|
50
60
|
selectColor(color) {
|
|
51
|
-
this
|
|
61
|
+
this.emitChanges(color);
|
|
52
62
|
},
|
|
53
63
|
parsedColor(color) {
|
|
54
|
-
return color.split(
|
|
55
|
-
}
|
|
56
|
-
}
|
|
64
|
+
return color.split("-")[1];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
57
67
|
};
|
|
58
68
|
</script>
|
|
59
69
|
|
|
60
70
|
<style lang="scss" scoped>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
.image-preview {
|
|
72
|
+
border: 1px solid #ced4da;
|
|
73
|
+
border-radius: 4px;
|
|
74
|
+
height: 4em;
|
|
75
|
+
text-align: center;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
}
|
|
68
78
|
</style>
|