From 166ed66b1bd730ea07fc7d33e41cda873807c337 Mon Sep 17 00:00:00 2001 From: Sanja Date: Fri, 18 Oct 2024 13:51:00 -0700 Subject: [PATCH 1/4] Handle Changes in Conversational Forms UI for File Uploads and Emit File Deletion Event --- src/components/renderer/file-upload.vue | 26 ++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/renderer/file-upload.vue b/src/components/renderer/file-upload.vue index b3881bc4e..ceeb00bb7 100644 --- a/src/components/renderer/file-upload.vue +++ b/src/components/renderer/file-upload.vue @@ -61,32 +61,34 @@ - + {{ $t('Skip Uploading') }} - - {{ $t('Add File/Photo') }} + {{ $t('Add File/Photo') }} {{ $t('Add another') }} - - {{ $t('Send All') }} + + {{ $t('Send All') }} {{ $t('Submit File/Photo') }} @@ -270,7 +272,7 @@ export default { return this.screenType === 'conversational-forms'; }, showSingleUploadButton() { - return this.files.length === 0 || !this.multipleUpload; + return this.files.length === 0 && !this.multipleUpload; }, showMultiUploadButton() { return this.files.length !== 0 && this.multipleUpload; @@ -402,7 +404,6 @@ export default { }, setRequestFiles() { _.set(window, `PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`, this.files); - console.log("!!!!!! SET REQUEST FILES", this.valueToSend()); this.$emit('input', this.valueToSend()); }, valueToSend() { @@ -491,7 +492,7 @@ export default { } this.$delete(this.nativeFiles, id); } - + this.$emit('file-deleted', this.files); }, addToFiles(fileInfo) { if (this.multipleUpload) { @@ -625,7 +626,6 @@ export default { this.$set(this.nativeFiles, id, rootFile); this.addToFiles(fileInfo); } else { - console.log("!!!!!! FILE UPLOADED", name); this.$emit('input', name); } }, @@ -763,4 +763,8 @@ export default { box-shadow: 0px 12px 24px -12px #0000001F; } +.form-control-file.cf-single-file-upload label { + display: none; +} + From 857c2437cdfbc5721dfd678aade95b61f6137701 Mon Sep 17 00:00:00 2001 From: Sanja Date: Fri, 18 Oct 2024 21:41:59 -0700 Subject: [PATCH 2/4] Update vue-form-elements --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8f6623704..7fc60e48b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "@fortawesome/fontawesome-free": "^5.6.1", "@originjs/vite-plugin-commonjs": "^1.0.3", "@panter/vue-i18next": "^0.15.2", - "@processmaker/vue-form-elements": "0.60.0", + "@processmaker/vue-form-elements": "0.60.1", "@processmaker/vue-multiselect": "2.3.0", "@storybook/addon-essentials": "^7.6.13", "@storybook/addon-interactions": "^7.6.13", @@ -4015,9 +4015,9 @@ } }, "node_modules/@processmaker/vue-form-elements": { - "version": "0.60.0", - "resolved": "https://registry.npmjs.org/@processmaker/vue-form-elements/-/vue-form-elements-0.60.0.tgz", - "integrity": "sha512-Rndk+TlCl3SXGx7VeZq0207fzA3ALNEjfapXazra1yI+AQFqPYAdSLrisckSvGYPTG0TFGGBhpzh+cHjOWlwug==", + "version": "0.60.1", + "resolved": "https://registry.npmjs.org/@processmaker/vue-form-elements/-/vue-form-elements-0.60.1.tgz", + "integrity": "sha512-cFmhrqMz0n3aOS556wJpb5Jm0dasvqLNIaHAuT1T4uhboo+JI6Lxfp57JbJuQ8NS7c2FcTm0MgoPAxtiWTt6Ng==", "dev": true, "dependencies": { "@chantouchsek/validatorjs": "1.2.3", diff --git a/package.json b/package.json index a5b52751c..2b37b7ab0 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@fortawesome/fontawesome-free": "^5.6.1", "@originjs/vite-plugin-commonjs": "^1.0.3", "@panter/vue-i18next": "^0.15.2", - "@processmaker/vue-form-elements": "0.60.0", + "@processmaker/vue-form-elements": "0.60.1", "@processmaker/vue-multiselect": "2.3.0", "@storybook/addon-essentials": "^7.6.13", "@storybook/addon-interactions": "^7.6.13", From 1bc71cc3c35da4457fe64119ec434202841b4703 Mon Sep 17 00:00:00 2001 From: Sanja Date: Mon, 21 Oct 2024 10:04:11 -0700 Subject: [PATCH 3/4] Update vue-form-elements to 0.60.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7fc60e48b..1842e8d98 100644 --- a/package-lock.json +++ b/package-lock.json @@ -97,7 +97,7 @@ }, "peerDependencies": { "@panter/vue-i18next": "^0.15.0", - "@processmaker/vue-form-elements": "0.60.0", + "@processmaker/vue-form-elements": "0.60.1", "i18next": "^15.0.8", "vue": "^2.6.12", "vuex": "^3.1.1" diff --git a/package.json b/package.json index 2b37b7ab0..a4aeaba6f 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ }, "peerDependencies": { "@panter/vue-i18next": "^0.15.0", - "@processmaker/vue-form-elements": "0.60.0", + "@processmaker/vue-form-elements": "0.60.1", "i18next": "^15.0.8", "vue": "^2.6.12", "vuex": "^3.1.1" From 30167bb7cf774709ae76bedb1ef4dda1fb377817 Mon Sep 17 00:00:00 2001 From: Teisha McRae Date: Mon, 21 Oct 2024 14:48:59 -0400 Subject: [PATCH 4/4] Update icon selection functionality --- src/components/ScreenTemplateCard.vue | 154 +++++++++++++++----------- 1 file changed, 88 insertions(+), 66 deletions(-) diff --git a/src/components/ScreenTemplateCard.vue b/src/components/ScreenTemplateCard.vue index 323173bf5..71291a444 100644 --- a/src/components/ScreenTemplateCard.vue +++ b/src/components/ScreenTemplateCard.vue @@ -9,7 +9,11 @@ v-if="thumbnail" class="thumbnail-container thumbnail-image-container" > - +
-
+
{{ template.name }} - {{ template.description }} + {{ + template.description + }}
- +
-
+
@@ -43,74 +53,72 @@
- + {{ option.text }}
-
-
-
- - -
+
+
+
+ + +
- \ No newline at end of file +