From 6cedee61226d7ade77ed4a1ec17dc5344af3b20b Mon Sep 17 00:00:00 2001 From: JuliaBD Date: Mon, 10 Jul 2023 10:45:43 +0200 Subject: [PATCH 1/4] inspect - offline inspection - add amazon matching constraints (data-labels, 4mm distance between headers, 'Page' labels) + version to 4.0.11 --- package.json | 2 +- src/components/svg/svg-category.vue | 2 +- src/components/svg/svg-checkbox.vue | 6 ++++++ src/components/svg/svg-fieldset.vue | 5 +---- src/components/svg/svg-label.vue | 2 +- src/components/svg/svg-number-box.vue | 2 +- src/components/svg/svg-number.vue | 1 + src/components/svg/svg-print-corners.vue | 9 +++++++++ src/components/svg/svg-select.vue | 4 ++++ src/components/svg/svg-text.vue | 2 ++ src/mixins/svgMixin.js | 8 ++++---- src/router/views/new.vue | 11 ++++++++++- 12 files changed, 41 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index b01438a6..b9e7cffa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "beep-ui", - "version": "4.0.10", + "version": "4.0.11", "private": true, "scripts": { "build": "cross-env NODE_ENV=production vue-cli-service build", diff --git a/src/components/svg/svg-category.vue b/src/components/svg/svg-category.vue index 1259ca37..bbe1c566 100644 --- a/src/components/svg/svg-category.vue +++ b/src/components/svg/svg-category.vue @@ -42,7 +42,7 @@ export default { // if page nr is too high (i.e. if nextPage was called but no items are printed afterwards, such that the svg contains 1 empty page) // set the max page nr as pagenr - 1 (in the svg the last page will then be omitted) if ( - (this.absoluteY - this.maxRowHeight) / this.pageHeight < + (this.absoluteY + this.maxRowHeight) / this.pageHeight < this.svgPageNr - 1 ) { setTimeout(() => { diff --git a/src/components/svg/svg-checkbox.vue b/src/components/svg/svg-checkbox.vue index 5152548f..2ef28874 100644 --- a/src/components/svg/svg-checkbox.vue +++ b/src/components/svg/svg-checkbox.vue @@ -2,6 +2,7 @@ = this.columnsPerRow) { var columnCounter = 1 // for new row, set Y (height so far) as previous Y + row height of previous row - this.$store.commit( - 'inspections/setY', - this.svgY + this.svgRowHeight - (fullRowItem ? 1 : 0) - ) + this.$store.commit('inspections/setY', this.svgY + this.svgRowHeight) // reset row height to current item height for new row this.$store.commit('inspections/setRowHeight', itemHeight) } else { diff --git a/src/components/svg/svg-label.vue b/src/components/svg/svg-label.vue index 769e0faa..c9b2b811 100644 --- a/src/components/svg/svg-label.vue +++ b/src/components/svg/svg-label.vue @@ -36,7 +36,7 @@ export default { }, data() { return { - maxLabelLength: 34, + maxLabelLength: 32, } }, } diff --git a/src/components/svg/svg-number-box.vue b/src/components/svg/svg-number-box.vue index 9f141ce4..eb1b307a 100644 --- a/src/components/svg/svg-number-box.vue +++ b/src/components/svg/svg-number-box.vue @@ -17,7 +17,7 @@ import { svgData } from '@mixins/svgMixin' export default { - // TODO remove whole component if single-digits won't be used for sure + // TODO remove whole component if single-digits won't be used for sure, else add :data-label="label" + label prop mixins: [svgData], props: { x: { diff --git a/src/components/svg/svg-number.vue b/src/components/svg/svg-number.vue index 1f7e6f64..4d7839b6 100644 --- a/src/components/svg/svg-number.vue +++ b/src/components/svg/svg-number.vue @@ -10,6 +10,7 @@ {{ checklistSvgId }} + + {{ 'Page' }} + @@ -81,6 +84,7 @@ :x="x + 'mm'" :y="y + 2 + index * checkBoxSpace + 'mm'" :category-id="'score'" + :label="label" :parent-id="position.id" />
v4.0.10 (06-07-2023) - Current + >v4.0.11 (10-07-2023) - Current version
@@ -11,6 +11,15 @@
+
v4.0.10 (06-07-2023)
+
+
    +
  • Small improvements
  • +
+
+
v4.0.9 (29-06-2023)
From 43c4e4bb66ddf7ec036baf69b660d1ce9fb71cec Mon Sep 17 00:00:00 2001 From: JuliaBD Date: Thu, 13 Jul 2023 09:29:27 +0200 Subject: [PATCH 2/4] inspect - offline inspection - move page count to left side + do not allow double lined labels --- package-lock.json | 2 +- src/components/svg/svg-label.vue | 10 +++++++--- src/components/svg/svg-print-corners.vue | 9 +-------- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index b8377378..a7cfe297 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "beep-ui", - "version": "4.0.9", + "version": "4.0.11", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/components/svg/svg-label.vue b/src/components/svg/svg-label.vue index c9b2b811..6c9e9365 100644 --- a/src/components/svg/svg-label.vue +++ b/src/components/svg/svg-label.vue @@ -1,16 +1,20 @@ diff --git a/src/components/svg/svg-print-corners.vue b/src/components/svg/svg-print-corners.vue index ed937899..60530365 100644 --- a/src/components/svg/svg-print-corners.vue +++ b/src/components/svg/svg-print-corners.vue @@ -6,7 +6,7 @@ :y="(pageNumber - 1) * pageHeight + 9 + 'mm'" :style="svgTextSmall" > - {{ checklistHeaderText }} + {{ checklistHeaderText + ' p.' + pageNumber + ' / ' + totalPages }}
{{ pageNumber }} - - {{ 'p.' + pageNumber + ' / ' + totalPages }} - From 2a84b0ee98b58976576d538d9a9e436a83093eb5 Mon Sep 17 00:00:00 2001 From: JuliaBD Date: Thu, 13 Jul 2023 09:36:39 +0200 Subject: [PATCH 3/4] inspect - offline inspection - fix labels --- src/components/svg/svg-label.vue | 5 ++--- src/components/svg/svg-print-corners.vue | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/svg/svg-label.vue b/src/components/svg/svg-label.vue index 6c9e9365..5a040e64 100644 --- a/src/components/svg/svg-label.vue +++ b/src/components/svg/svg-label.vue @@ -2,9 +2,8 @@ {{ - label.substring(0, maxLabelLength) + label.length > maxLabelLength - ? '...' - : '' + label.substring(0, maxLabelLength) + + (label.length > maxLabelLength ? '...' : '') }}