From e13090bb3bf4eca3aae47618d9bbc620407c69da Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 25 Oct 2024 07:01:58 +0200 Subject: [PATCH 01/37] feat: refs #8038 added new functionality in VnSelect and refactor styles --- src/components/VnTable/VnTable.vue | 2 +- src/components/common/VnSelect.vue | 23 +++++++++++++++++++++++ src/css/app.scss | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index b9c6edf50..7a7c341a6 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -379,7 +379,7 @@ function handleScroll() { :name="col.orderBy ?? col.name" :data-key="$attrs['data-key']" :search-url="searchUrl" - :vertical="true" + :vertical="false" /> ($props.useLike ? { like: `%${val}%` } : val); defineExpose({ opts: myOptions }); + +function handleKeyDown(event) { + if (event.key === 'Tab') { + event.preventDefault(); + + const inputValue = vnSelectRef.value?.inputValue; + + if (inputValue) { + const matchingOption = myOptions.value.find( + (option) => + option[optionLabel.value].toLowerCase() === inputValue.toLowerCase() + ); + + if (matchingOption) { + emit('update:modelValue', matchingOption[optionValue.value]); + } else { + emit('update:modelValue', inputValue); + } + vnSelectRef.value?.hidePopup(); + } + } +} + + + + + es: - raidDays: Al rellenarlo, generamos una redada. Indica los días que un travel se moverá automáticamente en el tiempo + raidDays: Si se marca "Redada", la fecha de entrega se moverá automáticamente los días indicados (incluido 0). Si no se especifican días, la fecha no cambiará en: - raidDays: When filling, a raid is generated. Enter the number of days the travel will automatically forward in time + raidDays: If "Raid" is checked, the landing date will automatically shift by the specified number of days (including 0). If no days are specified, the date will stay the same. diff --git a/src/pages/Travel/Card/TravelDescriptor.vue b/src/pages/Travel/Card/TravelDescriptor.vue index 6025ad045..a77d7460e 100644 --- a/src/pages/Travel/Card/TravelDescriptor.vue +++ b/src/pages/Travel/Card/TravelDescriptor.vue @@ -32,6 +32,7 @@ const filter = { 'warehouseOutFk', 'cargoSupplierFk', 'agencyModeFk', + 'isRaid', 'daysInForward', ], include: [ @@ -80,12 +81,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity. From 4bfbd1925e01d8945e8a29cbcfa37308da9dd3c8 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 11 Nov 2024 15:18:29 -0300 Subject: [PATCH 04/37] test: refs #8162 ticket list e2e tests --- src/components/VnTable/VnTable.vue | 1 + src/components/ui/VnSearchbar.vue | 1 + src/pages/Ticket/Card/TicketDescriptor.vue | 2 +- src/pages/Ticket/Card/TicketSummary.vue | 1 + src/pages/Ticket/TicketList.vue | 2 + .../integration/ticket/ticketList.spec.js | 54 +++++++++++++++++++ test/cypress/support/commands.js | 4 ++ 7 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 test/cypress/integration/ticket/ticketList.spec.js diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index fd7b0c51a..99a9a6801 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -737,6 +737,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { fab icon="add" shortcut="+" + data-testid="vnTableCreateBtn" /> {{ createForm?.title }} diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index dc6d4751c..7a72a09ea 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -130,6 +130,7 @@ async function search() { dense standout autofocus + data-testid="vnSearchBar" >