From e70adce488fccb4077e2d51dcd9907472d00bef0 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 8 Jul 2024 13:15:14 +0200 Subject: [PATCH 01/17] feat: refs #7323 fix descriptors, added VnTable and minor changes --- src/components/ui/CardDescriptor.vue | 2 +- src/components/ui/QCalendarMonthWrapper.vue | 10 +- .../Department/Card/DepartmentDescriptor.vue | 6 +- src/pages/Entry/Card/EntryDescriptor.vue | 1 - .../InvoiceOut/Card/InvoiceOutDescriptor.vue | 2 +- src/pages/Route/Card/RouteDescriptor.vue | 1 - .../Shelving/Card/ShelvingDescriptor.vue | 1 - src/pages/Travel/Card/TravelDescriptor.vue | 1 - src/pages/Worker/Card/WorkerDescriptor.vue | 34 ++++- src/pages/Worker/Card/WorkerTimeControl.vue | 2 +- src/pages/Worker/Card/WorkerTimeForm.vue | 10 +- src/pages/Worker/WorkerList.vue | 141 +++++++++--------- src/pages/Worker/locale/en.yml | 5 + src/pages/Worker/locale/es.yml | 5 + src/pages/Zone/Card/ZoneDescriptor.vue | 1 - 15 files changed, 132 insertions(+), 90 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 2bb5234ad..480cf3afb 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -115,7 +115,7 @@ const toModule = computed(() => :icon="iconModule" color="white" class="link" - :to="toModule" + :to="$attrs['to-module'] ?? toModule" > {{ t('globals.goToModuleIndex') }} diff --git a/src/components/ui/QCalendarMonthWrapper.vue b/src/components/ui/QCalendarMonthWrapper.vue index bced893fe..ed3b32509 100644 --- a/src/components/ui/QCalendarMonthWrapper.vue +++ b/src/components/ui/QCalendarMonthWrapper.vue @@ -52,8 +52,8 @@ const containerClasses = computed(() => { --calendar-border-current: #84d0e2 2px solid; --calendar-current-color-dark: #84d0e2; // Colores de fondo del calendario en dark mode - --calendar-outside-background-dark: #222; - --calendar-background-dark: #222; + --calendar-outside-background-dark: var(--vn-section-color); + --calendar-background-dark: var(--vn-section-color); } // Clases para modificar el color de fecha seleccionada en componente QCalendarMonth @@ -68,10 +68,11 @@ const containerClasses = computed(() => { .q-calendar-month__head--weekday { // Transforma los nombres de los días de la semana a mayúsculas text-transform: capitalize; + color: var(--vn-label-color); } .transparent-background { - --calendar-background-dark: transparent; + // --calendar-background-dark: transparent; --calendar-background: transparent; --calendar-outside-background-dark: transparent; } @@ -124,6 +125,7 @@ const containerClasses = computed(() => { height: 32px; display: flex; justify-content: center; + color: var(--vn-label-color); } .q-calendar__button--bordered { @@ -147,7 +149,7 @@ const containerClasses = computed(() => { .q-calendar-month__head--workweek, .q-calendar-month__head--weekday.q-calendar__center.q-calendar__ellipsis { text-transform: capitalize; - color: $color-font-secondary; + color: var(--vn-label-color); font-weight: bold; font-size: 0.8rem; text-align: center; diff --git a/src/pages/Department/Card/DepartmentDescriptor.vue b/src/pages/Department/Card/DepartmentDescriptor.vue index b49f5f9e2..e914f6af6 100644 --- a/src/pages/Department/Card/DepartmentDescriptor.vue +++ b/src/pages/Department/Card/DepartmentDescriptor.vue @@ -24,7 +24,7 @@ const $props = defineProps({ const route = useRoute(); const router = useRouter(); - +const DepartmentDescriptorRef = ref(); const { t } = useI18n(); const { notify } = useNotify(); @@ -55,18 +55,20 @@ const { openConfirmationModal } = useVnConfirm();