From 3acc23bbce1ae3c40be6be7c6947eb6c046f17a4 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 3 Aug 2022 19:43:29 +0800 Subject: [PATCH 1/9] feat(gui-v2): include SmartsheetColumnCheckboxOptions --- packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue index bc88e39fbd..6f1362a539 100644 --- a/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue +++ b/packages/nc-gui-v2/components/smartsheet-column/EditOrAdd.vue @@ -90,6 +90,7 @@ watchEffect(() => { +
Date: Wed, 3 Aug 2022 19:43:40 +0800 Subject: [PATCH 2/9] feat(gui-v2): checkbox options --- .../smartsheet-column/CheckboxOptions.vue | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue diff --git a/packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue b/packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue new file mode 100644 index 0000000000..dd1e2743ac --- /dev/null +++ b/packages/nc-gui-v2/components/smartsheet-column/CheckboxOptions.vue @@ -0,0 +1,102 @@ + + + + + From 4a09e2787b5a5f523082a7d9f72e9f1d57cc2310 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Aug 2022 00:39:26 +0530 Subject: [PATCH 3/9] chore(gui-v2): arrow/tab navigation correction Signed-off-by: Pranav C --- packages/nc-gui-v2/components/smartsheet/Grid.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index 59a9d45409..a2ccf0fb97 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -42,10 +42,7 @@ const addColumnDropdown = ref(false) const contextMenu = ref(false) const contextMenuTarget = ref(false) -const visibleColLength = $computed(() => { - const cols = fields.value - return cols.filter((col) => !isVirtualCol(col)).length -}) +const visibleColLength = $computed(() => fields.value?.length) const { loadData, From bf947e8012befab391f1ee11cee54c5ef89e0029 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Aug 2022 01:04:36 +0530 Subject: [PATCH 4/9] fix(gui-v2): cell outline correction Signed-off-by: Pranav C --- .../nc-gui-v2/components/smartsheet/Grid.vue | 175 +++++++++--------- 1 file changed, 90 insertions(+), 85 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index a2ccf0fb97..4e99b353f1 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -187,72 +187,74 @@ onKeyStroke(['Tab', 'Shift', 'Enter', 'Delete', 'ArrowDown', 'ArrowUp', 'ArrowLe - - + - - - - + + + + + + - - + - - + + + - - + - + + + + +
-
-
#
-
- - -
+
+
+
#
+
+ +
-
- - - - -
- -
- -
-
+ + + + +
+ +
+ +
+
-
-
{{ rowIndex + 1 }}
-
- - -
+
+
+
{{ rowIndex + 1 }}
+
+ + +
-
- + :data-col="columnObj.id" + @click="selectCell(rowIndex, colIndex)" + @dblclick="editEnabled = true" + @contextmenu="contextMenuTarget = { row: rowIndex, col: colIndex }" + > +
+ -
- -
- - +
+ +
+ + {{ $t('activity.addRow') }} -
- -
-