diff --git a/src/components/common/VnInputTime.vue b/src/components/common/VnInputTime.vue index adb6ef68c..a59f0e9e8 100644 --- a/src/components/common/VnInputTime.vue +++ b/src/components/common/VnInputTime.vue @@ -50,7 +50,7 @@ const formattedTime = computed({ } if (!props.timeOnly) { const [hh, mm] = time.split(':'); - const date = new Date(model.value ? model.value : null); + const date = model.value ?? Date.vnNew(); date.setHours(hh, mm, 0); time = date?.toISOString(); } @@ -62,7 +62,7 @@ const formattedTime = computed({ function dateToTime(newDate) { return date.formatDate(new Date(newDate), dateFormat); } - +const timeField = ref(); watch( () => model.value, (val) => (formattedTime.value = val), diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 7792ed2cd..90ac856e5 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -120,7 +120,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..07ca18bef 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 @@ -70,8 +70,27 @@ const containerClasses = computed(() => { text-transform: capitalize; } +.q-calendar-month__head--workweek, +.q-calendar-month__head--weekday, +// .q-calendar-month__workweek.q-past-day, +.q-calendar-month__week :nth-child(6), +:nth-child(7) { + color: var(--vn-label-color); +} + +.q-calendar-month__head--weekdays > div[aria-label='miércoles'] > span { + /* color: transparent; */ + visibility: hidden; + // position: absolute; +} +.q-calendar-month__head--weekdays > div[aria-label='miércoles'] > span:after { + content: 'X'; + visibility: visible; + left: 33%; + position: absolute; +} .transparent-background { - --calendar-background-dark: transparent; + // --calendar-background-dark: transparent; --calendar-background: transparent; --calendar-outside-background-dark: transparent; } @@ -110,11 +129,6 @@ const containerClasses = computed(() => { cursor: pointer; } } - .q-calendar-month__week--days > div:nth-child(6), - .q-calendar-month__week--days > div:nth-child(7) { - // Cambia el color de los días sábado y domingo - color: #777777; - } .q-calendar-month__week--wrapper { margin-bottom: 4px; @@ -124,6 +138,7 @@ const containerClasses = computed(() => { height: 32px; display: flex; justify-content: center; + color: var(--vn-label-color); } .q-calendar__button--bordered { @@ -147,7 +162,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/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index b93ca7121..27b6e7b34 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -110,9 +110,11 @@ async function search(evt) { store.filter.where = {}; isLoading.value = true; - const filter = { ...userParams.value }; + const filter = { ...userParams.value, ...$props.modelValue }; store.userParamsChanged = true; - const { params: newParams } = await arrayData.addFilter({ params: userParams.value }); + const { params: newParams } = await arrayData.addFilter({ + params: filter, + }); userParams.value = newParams; if (!$props.showAll && !Object.values(filter).length) store.data = []; 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();