From 525711f9b9c24afc63d8d9f3546c2f93877fd1a2 Mon Sep 17 00:00:00 2001 From: sreehari jayaraj Date: Tue, 3 Oct 2023 13:19:16 +0000 Subject: [PATCH 1/2] fix: misc changes --- packages/nc-gui/assets/nc-icons/project.svg | 16 +++--- packages/nc-gui/assets/nc-icons/record.svg | 12 +++++ .../dashboard/TreeView/TableNode.vue | 4 +- .../dashboard/settings/Metadata.vue | 2 +- .../components/dashboard/settings/UIAcl.vue | 5 +- .../nc-gui/components/dlg/TableDelete.vue | 2 +- .../nc-gui/components/general/ProjectIcon.vue | 2 +- .../smartsheet/column/CheckboxOptions.vue | 1 + .../smartsheet/column/EditOrAdd.vue | 4 +- .../smartsheet/column/FormulaOptions.vue | 15 +++--- .../column/LinkedToAnotherRecordOptions.vue | 2 +- .../smartsheet/column/RatingOptions.vue | 1 + .../smartsheet/column/SelectOptions.vue | 28 ++++------ .../smartsheet/expanded-form/Comments.vue | 33 +++++++----- .../smartsheet/expanded-form/index.vue | 4 -- .../nc-gui/components/virtual-cell/Lookup.vue | 54 ++++++++++--------- packages/nc-gui/utils/iconUtils.ts | 19 ++++--- 17 files changed, 107 insertions(+), 97 deletions(-) create mode 100644 packages/nc-gui/assets/nc-icons/record.svg diff --git a/packages/nc-gui/assets/nc-icons/project.svg b/packages/nc-gui/assets/nc-icons/project.svg index 842336ef6e..92fb62f59c 100644 --- a/packages/nc-gui/assets/nc-icons/project.svg +++ b/packages/nc-gui/assets/nc-icons/project.svg @@ -1,9 +1,9 @@ - - - - - - - - + + + + + + + + diff --git a/packages/nc-gui/assets/nc-icons/record.svg b/packages/nc-gui/assets/nc-icons/record.svg new file mode 100644 index 0000000000..7515f62243 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/record.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue index ff1d3302e2..b7c58e84cf 100644 --- a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue @@ -205,7 +205,8 @@ const isTableOpened = computed(() => { {{ $t('general.changeIcon') }} - +
- +
{{ record.title || record.table_name }}
diff --git a/packages/nc-gui/components/dashboard/settings/UIAcl.vue b/packages/nc-gui/components/dashboard/settings/UIAcl.vue index 7ebd7e03bd..5321768132 100644 --- a/packages/nc-gui/components/dashboard/settings/UIAcl.vue +++ b/packages/nc-gui/components/dashboard/settings/UIAcl.vue @@ -171,10 +171,7 @@ const columns = [
- +
{{ record._ptn }} diff --git a/packages/nc-gui/components/dlg/TableDelete.vue b/packages/nc-gui/components/dlg/TableDelete.vue index 120b441589..59f5d41dc2 100644 --- a/packages/nc-gui/components/dlg/TableDelete.vue +++ b/packages/nc-gui/components/dlg/TableDelete.vue @@ -110,7 +110,7 @@ const onDelete = async () => { diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue index 2bc9ca81ce..5156afd7bf 100644 --- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue @@ -282,9 +282,9 @@ if (props.fromTableExplorer) { -
+
diff --git a/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue b/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue index cd13e92ce1..c82bb5d4ba 100644 --- a/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue @@ -14,7 +14,6 @@ import { getWordUntilCaret, iconMap, insertAtCursor, - isEeUI, onMounted, useColumnCreateStoreOrThrow, useDebounceFn, @@ -32,11 +31,11 @@ const uiTypesNotSupportedInFormulas = [UITypes.QrCode, UITypes.Barcode] const vModel = useVModel(props, 'value', emit) -const { formState, setAdditionalValidations, validateInfos, sqlUi, column } = useColumnCreateStoreOrThrow() +const { setAdditionalValidations, validateInfos, sqlUi, column } = useColumnCreateStoreOrThrow() const { t } = useI18n() -const { loadMagic, predictFunction: _predictFunction } = useNocoEe() +const { predictFunction: _predictFunction } = useNocoEe() enum JSEPNode { COMPOUND = 'Compound', @@ -714,21 +713,21 @@ onMounted(() => { jsep.plugins.register(jsepCurlyHook) }) -const predictFunction = async () => { - await _predictFunction(formState, meta, supportedColumns, suggestionsList, vModel) -} +// const predictFunction = async () => { +// await _predictFunction(formState, meta, supportedColumns, suggestionsList, vModel) +// } diff --git a/packages/nc-gui/components/smartsheet/column/SelectOptions.vue b/packages/nc-gui/components/smartsheet/column/SelectOptions.vue index 9f0e1fbee0..dcf0cfff2a 100644 --- a/packages/nc-gui/components/smartsheet/column/SelectOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/SelectOptions.vue @@ -1,17 +1,7 @@