From 8ed0732c7eb74bd70e4eadec23f31b2379093f7d Mon Sep 17 00:00:00 2001 From: Lukas Harbarth Date: Wed, 8 Jan 2025 15:32:06 +0100 Subject: [PATCH] fix table detail import --- packages/cli/src/util/referenceResolver.ts | 3 +++ packages/main/src/webComponents/Table/index.tsx | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/util/referenceResolver.ts b/packages/cli/src/util/referenceResolver.ts index fd31a2293d7..7b3df483589 100644 --- a/packages/cli/src/util/referenceResolver.ts +++ b/packages/cli/src/util/referenceResolver.ts @@ -18,6 +18,9 @@ function resolveReferenceImport(reference: CEM.Reference | undefined): Reference // find module const resolvedModule = customElementManifest.modules.find((mod) => mod.path === modulePath); + if (!resolvedModule) { + console.warn('Resolved Module not found for:', reference.name, 'in', pkgName); + } if (resolvedModule) { const exportDeclaration = resolvedModule.exports?.find((exp) => exp.declaration.name === name); diff --git a/packages/main/src/webComponents/Table/index.tsx b/packages/main/src/webComponents/Table/index.tsx index 072b1d5ee45..8ecd658b08a 100644 --- a/packages/main/src/webComponents/Table/index.tsx +++ b/packages/main/src/webComponents/Table/index.tsx @@ -1,7 +1,7 @@ 'use client'; import '@ui5/webcomponents/dist/Table.js'; -import type { TableRowClickEventDetail } from '@ui5/webcomponents/dist/Table.js'; +import type { TableRowClickEventDetail, TableTableMoveEventDetail } from '@ui5/webcomponents/dist/Table.js'; import type TableOverflowMode from '@ui5/webcomponents/dist/types/TableOverflowMode.js'; import type { ReactNode } from 'react'; import { withWebComponent } from '../../internal/withWebComponent.js'; @@ -116,7 +116,7 @@ interface TablePropTypes * | :--------: | :-----: | * | ❌|✅| */ - onMove?: (event: Ui5CustomEvent) => void; + onMove?: (event: Ui5CustomEvent) => void; /** * Fired when a movable item is moved over a potential drop target during a dragging operation. @@ -132,7 +132,7 @@ interface TablePropTypes * | :--------: | :-----: | * | ✅|✅| */ - onMoveOver?: (event: Ui5CustomEvent) => void; + onMoveOver?: (event: Ui5CustomEvent) => void; /** * Fired when an interactive row is clicked.