From c7ea4f82b5f2575c90454b0e36340d125c9aab18 Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Mon, 2 Aug 2021 20:22:25 +0530 Subject: [PATCH] feat: Formula column creation Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- .../spreadsheet/components/editColumn.vue | 610 +++++++++--------- .../components/editColumn/formulaOptions.vue | 33 +- .../spreadsheet/components/virtualCell.vue | 10 + .../components/virtualCell/formulaCell.vue | 14 + .../components/virtualHeaderCell.vue | 4 +- packages/nocodb/src/__tests__/formula.test.ts | 18 +- .../dataMapper/lib/sql/formulaQueryBuilder.ts | 18 +- 7 files changed, 385 insertions(+), 322 deletions(-) create mode 100644 packages/nc-gui/components/project/spreadsheet/components/virtualCell/formulaCell.vue diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn.vue index c53bba7605..1711c49bb3 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn.vue @@ -36,308 +36,310 @@ @input="newColumn.altered = newColumn.altered || 8" /> -
- -
-

- Foreign Key -

- - - mdi-table - - {{ relation._rtn }} - - mdi-delete-forever - - (v) -
-
-