@nocobase/plugin-flow-engine 2.1.0-alpha.27 → 2.1.0-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,9 +10,9 @@ import type { Plugin } from '@nocobase/server';
10
10
  import _ from 'lodash';
11
11
  import FlowModelRepository from '../repository';
12
12
  import { SurfaceLocator } from './locator';
13
- import { type TemplateTranslate } from './template-display';
13
+ import type { TemplateTranslate } from './template-display';
14
14
  import type { FlowSurfaceActionLinkageRule, FlowSurfaceBlockLinkageRule, FlowSurfaceFieldLinkageRule, FlowSurfaceFieldValueRule, FlowSurfaceGetReactionMetaResult, FlowSurfaceGetReactionMetaValues, FlowSurfaceReactionWriteResult, FlowSurfaceReactionWriteValues } from './reaction/types';
15
- import { type FlowSurfaceTemplateListPopupActionContext, type FlowSurfaceTemplateListValues, type FlowSurfaceTemplateRow } from './template-service-utils';
15
+ import type { FlowSurfaceTemplateListPopupActionContext, FlowSurfaceTemplateListValues, FlowSurfaceTemplateRow } from './template-service-utils';
16
16
  import type { FlowSurfaceApplyValues, FlowSurfaceCatalogResponse, FlowSurfaceCatalogValues, FlowSurfaceComposeValues, FlowSurfaceConfigureValues, FlowSurfaceContextValues, FlowSurfaceDescribeValues, FlowSurfaceMutateValues } from './types';
17
17
  type FlowSurfacePopupTemplateAliasSession = Map<string, string>;
18
18
  type FlowSurfaceAddFieldResult = {
@@ -48,6 +48,7 @@ export declare class FlowSurfacesService {
48
48
  private get surfaceContext();
49
49
  private get approvalRuntimeConfigService();
50
50
  private get approvalBlueprintService();
51
+ private get hiddenPopupRuntime();
51
52
  private setFlowModelNodeAsyncFlag;
52
53
  private loadEnabledPluginPackages;
53
54
  private resolveEnabledPluginPackages;
@@ -447,6 +448,9 @@ export declare class FlowSurfacesService {
447
448
  private resolveFieldBindingContext;
448
449
  private resolveAutoGeneratedFieldPopupTemplateMetadata;
449
450
  private shouldAutoSaveDefaultActionPopupTemplate;
451
+ private resolveDefaultActionPopupSemanticUse;
452
+ private getDefaultActionPopupConfigForNode;
453
+ private isDefaultActionPopupUseForNode;
450
454
  private shouldImplicitlyTemplateDefaultActionPopup;
451
455
  private buildImplicitTemplateDefaultActionPopup;
452
456
  private resolveAutoGeneratedActionPopupTemplateMetadata;
@@ -472,6 +476,7 @@ export declare class FlowSurfacesService {
472
476
  private getFlowTemplateOrThrow;
473
477
  private buildPopupTemplateOpenView;
474
478
  private isReferencedPopupTemplateOpenView;
479
+ private isPopupTemplateReferenceOpenViewState;
475
480
  private isEditableDefaultActionPopupTemplateReference;
476
481
  private resolveExternalPopupHostUid;
477
482
  private resolveDetachedPopupCopyUid;
@@ -533,9 +538,11 @@ export declare class FlowSurfacesService {
533
538
  updateSettings(values: Record<string, any>, options?: {
534
539
  transaction?: any;
535
540
  replaceChartCardSettings?: boolean;
541
+ replacePopupStepParamSubtrees?: boolean;
536
542
  openViewActionName?: string;
537
543
  popupTemplateHostUid?: string;
538
544
  popupActionContext?: FlowSurfaceTemplateListPopupActionContext;
545
+ skipHiddenPopupHostEnsure?: boolean;
539
546
  }): Promise<{
540
547
  uid: any;
541
548
  updated?: undefined;
@@ -543,6 +550,11 @@ export declare class FlowSurfacesService {
543
550
  uid: any;
544
551
  updated: string[];
545
552
  }>;
553
+ private syncCalendarPopupPropsForUpdateSettings;
554
+ private replaceExplicitPopupStepParamSubtreesForUpdateSettings;
555
+ private normalizePopupStepParamReplacementForUpdateSettings;
556
+ private stripPopupPropsFromPayload;
557
+ private syncKanbanPopupPropsForUpdateSettings;
546
558
  private syncFilterActionSettingsForUpdateSettings;
547
559
  private syncMirroredStepParamsForUpdateSettings;
548
560
  private syncUpdateActionAssignedValuesForUpdateSettings;
@@ -745,6 +757,12 @@ export declare class FlowSurfacesService {
745
757
  private resolveContextOwnerCollection;
746
758
  private resolveItemContextCollection;
747
759
  private resolvePopupHostOpenView;
760
+ private popupHostHasLocalContent;
761
+ private shouldAutoBindPopupTemplate;
762
+ private patchPopupOpenViewIfChanged;
763
+ private buildPopupOpenViewWithTemplate;
764
+ private completePopupHostDefaultContent;
765
+ private ensurePopupHostDefaultContent;
748
766
  private resolvePopupSourceRecordCollectionName;
749
767
  private resolvePopupContextLevel;
750
768
  private getCollection;
@@ -769,10 +787,14 @@ export declare class FlowSurfacesService {
769
787
  private buildKanbanInlineGroupOptions;
770
788
  private mergeKanbanInlineGroupOptions;
771
789
  private normalizeKanbanPopupSettings;
772
- private getKanbanPopupActionUse;
773
790
  private getKanbanPopupActionUid;
774
791
  private getKanbanBlockResourceInit;
792
+ private buildKanbanInitialStepParams;
793
+ private buildKanbanInitialItemProps;
794
+ private buildKanbanInitialItemStepParams;
775
795
  private getKanbanPopupStoredSettings;
796
+ private mergeKanbanPopupSettings;
797
+ private stripKanbanPopupTargetSettingsForResourceChange;
776
798
  private buildKanbanPopupOpenView;
777
799
  private normalizeKanbanPopupConfigureValue;
778
800
  private buildKanbanInitialBlockProps;
@@ -793,21 +815,27 @@ export declare class FlowSurfacesService {
793
815
  private assertCalendarFieldBinding;
794
816
  private normalizeCalendarFieldNamesForCollection;
795
817
  private normalizeCalendarPopupSettings;
796
- private getCalendarPopupActionUse;
797
- private getCalendarPopupPropKey;
798
- private getCalendarPopupActionUid;
799
818
  private getCalendarBlockResourceInit;
819
+ private getCalendarPopupStoredSettings;
820
+ private getCalendarPopupPropKey;
821
+ private buildCalendarInitialStepParams;
800
822
  private buildCalendarPopupOpenView;
823
+ private mergeCalendarPopupSettings;
824
+ private stripCalendarPopupTargetSettingsForResourceChange;
801
825
  private normalizeCalendarPopupConfigureValue;
826
+ private normalizeCalendarInlineSettingsForConfigure;
827
+ private omitHiddenPopupSettingsForConfigure;
828
+ private resolveCalendarInitialPopupOverride;
829
+ private resolveKanbanInitialPopupOverride;
802
830
  private buildCalendarInitialBlockProps;
803
831
  private ensureCalendarBlockPopupHosts;
804
- private ensureCalendarBlockPopupHostsInTree;
805
- private projectCalendarBlockPopupHosts;
806
832
  private projectCalendarBlockPopupHostsInTree;
833
+ private replaceKanbanStoredPopupSettings;
807
834
  private ensureKanbanBlockPopupHosts;
808
- private ensureKanbanBlockPopupHostsInTree;
809
- private projectKanbanBlockPopupHosts;
810
835
  private projectKanbanBlockPopupHostsInTree;
836
+ private resolveManagedPopupTargetUidForHiddenPopupBackfill;
837
+ private ensureHiddenPopupBlockHostsInManagedPopupTarget;
838
+ private ensureHiddenPopupBlockHostsInTree;
811
839
  private getCalendarSettingValue;
812
840
  private validateCalendarSettingValues;
813
841
  private validateCalendarBlockState;