/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import _ from 'lodash'; import type { HiddenPopupHostRuntime, HiddenPopupOpenViewNormalizer } from './hidden-popup-calendar'; export declare const KANBAN_POPUP_ACTION_UID_SUFFIX_BY_KEY: { readonly quickCreateAction: "-quick-create-action"; readonly cardViewAction: "-card-view-action"; }; export declare const KANBAN_POPUP_ACTION_KEYS: ("quickCreateAction" | "cardViewAction")[]; export type KanbanPopupActionKey = (typeof KANBAN_POPUP_ACTION_KEYS)[number]; export declare const KANBAN_BLOCK_POPUP_PROP_KEYS: readonly ["popupMode", "popupSize", "popupTemplateUid", "popupPageModelClass", "popupTargetUid", "quickCreatePopupSettings"]; export declare const KANBAN_CARD_POPUP_PROP_KEYS: readonly ["openMode", "popupSize", "popupTemplateUid", "pageModelClass", "popupTargetUid", "cardPopupSettings"]; export declare function normalizeKanbanPopupSettings(actionKey: KanbanPopupActionKey, popupSettings?: Record, blockUid?: string): Record; export declare function getKanbanInitialPopupSettings(actionKey: KanbanPopupActionKey, settings?: Record, blockUid?: string): Record; export declare function getKanbanInitialPopupSettingsFromProps(actionKey: KanbanPopupActionKey, props?: Record, blockUid?: string): Record; export declare function getKanbanPopupActionUse(actionKey: KanbanPopupActionKey): "KanbanQuickCreateActionModel" | "KanbanCardViewActionModel"; export declare function getKanbanPopupActionUid(kanbanUid: string, actionKey: KanbanPopupActionKey): string; export declare function getKanbanBlockResourceInit(blockNode: any): any; export declare function buildKanbanInitialStepParams(input: { stepParams?: Record; props?: Record; settings?: Record; }): Record; export declare function buildKanbanInitialItemProps(input: { props?: Record; settings?: Record; }): _.Dictionary; export declare function buildKanbanInitialItemStepParams(input: { stepParams?: Record; props?: Record; settings?: Record; }): Record; export declare function getKanbanPopupStoredSettings(blockNode: any, actionKey: KanbanPopupActionKey): Record; export declare function buildKanbanPopupOpenView(input: { blockNode: any; actionKey: KanbanPopupActionKey; resourceInit?: Record; popupSettings?: Record; }): _.Dictionary; export declare function normalizeKanbanPopupConfigureValue(input: { actionName: string; blockUid: string; actionKey: KanbanPopupActionKey; value: any; transaction?: any; normalizeOpenView: HiddenPopupOpenViewNormalizer; }): Promise>; export declare function resolveKanbanInitialPopupOverride(settings: Record | undefined, primaryKey: 'quickCreatePopup' | 'cardPopup', legacyKey: 'quickCreatePopupSettings' | 'cardPopupSettings'): any; export declare function mergeKanbanPopupSettings(actionKey: KanbanPopupActionKey, current: any, value: any, blockUid?: string): Record; export declare function stripKanbanPopupTargetSettingsForResourceChange(actionKey: KanbanPopupActionKey, popupSettings?: Record, blockUid?: string): Record; export declare function replaceKanbanStoredPopupSettings(runtime: Pick, blockNode: any, actionKey: KanbanPopupActionKey, popupSettings: Record, transaction?: any): Promise; export declare function ensureKanbanBlockPopupHosts(runtime: HiddenPopupHostRuntime, blockNode: any, transaction?: any, popupSettingsOverrides?: Partial | undefined>>, options?: { displayFallbackOpenViews?: Partial | undefined>>; }): Promise; export declare function projectKanbanBlockPopupHosts(node: T): T; export declare function projectKanbanBlockPopupHostsInTree(node: T): T;