From 8d6396d43b31bd5f3f0a5b491855f7487d7c835d Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:57:06 +0530 Subject: [PATCH] Nc org chart extension (#9860) * feat(extensions): org chart: working nodes and edges * fix(extensions): org chart: auto select active view * fix(extensions): org chart: reuse isValidValue * fix(extensions): org chart: typing and linting * fix(extensions): org chart: fix edge case --------- Co-authored-by: amandesai01 --- packages/nc-gui/components/cell/MultiSelect.vue | 1 - packages/nc-gui/components/nc/Select.vue | 4 +++- packages/nc-gui/composables/useExtensionHelper.ts | 2 ++ packages/nc-gui/composables/useExtensions.ts | 2 +- packages/nc-gui/utils/dataUtils.ts | 10 +++------- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index 8adc8d6382..1060125573 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -280,7 +280,6 @@ async function addIfMissingAndSave() { updatedColMeta, ) - column.value.colOptions = data.columns.find((c) => c.id === column.value.id).colOptions activeOptCreateInProgress.value-- diff --git a/packages/nc-gui/components/nc/Select.vue b/packages/nc-gui/components/nc/Select.vue index 54ac4311ee..01b8312b83 100644 --- a/packages/nc-gui/components/nc/Select.vue +++ b/packages/nc-gui/components/nc/Select.vue @@ -15,6 +15,7 @@ const props = withDefaults( allowClear?: boolean loading?: boolean suffixIcon?: keyof typeof iconMap + maxTagCount?: number }>(), { suffixIcon: 'arrowDown', @@ -55,8 +56,9 @@ const onChange = (value: string) => { :mode="mode" :placeholder="placeholder" :show-search="showSearch" + :max-tag-count="maxTagCount" class="nc-select" - @change="onChange" + @change="onChange as any" >