diff --git a/lerna.json b/lerna.json index a2bb50ba7c..e00a1a5833 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,10 @@ { "packages": [ - "packages/*" + "packages/nc-cli", + "packages/nc-gui", + "packages/nc-plugin", + "packages/nocodb", + "packages/nocodb-sdk" ], "version": "independent" } diff --git a/package.json b/package.json index 81c678344f..e035640227 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,8 @@ "start:mysql": "docker-compose -f ./tests/playwright/scripts/docker-compose-mysql-playwright.yml up -d", "stop:mysql": "docker-compose -f ./tests/playwright/scripts/docker-compose-mysql-playwright.yml down", "start:pg": "docker-compose -f ./tests/playwright/scripts/docker-compose-pg.yml up -d", - "stop:pg": "docker-compose -f ./tests/playwright/scripts/docker-compose-pg.yml down" + "stop:pg": "docker-compose -f ./tests/playwright/scripts/docker-compose-pg.yml down", + "install:local-sdk": "node scripts/installLocalSdk.js" }, "dependencies": { "express": "^4.18.1", diff --git a/packages/nc-gui/components/cell/ClampedText.vue b/packages/nc-gui/components/cell/ClampedText.vue index 4a541268e2..88b4ab046d 100644 --- a/packages/nc-gui/components/cell/ClampedText.vue +++ b/packages/nc-gui/components/cell/ClampedText.vue @@ -13,6 +13,7 @@ const props = defineProps<{ '-webkit-line-clamp': props.lines || 1, '-webkit-box-orient': 'vertical', 'overflow': 'hidden', + 'white-space': 'pre', }" > {{ props.value || '' }} diff --git a/packages/nc-gui/components/cell/Currency.vue b/packages/nc-gui/components/cell/Currency.vue index 2d14a432b9..09c605ead3 100644 --- a/packages/nc-gui/components/cell/Currency.vue +++ b/packages/nc-gui/components/cell/Currency.vue @@ -53,9 +53,9 @@ const currency = computed(() => { } }) -const isExpandedFormOpen = inject(IsExpandedFormOpenInj)! +const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! -const focus: VNodeRef = (el) => !isExpandedFormOpen && (el as HTMLInputElement)?.focus() +const focus: VNodeRef = (el) => !isExpandedFormOpen.value && (el as HTMLInputElement)?.focus() const submitCurrency = () => { if (lastSaved.value !== vModel.value) { diff --git a/packages/nc-gui/components/cell/DateTimePicker.vue b/packages/nc-gui/components/cell/DateTimePicker.vue index 737056ff3e..0395901bbf 100644 --- a/packages/nc-gui/components/cell/DateTimePicker.vue +++ b/packages/nc-gui/components/cell/DateTimePicker.vue @@ -18,7 +18,7 @@ import { interface Props { modelValue?: string | null isPk?: boolean - isUpdatedFromCopyNPaste: Record + isUpdatedFromCopyNPaste?: Record } const { modelValue, isPk, isUpdatedFromCopyNPaste } = defineProps() diff --git a/packages/nc-gui/components/cell/Decimal.vue b/packages/nc-gui/components/cell/Decimal.vue index 25011a9ad9..11392f6d08 100644 --- a/packages/nc-gui/components/cell/Decimal.vue +++ b/packages/nc-gui/components/cell/Decimal.vue @@ -36,9 +36,9 @@ const vModel = computed({ }, }) -const isExpandedFormOpen = inject(IsExpandedFormOpenInj)! +const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! -const focus: VNodeRef = (el) => !isExpandedFormOpen && (el as HTMLInputElement)?.focus() +const focus: VNodeRef = (el) => !isExpandedFormOpen.value && (el as HTMLInputElement)?.focus()