|
|
@ -4,7 +4,7 @@ import { UITypes } from 'nocodb-sdk' |
|
|
|
import FieldListAutoCompleteDropdown from './FieldListAutoCompleteDropdown.vue' |
|
|
|
import FieldListAutoCompleteDropdown from './FieldListAutoCompleteDropdown.vue' |
|
|
|
import Smartsheet from '~/components/tabs/Smartsheet.vue' |
|
|
|
import Smartsheet from '~/components/tabs/Smartsheet.vue' |
|
|
|
import { useNuxtApp } from '#app' |
|
|
|
import { useNuxtApp } from '#app' |
|
|
|
import { inject, useViewFilters } from '#imports' |
|
|
|
import { inject, useViewFilters, watchEffect } from '#imports' |
|
|
|
import { comparisonOpList } from '~/utils/filterUtils' |
|
|
|
import { comparisonOpList } from '~/utils/filterUtils' |
|
|
|
import { ActiveViewInj, MetaInj, ReloadViewDataHookInj } from '~/context' |
|
|
|
import { ActiveViewInj, MetaInj, ReloadViewDataHookInj } from '~/context' |
|
|
|
import MdiDeleteIcon from '~icons/mdi/close-box' |
|
|
|
import MdiDeleteIcon from '~icons/mdi/close-box' |
|
|
@ -12,6 +12,8 @@ import MdiAddIcon from '~icons/mdi/plus' |
|
|
|
|
|
|
|
|
|
|
|
const { nested = false, parentId } = defineProps<{ nested?: boolean; parentId?: string }>() |
|
|
|
const { nested = false, parentId } = defineProps<{ nested?: boolean; parentId?: string }>() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['update:filters-length']) |
|
|
|
|
|
|
|
|
|
|
|
const meta = inject(MetaInj) |
|
|
|
const meta = inject(MetaInj) |
|
|
|
const activeView = inject(ActiveViewInj) |
|
|
|
const activeView = inject(ActiveViewInj) |
|
|
|
const reloadDataHook = inject(ReloadViewDataHookInj) |
|
|
|
const reloadDataHook = inject(ReloadViewDataHookInj) |
|
|
@ -83,6 +85,13 @@ const logicalOps = [ |
|
|
|
{ value: 'and', text: 'AND' }, |
|
|
|
{ value: 'and', text: 'AND' }, |
|
|
|
{ value: 'or', text: 'OR' }, |
|
|
|
{ value: 'or', text: 'OR' }, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
|
|
|
|
() => filters?.value?.length, |
|
|
|
|
|
|
|
(length) => { |
|
|
|
|
|
|
|
emit('update:filters-length', length ?? 0) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|