|
|
@ -48,6 +48,8 @@ const easterEgg = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const easterEggCount = ref(0) |
|
|
|
const easterEggCount = ref(0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const advancedOptionsExpansionPanel = ref<string[]>([]) |
|
|
|
|
|
|
|
|
|
|
|
const onEasterEgg = () => { |
|
|
|
const onEasterEgg = () => { |
|
|
|
easterEggCount.value += 1 |
|
|
|
easterEggCount.value += 1 |
|
|
|
if (easterEggCount.value >= 2) { |
|
|
|
if (easterEggCount.value >= 2) { |
|
|
@ -335,8 +337,17 @@ const allowDataWrite = computed({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleUpdateAdvancedOptionsExpansionPanel = (open: boolean) => { |
|
|
|
|
|
|
|
if (open) { |
|
|
|
|
|
|
|
advancedOptionsExpansionPanel.value = ['1'] |
|
|
|
|
|
|
|
handleAutoScroll(true, 'nc-source-advanced-options') |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
advancedOptionsExpansionPanel.value = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let timer: any |
|
|
|
let timer: any |
|
|
|
const handleAutoScroll = (scroll: boolean, className: string) => { |
|
|
|
function handleAutoScroll(scroll: boolean, className: string) { |
|
|
|
if (scroll) { |
|
|
|
if (scroll) { |
|
|
|
if (timer) { |
|
|
|
if (timer) { |
|
|
|
clearTimeout(timer) |
|
|
|
clearTimeout(timer) |
|
|
@ -357,221 +368,224 @@ const handleAutoScroll = (scroll: boolean, className: string) => { |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="edit-source bg-white relative h-full flex flex-col w-full"> |
|
|
|
<div class="edit-source bg-white relative h-full flex flex-col w-full"> |
|
|
|
<div class="h-full max-h-[calc(100%_-_65px)] nc-scrollbar-thin"> |
|
|
|
<div class="h-full max-h-[calc(100%_-_65px)] flex"> |
|
|
|
<div class="h-full max-w-[992px] p-6 mx-auto"> |
|
|
|
<div class="nc-edit-source-left-panel nc-scrollbar-thin"> |
|
|
|
<a-form |
|
|
|
<div class="h-full max-w-[768px] mx-auto"> |
|
|
|
ref="form" |
|
|
|
<a-form |
|
|
|
:model="formState" |
|
|
|
ref="form" |
|
|
|
hide-required-mark |
|
|
|
:model="formState" |
|
|
|
name="external-base-create-form" |
|
|
|
hide-required-mark |
|
|
|
layout="vertical" |
|
|
|
name="external-base-create-form" |
|
|
|
no-style |
|
|
|
layout="vertical" |
|
|
|
class="flex flex-col gap-5.5" |
|
|
|
no-style |
|
|
|
> |
|
|
|
class="flex flex-col gap-5.5" |
|
|
|
<div class="nc-form-section"> |
|
|
|
> |
|
|
|
<div class="nc-form-section-title">Source details</div> |
|
|
|
<div class="nc-form-section"> |
|
|
|
<div class="nc-form-section-body"> |
|
|
|
<div class="nc-form-section-body"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<a-form-item label="Source name" v-bind="validateInfos.title"> |
|
|
|
|
|
|
|
<a-input v-model:value="formState.title" class="nc-extdb-proj-name" /> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
<a-row :gutter="24"> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<a-form-item label="Select connection"> |
|
|
|
|
|
|
|
<NcSelect |
|
|
|
|
|
|
|
:value="formState.fk_integration_id" |
|
|
|
|
|
|
|
disabled |
|
|
|
|
|
|
|
class="nc-extdb-db-type nc-select-shadow" |
|
|
|
|
|
|
|
dropdown-class-name="nc-dropdown-ext-db-type" |
|
|
|
|
|
|
|
placeholder="Select connection" |
|
|
|
|
|
|
|
allow-clear |
|
|
|
|
|
|
|
show-search |
|
|
|
|
|
|
|
dropdown-match-select-width |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<a-select-option v-for="integration in integrations" :key="integration.id" :value="integration.id"> |
|
|
|
|
|
|
|
<div class="w-full flex gap-2 items-center" :data-testid="integration.title"> |
|
|
|
|
|
|
|
<GeneralBaseLogo |
|
|
|
|
|
|
|
v-if="integration.type" |
|
|
|
|
|
|
|
:source-type="integration.sub_type" |
|
|
|
|
|
|
|
class="flex-none h-4 w-4" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<NcTooltip class="flex-1 truncate" show-on-truncate-only> |
|
|
|
|
|
|
|
<template #title> |
|
|
|
|
|
|
|
{{ integration.title }} |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
{{ integration.title }} |
|
|
|
|
|
|
|
</NcTooltip> |
|
|
|
|
|
|
|
<component |
|
|
|
|
|
|
|
:is="iconMap.check" |
|
|
|
|
|
|
|
v-if="formState.fk_integration_id === integration.id" |
|
|
|
|
|
|
|
id="nc-selected-item-icon" |
|
|
|
|
|
|
|
class="text-primary w-4 h-4" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</a-select-option> |
|
|
|
|
|
|
|
</NcSelect> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-form-section"> |
|
|
|
|
|
|
|
<div class="nc-form-section-title">Connection details</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-form-section-body"> |
|
|
|
|
|
|
|
<!-- SQLite File --> |
|
|
|
|
|
|
|
<template v-if="formState.dataSource.client === ClientType.SQLITE"> </template> |
|
|
|
|
|
|
|
<template v-else-if="formState.dataSource.client === ClientType.SNOWFLAKE"> |
|
|
|
|
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-col :span="12"> |
|
|
|
<a-col :span="12"> |
|
|
|
<!-- Database --> |
|
|
|
<a-form-item label="Data Source Name" v-bind="validateInfos.title"> |
|
|
|
<a-form-item :label="$t('labels.database')" v-bind="validateInfos['dataSource.connection.database']"> |
|
|
|
<a-input v-model:value="formState.title" class="nc-extdb-proj-name" /> |
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="(formState.dataSource.connection as SnowflakeConnection).database" |
|
|
|
|
|
|
|
class="nc-extdb-host-database" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<!-- Schema --> |
|
|
|
|
|
|
|
<a-form-item label="Schema" v-bind="validateInfos['dataSource.connection.schema']"> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="(formState.dataSource.connection as SnowflakeConnection).schema" |
|
|
|
|
|
|
|
class="nc-extdb-host-database" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-else-if="formState.dataSource.client === ClientType.DATABRICKS"> |
|
|
|
|
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-col :span="12"> |
|
|
|
<a-col :span="12"> |
|
|
|
<a-form-item label="Database" v-bind="validateInfos['dataSource.connection.database']"> |
|
|
|
<a-form-item label="Select connection"> |
|
|
|
<a-input |
|
|
|
<NcSelect |
|
|
|
v-model:value="(formState.dataSource.connection as DatabricksConnection).database" |
|
|
|
:value="formState.fk_integration_id" |
|
|
|
class="nc-extdb-host-database" |
|
|
|
disabled |
|
|
|
/> |
|
|
|
class="nc-extdb-db-type nc-select-shadow" |
|
|
|
</a-form-item> |
|
|
|
dropdown-class-name="nc-dropdown-ext-db-type" |
|
|
|
</a-col> |
|
|
|
placeholder="Select connection" |
|
|
|
<a-col :span="12"> |
|
|
|
allow-clear |
|
|
|
<a-form-item label="Schema" v-bind="validateInfos['dataSource.connection.schema']"> |
|
|
|
show-search |
|
|
|
<a-input |
|
|
|
dropdown-match-select-width |
|
|
|
v-model:value="(formState.dataSource.connection as DatabricksConnection).schema" |
|
|
|
> |
|
|
|
class="nc-extdb-host-schema" |
|
|
|
<a-select-option v-for="integration in integrations" :key="integration.id" :value="integration.id"> |
|
|
|
/> |
|
|
|
<div class="w-full flex gap-2 items-center" :data-testid="integration.title"> |
|
|
|
</a-form-item> |
|
|
|
<GeneralBaseLogo |
|
|
|
</a-col> |
|
|
|
v-if="integration.type" |
|
|
|
</a-row> |
|
|
|
:source-type="integration.sub_type" |
|
|
|
</template> |
|
|
|
class="flex-none h-4 w-4" |
|
|
|
<template v-else> |
|
|
|
/> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<NcTooltip class="flex-1 truncate" show-on-truncate-only> |
|
|
|
<a-col :span="12"> |
|
|
|
<template #title> |
|
|
|
<!-- Database --> |
|
|
|
{{ integration.title }} |
|
|
|
<a-form-item :label="$t('labels.database')" v-bind="validateInfos['dataSource.connection.database']"> |
|
|
|
</template> |
|
|
|
<!-- Database : create if not exists --> |
|
|
|
{{ integration.title }} |
|
|
|
<a-input |
|
|
|
</NcTooltip> |
|
|
|
v-model:value="formState.dataSource.connection.database" |
|
|
|
<component |
|
|
|
:placeholder="$t('labels.dbCreateIfNotExists')" |
|
|
|
:is="iconMap.check" |
|
|
|
class="nc-extdb-host-database" |
|
|
|
v-if="formState.fk_integration_id === integration.id" |
|
|
|
/> |
|
|
|
id="nc-selected-item-icon" |
|
|
|
</a-form-item> |
|
|
|
class="text-primary w-4 h-4" |
|
|
|
</a-col> |
|
|
|
/> |
|
|
|
<a-col :span="12"> |
|
|
|
</div> |
|
|
|
<!-- Schema name --> |
|
|
|
</a-select-option> |
|
|
|
<a-form-item |
|
|
|
</NcSelect> |
|
|
|
v-if=" |
|
|
|
|
|
|
|
([ClientType.MSSQL, ClientType.PG].includes(formState.dataSource.client) || |
|
|
|
|
|
|
|
[ClientType.MSSQL, ClientType.PG].includes(selectedIntegration?.sub_type)) && |
|
|
|
|
|
|
|
formState.dataSource.searchPath |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
:label="$t('labels.schemaName')" |
|
|
|
|
|
|
|
v-bind="validateInfos['dataSource.searchPath.0']" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="formState.dataSource.searchPath[0]" |
|
|
|
|
|
|
|
:placeholder="selectedIntegrationSchema && `${selectedIntegrationSchema} (default)`" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-form-section"> |
|
|
|
|
|
|
|
<div class="nc-form-section-body"> |
|
|
|
|
|
|
|
<!-- SQLite File --> |
|
|
|
|
|
|
|
<template v-if="formState.dataSource.client === ClientType.SQLITE"> </template> |
|
|
|
|
|
|
|
<template v-else-if="formState.dataSource.client === ClientType.SNOWFLAKE"> |
|
|
|
|
|
|
|
<a-row :gutter="24"> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<!-- Database --> |
|
|
|
|
|
|
|
<a-form-item :label="$t('labels.database')" v-bind="validateInfos['dataSource.connection.database']"> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="(formState.dataSource.connection as SnowflakeConnection).database" |
|
|
|
|
|
|
|
class="nc-extdb-host-database" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<!-- Schema --> |
|
|
|
|
|
|
|
<a-form-item label="Schema" v-bind="validateInfos['dataSource.connection.schema']"> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="(formState.dataSource.connection as SnowflakeConnection).schema" |
|
|
|
|
|
|
|
class="nc-extdb-host-database" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-else-if="formState.dataSource.client === ClientType.DATABRICKS"> |
|
|
|
|
|
|
|
<a-row :gutter="24"> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<a-form-item label="Database" v-bind="validateInfos['dataSource.connection.database']"> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="(formState.dataSource.connection as DatabricksConnection).database" |
|
|
|
|
|
|
|
class="nc-extdb-host-database" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<a-form-item label="Schema" v-bind="validateInfos['dataSource.connection.schema']"> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="(formState.dataSource.connection as DatabricksConnection).schema" |
|
|
|
|
|
|
|
class="nc-extdb-host-schema" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<a-row :gutter="24"> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<!-- Database --> |
|
|
|
|
|
|
|
<a-form-item :label="$t('labels.database')" v-bind="validateInfos['dataSource.connection.database']"> |
|
|
|
|
|
|
|
<!-- Database : create if not exists --> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="formState.dataSource.connection.database" |
|
|
|
|
|
|
|
:placeholder="$t('labels.dbCreateIfNotExists')" |
|
|
|
|
|
|
|
class="nc-extdb-host-database" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
<a-col :span="12"> |
|
|
|
|
|
|
|
<!-- Schema name --> |
|
|
|
|
|
|
|
<a-form-item |
|
|
|
|
|
|
|
v-if=" |
|
|
|
|
|
|
|
([ClientType.MSSQL, ClientType.PG].includes(formState.dataSource.client) || |
|
|
|
|
|
|
|
[ClientType.MSSQL, ClientType.PG].includes(selectedIntegration?.sub_type)) && |
|
|
|
|
|
|
|
formState.dataSource.searchPath |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
:label="$t('labels.schemaName')" |
|
|
|
|
|
|
|
v-bind="validateInfos['dataSource.searchPath.0']" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="formState.dataSource.searchPath[0]" |
|
|
|
|
|
|
|
:placeholder="selectedIntegrationSchema && `${selectedIntegrationSchema} (default)`" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-form-section"> |
|
|
|
<div class="nc-form-section"> |
|
|
|
<div class="nc-form-section-title">Permissions</div> |
|
|
|
<div class="nc-form-section-title">Permissions</div> |
|
|
|
<div class="nc-form-section-body"> |
|
|
|
<div class="nc-form-section-body"> |
|
|
|
<DashboardSettingsDataSourcesSourceRestrictions |
|
|
|
<DashboardSettingsDataSourcesSourceRestrictions |
|
|
|
v-model:allowMetaWrite="allowMetaWrite" |
|
|
|
v-model:allowMetaWrite="allowMetaWrite" |
|
|
|
v-model:allowDataWrite="allowDataWrite" |
|
|
|
v-model:allowDataWrite="allowDataWrite" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<template |
|
|
|
<template |
|
|
|
v-if="![ClientType.SQLITE, ClientType.SNOWFLAKE, ClientType.DATABRICKS].includes(formState.dataSource.client)" |
|
|
|
v-if="![ClientType.SQLITE, ClientType.SNOWFLAKE, ClientType.DATABRICKS].includes(formState.dataSource.client)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<a-collapse |
|
|
|
|
|
|
|
ghost |
|
|
|
|
|
|
|
expand-icon-position="right" |
|
|
|
|
|
|
|
class="nc-source-advanced-options !mt-4" |
|
|
|
|
|
|
|
@change="handleAutoScroll(!!$event?.length, 'nc-source-advanced-options')" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<template #expandIcon="{ isActive }"> |
|
|
|
<a-collapse v-model:active-key="advancedOptionsExpansionPanel" ghost class="nc-source-advanced-options !mt-4"> |
|
|
|
<NcButton type="text" size="xsmall"> |
|
|
|
<template #expandIcon="{ isActive }"> |
|
|
|
<GeneralIcon |
|
|
|
<NcButton |
|
|
|
icon="chevronDown" |
|
|
|
type="text" |
|
|
|
class="flex-none cursor-pointer transform transition-transform duration-500" |
|
|
|
size="small" |
|
|
|
:class="{ '!rotate-180': isActive }" |
|
|
|
class="!-ml-1.5" |
|
|
|
/> |
|
|
|
@click="handleUpdateAdvancedOptionsExpansionPanel(!advancedOptionsExpansionPanel.length)" |
|
|
|
</NcButton> |
|
|
|
> |
|
|
|
</template> |
|
|
|
|
|
|
|
<a-collapse-panel key="1"> |
|
|
|
|
|
|
|
<template #header> |
|
|
|
|
|
|
|
<div class="flex"> |
|
|
|
|
|
|
|
<div class="nc-form-section-title">Advanced options</div> |
|
|
|
<div class="nc-form-section-title">Advanced options</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<GeneralIcon |
|
|
|
|
|
|
|
icon="chevronDown" |
|
|
|
|
|
|
|
class="ml-2 flex-none cursor-pointer transform transition-transform duration-500" |
|
|
|
|
|
|
|
:class="{ '!rotate-180': isActive }" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NcButton> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<a-collapse-panel key="1" collapsible="disabled"> |
|
|
|
|
|
|
|
<template #header> |
|
|
|
|
|
|
|
<span></span> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex flex-col gap-4"> |
|
|
|
|
|
|
|
<div class="flex flex-col gap-4"> |
|
|
|
<div class="flex flex-col gap-4"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<div class="flex flex-col gap-4"> |
|
|
|
<a-col :span="12"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-form-item :label="$t('labels.inflection.tableName')"> |
|
|
|
<a-col :span="12"> |
|
|
|
<NcSelect |
|
|
|
<a-form-item :label="$t('labels.inflection.tableName')"> |
|
|
|
v-model:value="formState.inflection.inflectionTable" |
|
|
|
<NcSelect |
|
|
|
class="nc-select-shadow" |
|
|
|
v-model:value="formState.inflection.inflectionTable" |
|
|
|
dropdown-class-name="nc-dropdown-inflection-table-name" |
|
|
|
class="nc-select-shadow" |
|
|
|
> |
|
|
|
dropdown-class-name="nc-dropdown-inflection-table-name" |
|
|
|
<a-select-option v-for="tp in inflectionTypes" :key="tp" :value="tp">{{ tp }}</a-select-option> |
|
|
|
> |
|
|
|
</NcSelect> |
|
|
|
<a-select-option v-for="tp in inflectionTypes" :key="tp" :value="tp">{{ tp }}</a-select-option> |
|
|
|
</a-form-item> |
|
|
|
</NcSelect> |
|
|
|
</a-col> |
|
|
|
</a-form-item> |
|
|
|
<a-col :span="12"> |
|
|
|
</a-col> |
|
|
|
<a-form-item :label="$t('labels.inflection.columnName')"> |
|
|
|
<a-col :span="12"> |
|
|
|
<NcSelect |
|
|
|
<a-form-item :label="$t('labels.inflection.columnName')"> |
|
|
|
v-model:value="formState.inflection.inflectionColumn" |
|
|
|
<NcSelect |
|
|
|
class="nc-select-shadow" |
|
|
|
v-model:value="formState.inflection.inflectionColumn" |
|
|
|
dropdown-class-name="nc-dropdown-inflection-column-name" |
|
|
|
class="nc-select-shadow" |
|
|
|
> |
|
|
|
dropdown-class-name="nc-dropdown-inflection-column-name" |
|
|
|
<a-select-option v-for="tp in inflectionTypes" :key="tp" :value="tp">{{ tp }}</a-select-option> |
|
|
|
> |
|
|
|
</NcSelect> |
|
|
|
<a-select-option v-for="tp in inflectionTypes" :key="tp" :value="tp">{{ tp }}</a-select-option> |
|
|
|
</a-form-item> |
|
|
|
</NcSelect> |
|
|
|
</a-col> |
|
|
|
</a-form-item> |
|
|
|
</a-row> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
</a-row> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-collapse-panel> |
|
|
|
</a-collapse-panel> |
|
|
|
</a-collapse> |
|
|
|
</a-collapse> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<!-- For spacing --> |
|
|
|
<!-- For spacing --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-edit-source-right-panel"> |
|
|
|
|
|
|
|
<DashboardSettingsDataSourcesSupportedDocs /> |
|
|
|
|
|
|
|
<NcDivider /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="p-4 w-full flex items-center justify-between gap-3 border-t-1 border-gray-200"> |
|
|
|
<div class="p-4 w-full flex items-center justify-between gap-3 border-t-1 border-gray-200"> |
|
|
@ -624,14 +638,14 @@ const handleAutoScroll = (scroll: boolean, className: string) => { |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.nc-add-source-left-panel { |
|
|
|
.nc-edit-source-left-panel { |
|
|
|
@apply p-6 flex-1 flex justify-center; |
|
|
|
@apply p-6 flex-1 flex justify-center; |
|
|
|
} |
|
|
|
} |
|
|
|
.nc-add-source-right-panel { |
|
|
|
.nc-edit-source-right-panel { |
|
|
|
@apply p-5 w-[320px] border-l-1 border-gray-200 flex flex-col gap-4 bg-gray-50 rounded-br-2xl; |
|
|
|
@apply p-4 w-[320px] border-l-1 border-gray-200 flex flex-col gap-4 bg-gray-50 rounded-br-2xl; |
|
|
|
} |
|
|
|
} |
|
|
|
:deep(.ant-collapse-header) { |
|
|
|
:deep(.ant-collapse-header) { |
|
|
|
@apply !-mt-4 !p-0 flex items-center; |
|
|
|
@apply !-mt-4 !p-0 flex items-center !cursor-default children:first:flex; |
|
|
|
} |
|
|
|
} |
|
|
|
:deep(.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow) { |
|
|
|
:deep(.ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow) { |
|
|
|
@apply !right-0; |
|
|
|
@apply !right-0; |
|
|
|