feat: Implement layer activation and data transfer enhancements

- Added support for force-activated layer IDs in ScreenViewPage, allowing layers to be activated based on data events.
- Introduced ScreenContextProvider in ScreenModal and EditModal to manage screen-specific data and context.
- Enhanced V2Repeater to register as a DataReceiver, enabling automatic data handling and integration with ScreenContext.
- Improved ButtonPrimaryComponent to support automatic target component discovery and layer activation for data transfers.
- Updated various components to streamline data handling and improve user experience during data transfers and layer management.
This commit is contained in:
kjs
2026-02-25 17:40:17 +09:00
parent 55cbd8778a
commit 863ec614f4
12 changed files with 487 additions and 81 deletions
+8 -1
View File
@@ -6287,7 +6287,14 @@ export class ButtonActionExecutor {
const { targetType, targetComponentId, targetScreenId, mappingRules, receiveMode } = dataTransfer;
if (targetType === "component" && targetComponentId) {
// 같은 화면 내 컴포넌트로 전달
// 같은 화면 내 컴포넌트로 전달 + 레이어 활성화 이벤트 병행
const activateEvent = new CustomEvent("activateLayerForComponent", {
detail: {
componentId: targetComponentId,
targetLayerId: (dataTransfer as any).targetLayerId,
},
});
window.dispatchEvent(activateEvent);
const transferEvent = new CustomEvent("componentDataTransfer", {
detail: {