From f33fe5c514aa0b497534f96fa0f1aea28f668c7b Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Fri, 2 Jul 2021 19:40:53 +0530 Subject: [PATCH] feat: relation column delete Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- .../editableCell/dateTimePickerCell.vue | 4 +- .../spreadsheet/components/expandedForm.vue | 34 +++-- .../spreadsheet/components/virtualCell.vue | 9 +- .../components/virtualCell/belogsToCell.vue | 90 ++++++++---- .../virtualCell/components/listChildItems.vue | 135 ++++++++++-------- .../components/listChildItemsModal.vue | 121 ++++++++++++++++ .../virtualCell/components/listItems.vue | 2 +- .../components/virtualCell/hasManyCell.vue | 78 ++++++---- .../components/virtualCell/manyToManyCell.vue | 71 +++++---- .../components/virtualHeaderCell.vue | 80 +++++++++-- .../project/spreadsheet/rowsXcDataTable.vue | 13 +- .../project/spreadsheet/views/xcGridView.vue | 3 +- packages/nc-gui/store/sqlMgr.js | 1 + .../nocodb/src/lib/noco/NcProjectBuilder.ts | 18 ++- .../src/lib/noco/common/BaseApiBuilder.ts | 23 ++- .../nocodb/src/lib/noco/meta/NcMetaMgr.ts | 126 ++++++++++++++++ .../src/lib/noco/rest/RestApiBuilder.ts | 6 +- 17 files changed, 631 insertions(+), 183 deletions(-) create mode 100644 packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItemsModal.vue diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue index a0ff275273..c1f338831c 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell/dateTimePickerCell.vue @@ -30,12 +30,14 @@ export default { computed: { localState: { get() { + // todo : time value correction + if(/^\d{6,}$/.test(this.value)){ return new Date(+this.value); } - return /\dT\d/.test(this.value) ? new Date(this.value.replace(/(\d)T(?=\d)/, '$1 ')) : new Date(this.value); + return /\dT\d/.test(this.value) ? new Date(this.value.replace(/(\d)T(?=\d)/, '$1 ')) : this.value; }, set(val) { // if(/^\d{6,}$/.test(this.value)){ diff --git a/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue b/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue index bb17ef1a11..d2905cd5c9 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue @@ -51,7 +51,6 @@