8000 Nc feat/form view builder field settings in right pannel and fixed column delete modal virtual cell icon issue by rameshmane7218 · Pull Request #7927 · nocodb/nocodb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Nc feat/form view builder field settings in right pannel and fixed column delete modal virtual cell icon issue #7927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5b332c5
feat(nc-gui): form field in right pannel setup
rameshmane7218 Mar 26, 2024
c5a02bd
fix(nc-gui): inline form field reorder issue
rameshmane7218 Mar 26, 2024
56c586a
fix(nc-gui): make edit form field right panel scrollable
rameshmane7218 Mar 26, 2024
ff185f6
fix(nc-gui): form field limit option hide btn focus box shadow style …
rameshmane7218 Mar 26, 2024
29ea753
fix(nc-gui): add support to edit form column in form view builder
rameshmane7218 Mar 26, 2024
6404dfc
feat(nc-gui): added form field header menu dropdown
rameshmane7218 Mar 26, 2024
87d4d34
fix(nc-gui): tab issue in form builder
rameshmane7218 Mar 26, 2024
c7281c9
feat(nc-gui): add support to edit column from form builder itself 8000
rameshmane7218 Mar 26, 2024
bc94a4c
fix(nc-gui): wrong virtual cell icon in column delete modal
rameshmane7218 Mar 26, 2024
a3acf19
feat(nc-gui): column edit, hide, delete option in form builder field …
rameshmane7218 Mar 26, 2024
e323d09
fix(nc-gui): move all form field settings radio btns to the right side
rameshmane7218 Mar 26, 2024
7e8fdd4
chore(nc-gui): lint
rameshmane7218 Mar 26, 2024
744025b
chore(nc-gui): lint errors
rameshmane7218 Mar 26, 2024
826f309
chore(nc-gui): lint
rameshmane7218 Mar 26, 2024
19b1b81
fix(nc-gui): update 'change icon color' text case
rameshmane7218 Mar 26, 2024
06491cf
fix(nc-gui): small changes
rameshmane7218 Mar 26, 2024
1e917f6
fix(nc-gui): form builder side panel field div key issue
rameshmane7218 Mar 26, 2024
56fbebb
fix(nc-gui): form view outsideclick fild toggle issue
rameshmane7218 Mar 26, 2024
32bdd97
chore(nc-gui): lint
rameshmane7218 Mar 26, 2024
8ac74b6
fix(nc-gui): hide select dropdown in value is selected and show if va…
rameshmane7218 Mar 26, 2024
fe4eda1
fix(nc-gui): suggested review changes
rameshmane7218 Mar 26, 2024
eb1042c
fix(nc-gui): make form field rich text options sticky at bottom
rameshmane7218 Mar 26, 2024
4a81046
chore(nc-gui): lint
rameshmane7218 Mar 26, 2024
cfa1d67
fix(nc-gui): small changes
rameshmane7218 Mar 26, 2024
6a44160
fix(nc-gui): lazy import richtext component
rameshmane7218 Mar 26, 2024
c9a7dc6
fix(nc-gui): set the max height for form rich text fields
rameshmane7218 Mar 26, 2024
ff3d8c7
fix(nc-gui): move form settings switch inputs to the right side
rameshmane7218 Mar 26, 2024
c4effa8
fix(nc-gui): move form select type field layout option to appearance …
rameshmane7218 Mar 26, 2024
d59aa9e
fix(nc-gui): select form active field text on focus
rameshmane7218 Mar 26, 2024
ed62709
fix(nc-gui): form rich text element menu option tabindex issue
rameshmane7218 Mar 26, 2024
0ded77b
fix(nc-gui): form search field input autofill issue
rameshmane7218 Mar 26, 2024
2943e6d
fix(nc-gui): update position of rich text menu option of form descrip…
rameshmane7218 Mar 26, 2024
0cf8c26
feat(nc-gui): adjustable form view sidebar width
rameshmane7218 Mar 26, 2024
7e3b01c
chore(nc-gui): lint
rameshmane7218 Mar 26, 2024
e639cfe
fix(nc-gui): typo mistake
rameshmane7218 Mar 26, 2024
f297f70
fix(nc-gui): PR review changes
rameshmane7218 Mar 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/nc-gui/components/cell/MultiSelect.vue
8000
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
EditColumnInj,
EditModeInj,
IsKanbanInj,
IsSurveyFormInj,
ReadonlyInj,
RowHeightInj,
computed,
Expand Down Expand Up @@ -64,6 +65,8 @@ const isEditColumn = inject(EditColumnInj, ref(false))

const rowHeight = inject(RowHeightInj, ref(undefined))

const isSurveyForm = inject(IsSurveyFormInj, ref(false))

const selectedIds = ref<string[]>([])

const aselect = ref<typeof AntSelect>()
Expand Down Expand Up @@ -386,6 +389,8 @@ const => {
isFocusing.value = false
}, 250)

if (isSurveyForm.value && vModel.value?.length) return

isOpen.value = true
}
</script>
Expand Down
56 changes: 38 additions & 18 deletions packages/nc-gui/components/cell/RichText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,31 @@ import Underline from '@tiptap/extension-underline'
import Placeholder from '@tiptap/extension-placeholder'
import { TaskItem } from '@/helpers/dbTiptapExtensions/task-item'
import { Link } from '@/helpers/dbTiptapExtensions/links'
import type { RichTextBubbleMenuOptions } from '#imports'
import { IsExpandedFormOpenInj, IsFormInj, IsGridInj, ReadonlyInj, RowHeightInj } from '#imports'

const props = defineProps<{
value?: string | null
readOnly?: boolean
syncValueChange?: boolean
showMenu?: boolean
fullMode?: boolean
isFormField?: boolean
autofocus?: boolean
placeholder?: string
renderAsText?: boolean
}>()
const props = withDefaults(
defineProps<{
value?: string | null
readOnly?: boolean
syncValueChange?: boolean
showMenu?: boolean
fullMode?: boolean
isFormField?: boolean
autofocus?: boolean
placeholder?: string
renderAsText?: boolean
hiddenBubbleMenuOptions?: RichTextBubbleMenuOptions[]
}>(),
{
hiddenBubbleMenuOptions: () => [],
},
)

const emits = defineEmits(['update:value'])

const { hiddenBubbleMenuOptions } = toRefs(props)

const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))!

const rowHeight = inject(RowHeightInj, ref(1 as const))
Expand Down Expand Up @@ -208,7 +217,8 @@ useEventListener(
editorDom,
'focusout',
(e: FocusEvent) => {
if (!(e?.relatedTarget as HTMLElement)?.closest('.bubble-menu, .nc-textarea-rich-editor')) {
const targetEl = e?.relatedTarget as HTMLElement
if (targetEl?.classList?.contains('tiptap') || !targetEl?.closest('.bubble-menu, .nc-textarea-rich-editor')) {
isFocused.value = false
}
},
Expand All @@ -223,7 +233,7 @@ useEventListener(
'flex flex-col flex-grow nc-rich-text-full': fullMode,
'nc-rich-text-embed flex flex-col pl-1 w-full': !fullMode,
'readonly': readOnly,
'nc-form-rich-text-field !p-0': isFormField,
'nc-form-rich-text-field !p-0 relative': isFormField,
'nc-rich-text-grid': isGrid,
}"
:tabindex="readOnlyCell || isFormField ? -1 : 0"
Expand Down Expand Up @@ -251,21 +261,26 @@ useEventListener(
class="flex flex-col nc-textarea-rich-editor w-full"
:class="{
'mt-2.5 flex-grow': fullMode,
'nc-scrollbar-md': !fullMode || (!fullMode && isExpandedFormOpen),
'scrollbar-thin scrollbar-thumb-gray-200 scrollbar-track-transparent': !fullMode || (!fullMode && isExpandedFormOpen),
'flex-grow': isExpandedFormOpen,
[`!overflow-hidden children:line-clamp-${rowHeight}`]:
!fullMode && readOnly && rowHeight && !isExpandedFormOpen && !isForm,
}"
/>
<div v-if="isFormField && !readOnly">
<div v-if="isFormField && !readOnly" class="nc-form-field-bubble-menu-wrapper overflow-hidden">
<div
class="overflow-hidden"
:class="isFocused ? 'max-h-[50px]' : 'max-h-0'"
:style="{
transition: 'max-height 0.2s ease-in-out',
}"
>
<CellRichTextSelectedBubbleMenu v-if="editor" :editor="editor" embed-mode is-form-field />
<CellRichTextSelectedBubbleMenu
v-if="editor"
:editor="editor"
embed-mode
is-form-field
:hidden-options="hiddenBubbleMenuOptions"
/>
</div>
</div>
</template>
Expand Down Expand Up @@ -343,7 +358,7 @@ useEventListener(

.nc-textarea-rich-editor {
.tiptap p.is-editor-empty:first-child::before {
color: #6a7184;
color: #9aa2af;
content: attr(data-placeholder);
float: left;
height: 0;
Expand Down Expand Up @@ -462,4 +477,9 @@ useEventListener(
height: fit-content;
}
}
.nc-form-field-bubble-menu-wrapper {
@apply absolute -bottom-9 left-1/2 z-50 rounded-lg;
transform: translateX(-50%);
box-shadow: 0px 8px 8px -4px rgba(0, 0, 0, 0.04), 0px 20px 24px -4px rgba(0, 0, 0, 0.1);
}
</style>
Loading
0