diff --git a/src/components/VnTable/VnFilter.vue b/src/components/VnTable/VnFilter.vue index 15e1cc947..285e2338e 100644 --- a/src/components/VnTable/VnFilter.vue +++ b/src/components/VnTable/VnFilter.vue @@ -48,6 +48,17 @@ const forceAttrs = { label: $props.showTitle ? '' : $props.column.label, }; +const selectComponent = { + component: markRaw(VnSelect), + event: updateEvent, + attrs: { + class: 'q-px-sm q-pb-xs q-pt-none fit', + dense: true, + filled: !$props.showTitle, + }, + forceAttrs, +}; + const components = { input: { component: markRaw(VnInput), @@ -97,16 +108,8 @@ const components = { }, forceAttrs, }, - select: { - component: markRaw(VnSelect), - event: updateEvent, - attrs: { - class: 'q-px-sm q-pb-xs q-pt-none fit', - dense: true, - filled: !$props.showTitle, - }, - forceAttrs, - }, + select: selectComponent, + rawSelect: selectComponent, }; async function addFilter(value) { diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 97053184a..22fd3acaf 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -1,5 +1,5 @@ - 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();