diff --git a/packages/nc-gui-v2/assets/style.scss b/packages/nc-gui-v2/assets/style.scss index 8da9a28bda..bd73a731d1 100644 --- a/packages/nc-gui-v2/assets/style.scss +++ b/packages/nc-gui-v2/assets/style.scss @@ -239,3 +239,7 @@ a { .ant-menu-title-content { @apply !py-0; } + +.ant-dropdown-menu-submenu-title{ + @apply !pr-2; +} diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index f6be04bfc0..dd16edac37 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -96,6 +96,8 @@ declare module '@vue/runtime-core' { MdiAccount: typeof import('~icons/mdi/account')['default'] MdiAccountCircle: typeof import('~icons/mdi/account-circle')['default'] MdiAccountGroup: typeof import('~icons/mdi/account-group')['default'] + MdiAccountGroupIcon: typeof import('~icons/mdi/account-group-icon')['default'] + MdiAccountIcon: typeof import('~icons/mdi/account-icon')['default'] MdiAccountOutline: typeof import('~icons/mdi/account-outline')['default'] MdiAccountPlusOutline: typeof import('~icons/mdi/account-plus-outline')['default'] MdiAccountSupervisorOutline: typeof import('~icons/mdi/account-supervisor-outline')['default'] @@ -165,6 +167,7 @@ declare module '@vue/runtime-core' { MdiLinkVariant: typeof import('~icons/mdi/link-variant')['default'] MdiLinkVariantRemove: typeof import('~icons/mdi/link-variant-remove')['default'] MdiLoading: typeof import('~icons/mdi/loading')['default'] + MdiLockOutlineIcon: typeof import('~icons/mdi/lock-outline-icon')['default'] MdiLogin: typeof import('~icons/mdi/login')['default'] MdiLogout: typeof import('~icons/mdi/logout')['default'] MdiMagnify: typeof import('~icons/mdi/magnify')['default'] @@ -201,6 +204,7 @@ declare module '@vue/runtime-core' { MdiThumbUp: typeof import('~icons/mdi/thumb-up')['default'] MdiTrashCan: typeof import('~icons/mdi/trash-can')['default'] MdiTwitter: typeof import('~icons/mdi/twitter')['default'] + MdiUpload: typeof import('~icons/mdi/upload')['default'] MdiUploadOutline: typeof import('~icons/mdi/upload-outline')['default'] MdiViewListOutline: typeof import('~icons/mdi/view-list-outline')['default'] MdiWhatsapp: typeof import('~icons/mdi/whatsapp')['default'] diff --git a/packages/nc-gui-v2/components/cell/Text.vue b/packages/nc-gui-v2/components/cell/Text.vue index 3ae7cbc189..2c8e54d0d7 100644 --- a/packages/nc-gui-v2/components/cell/Text.vue +++ b/packages/nc-gui-v2/components/cell/Text.vue @@ -19,6 +19,12 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/AddRow.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/AddRow.vue new file mode 100644 index 0000000000..aa124f9f75 --- /dev/null +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/AddRow.vue @@ -0,0 +1,23 @@ + + + diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilterMenu.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilterMenu.vue index 3886d3eaa2..958e98fc44 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilterMenu.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilterMenu.vue @@ -39,7 +39,7 @@ const applyChanges = async () => await filterComp.value?.applyChanges()
- {{ $t('activity.filter') }} + {{ $t('activity.filter') }}
diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue index 71ef93d591..2070043b7a 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue @@ -86,7 +86,7 @@ const onMove = (event: { moved: { newIndex: number } }) => { - {{ $t('objects.fields') }} + {{ $t('objects.fields') }} diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/LockType.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/LockType.vue new file mode 100644 index 0000000000..1432ba8fab --- /dev/null +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/LockType.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/Reload.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/Reload.vue similarity index 51% rename from packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/Reload.vue rename to packages/nc-gui-v2/components/smartsheet-toolbar/Reload.vue index 9125b33b6e..5c780b1c16 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/Reload.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/Reload.vue @@ -3,17 +3,15 @@ import { ReloadViewDataHookInj, inject } from '#imports' const reloadHook = inject(ReloadViewDataHookInj)! -const { isOpen } = useSidebar({ storageKey: 'nc-right-sidebar' }) - const onClick = () => reloadHook.trigger() diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue index a44cb3cd24..ea16354a6a 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue @@ -126,7 +126,7 @@ onMounted(() => {
- {{ $t('activity.shareView') }} + {{ $t('activity.shareView') }}
diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/SortListMenu.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/SortListMenu.vue index 3f6784db96..88363ac637 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/SortListMenu.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/SortListMenu.vue @@ -40,7 +40,7 @@ watch( >
- {{ $t('activity.sort') }} + {{ $t('activity.sort') }}
diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue new file mode 100644 index 0000000000..d77b3227bc --- /dev/null +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue @@ -0,0 +1,280 @@ + + + + + diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index b2600286d1..5511522399 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -314,7 +314,7 @@ const onNavigate = (dir: NavigateDir) => { @@ -475,11 +475,11 @@ const onNavigate = (dir: NavigateDir) => {
- + {{ $t('activity.addRow') }} @@ -633,4 +633,8 @@ const onNavigate = (dir: NavigateDir) => { } } } + +tbody tr:hover { + @apply bg-gray-100 bg-opacity-50; +} diff --git a/packages/nc-gui-v2/components/smartsheet/Toolbar.vue b/packages/nc-gui-v2/components/smartsheet/Toolbar.vue index 7f7a7718e7..01260b88b3 100644 --- a/packages/nc-gui-v2/components/smartsheet/Toolbar.vue +++ b/packages/nc-gui-v2/components/smartsheet/Toolbar.vue @@ -1,13 +1,25 @@ diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue index 53608f516a..7e82bfc530 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue @@ -1,6 +1,6 @@
- +
{{ $t('objects.viewType.grid') }}
@@ -74,7 +61,7 @@ function onOpenModal(type: ViewTypes, title = '') {
- +
{{ $t('objects.viewType.gallery') }}
@@ -97,7 +84,7 @@ function onOpenModal(type: ViewTypes, title = '') {
- +
{{ $t('objects.viewType.form') }}
@@ -107,28 +94,13 @@ function onOpenModal(type: ViewTypes, title = '') {
-
- - -
- - - +
- + + <!– todo: add project cost –> - + --> diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue index c8eee24f23..d5aaacb600 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue @@ -170,9 +170,7 @@ function onDeleted() {
-
+
) => {
-
+
@@ -74,6 +74,7 @@ export default { .name { text-overflow: ellipsis; overflow: hidden; + white-space: nowrap; } } diff --git a/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue b/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue index 0279707e05..58db09fc73 100644 --- a/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue +++ b/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue @@ -81,9 +81,9 @@ const expandedFormRow = ref()