@nocobase/plugin-flow-engine 2.1.0-alpha.20 → 2.1.0-alpha.22
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.
- package/dist/externalVersion.js +11 -10
- package/dist/node_modules/ses/dist/ses.cjs +1 -1
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/index.cjs +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-surfaces/action-scope.d.ts +1 -0
- package/dist/server/flow-surfaces/action-scope.js +4 -0
- package/dist/server/flow-surfaces/apply/compiler.js +1 -1
- package/dist/server/flow-surfaces/approval/builder.js +8 -8
- package/dist/server/flow-surfaces/blueprint/compile-blocks.js +192 -29
- package/dist/server/flow-surfaces/blueprint/defaults.d.ts +26 -0
- package/dist/server/flow-surfaces/blueprint/defaults.js +133 -0
- package/dist/server/flow-surfaces/blueprint/index.d.ts +1 -1
- package/dist/server/flow-surfaces/blueprint/normalize-document.js +121 -1
- package/dist/server/flow-surfaces/blueprint/public-types.d.ts +32 -0
- package/dist/server/flow-surfaces/builder.d.ts +2 -2
- package/dist/server/flow-surfaces/builder.js +148 -50
- package/dist/server/flow-surfaces/catalog.js +276 -34
- package/dist/server/flow-surfaces/compose-compiler.d.ts +2 -0
- package/dist/server/flow-surfaces/compose-compiler.js +5 -1
- package/dist/server/flow-surfaces/configure-options.js +88 -12
- package/dist/server/flow-surfaces/contract-guard.js +60 -69
- package/dist/server/flow-surfaces/default-action-popup.d.ts +11 -1
- package/dist/server/flow-surfaces/default-action-popup.js +72 -12
- package/dist/server/flow-surfaces/default-block-actions.js +8 -1
- package/dist/server/flow-surfaces/filter-group.d.ts +15 -0
- package/dist/server/flow-surfaces/filter-group.js +94 -0
- package/dist/server/flow-surfaces/index.js +70 -2
- package/dist/server/flow-surfaces/node-use-sets.js +6 -1
- package/dist/server/flow-surfaces/placement.js +3 -0
- package/dist/server/flow-surfaces/public-data-surface-default-filter.d.ts +20 -0
- package/dist/server/flow-surfaces/public-data-surface-default-filter.js +111 -0
- package/dist/server/flow-surfaces/reaction/registry.d.ts +7 -0
- package/dist/server/flow-surfaces/reaction/registry.js +7 -0
- package/dist/server/flow-surfaces/service-utils.d.ts +7 -0
- package/dist/server/flow-surfaces/service-utils.js +58 -9
- package/dist/server/flow-surfaces/service.d.ts +73 -3
- package/dist/server/flow-surfaces/service.js +1794 -162
- package/dist/server/flow-surfaces/support-matrix.d.ts +5 -2
- package/dist/server/flow-surfaces/support-matrix.js +16 -3
- package/dist/server/flow-surfaces/surface-context.js +2 -1
- package/dist/server/flow-surfaces/template-display.d.ts +20 -0
- package/dist/server/flow-surfaces/template-display.js +289 -0
- package/dist/server/flow-surfaces/types.d.ts +1 -0
- package/dist/swagger/flow-surfaces.d.ts +160 -0
- package/dist/swagger/flow-surfaces.examples.d.ts +117 -11
- package/dist/swagger/flow-surfaces.examples.js +152 -1
- package/dist/swagger/flow-surfaces.js +141 -21
- package/dist/swagger/index.d.ts +160 -0
- package/package.json +2 -2
|
@@ -10,6 +10,7 @@ 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
14
|
import type { FlowSurfaceActionLinkageRule, FlowSurfaceBlockLinkageRule, FlowSurfaceFieldLinkageRule, FlowSurfaceFieldValueRule, FlowSurfaceGetReactionMetaResult, FlowSurfaceGetReactionMetaValues, FlowSurfaceReactionWriteResult, FlowSurfaceReactionWriteValues } from './reaction/types';
|
|
14
15
|
import { type FlowSurfaceTemplateListPopupActionContext, type FlowSurfaceTemplateListValues, type FlowSurfaceTemplateRow } from './template-service-utils';
|
|
15
16
|
import type { FlowSurfaceApplyValues, FlowSurfaceCatalogResponse, FlowSurfaceCatalogValues, FlowSurfaceComposeValues, FlowSurfaceConfigureValues, FlowSurfaceContextValues, FlowSurfaceDescribeValues, FlowSurfaceMutateValues } from './types';
|
|
@@ -88,6 +89,7 @@ export declare class FlowSurfacesService {
|
|
|
88
89
|
private normalizePopupScene;
|
|
89
90
|
private resolvePopupScene;
|
|
90
91
|
private resolvePopupHostProfileContext;
|
|
92
|
+
private popupHostUsesDefaultRecordContext;
|
|
91
93
|
private buildPopupBlockResourceBindings;
|
|
92
94
|
private listPopupAssociatedRecordFields;
|
|
93
95
|
private resolvePopupBlockProfile;
|
|
@@ -205,6 +207,7 @@ export declare class FlowSurfacesService {
|
|
|
205
207
|
private withFlowTemplateUsageCounts;
|
|
206
208
|
listTemplates(values?: FlowSurfaceTemplateListValues, options?: {
|
|
207
209
|
transaction?: any;
|
|
210
|
+
t?: TemplateTranslate;
|
|
208
211
|
}): Promise<{
|
|
209
212
|
rows: FlowSurfaceTemplateRow[];
|
|
210
213
|
count: number;
|
|
@@ -214,10 +217,12 @@ export declare class FlowSurfacesService {
|
|
|
214
217
|
}>;
|
|
215
218
|
getTemplate(values: Record<string, any>, options?: {
|
|
216
219
|
transaction?: any;
|
|
220
|
+
t?: TemplateTranslate;
|
|
217
221
|
}): Promise<FlowSurfaceTemplateRow>;
|
|
218
222
|
private inferSaveTemplateTarget;
|
|
219
223
|
private createFlowTemplateReferenceBlockModel;
|
|
220
224
|
private buildPopupTemplateReferenceOpenView;
|
|
225
|
+
private hydrateDetachedPopupTemplateSourceContext;
|
|
221
226
|
private clearFlowTemplateUsagesByModelUids;
|
|
222
227
|
private clearFlowTemplateUsagesForNodeTree;
|
|
223
228
|
private syncFlowTemplateUsagesForNodeTree;
|
|
@@ -355,6 +360,9 @@ export declare class FlowSurfacesService {
|
|
|
355
360
|
private addBlockFromFieldsTemplate;
|
|
356
361
|
private addBlockFromTemplate;
|
|
357
362
|
private addFieldFromTemplate;
|
|
363
|
+
private normalizeDefaultActionSettings;
|
|
364
|
+
private normalizeDefaultFilterActionSettings;
|
|
365
|
+
private backfillBlockDefaultFilterIntoDefaultActionSettings;
|
|
358
366
|
addBlock(values: Record<string, any>, options?: {
|
|
359
367
|
transaction?: any;
|
|
360
368
|
deferAutoLayout?: boolean;
|
|
@@ -372,7 +380,7 @@ export declare class FlowSurfacesService {
|
|
|
372
380
|
autoCompleteDefaultPopup?: boolean;
|
|
373
381
|
popupTemplateAliasSession?: FlowSurfacePopupTemplateAliasSession;
|
|
374
382
|
}): Promise<{
|
|
375
|
-
uid:
|
|
383
|
+
uid: any;
|
|
376
384
|
parentUid: any;
|
|
377
385
|
subKey: string;
|
|
378
386
|
scope: import("./types").FlowSurfaceActionScope;
|
|
@@ -432,8 +440,12 @@ export declare class FlowSurfacesService {
|
|
|
432
440
|
private resolveFieldBindingContext;
|
|
433
441
|
private resolveAutoGeneratedFieldPopupTemplateMetadata;
|
|
434
442
|
private shouldAutoSaveDefaultActionPopupTemplate;
|
|
443
|
+
private shouldImplicitlyTemplateDefaultActionPopup;
|
|
444
|
+
private buildImplicitTemplateDefaultActionPopup;
|
|
435
445
|
private resolveAutoGeneratedActionPopupTemplateMetadata;
|
|
436
446
|
private savePopupAsTemplate;
|
|
447
|
+
private normalizeOptionalPopupTitle;
|
|
448
|
+
private resolveDefaultActionPopupTemplateOpenViewTitle;
|
|
437
449
|
private buildInlinePopupTemplateOpenView;
|
|
438
450
|
private peekInlineFieldSettingsOpenView;
|
|
439
451
|
private assertOpenViewUidTarget;
|
|
@@ -452,6 +464,8 @@ export declare class FlowSurfacesService {
|
|
|
452
464
|
private tryResolvePopupTemplateForHost;
|
|
453
465
|
private getFlowTemplateOrThrow;
|
|
454
466
|
private buildPopupTemplateOpenView;
|
|
467
|
+
private isReferencedPopupTemplateOpenView;
|
|
468
|
+
private isEditableDefaultActionPopupTemplateReference;
|
|
455
469
|
private resolveExternalPopupHostUid;
|
|
456
470
|
private resolveDetachedPopupCopyUid;
|
|
457
471
|
private cleanupLocalPopupSurfaceForHost;
|
|
@@ -472,13 +486,24 @@ export declare class FlowSurfacesService {
|
|
|
472
486
|
private applyInlineStandaloneFieldSettings;
|
|
473
487
|
private getActionButtonTitle;
|
|
474
488
|
private isSemanticallyEmptyInlinePopup;
|
|
489
|
+
private isEmptyInlinePopupPayload;
|
|
475
490
|
private shouldAutoCompleteDefaultFieldPopup;
|
|
476
|
-
private
|
|
491
|
+
private getApplyBlueprintPopupDefaultsMetadata;
|
|
492
|
+
private getApplyBlueprintDefaultFieldGroups;
|
|
493
|
+
private pickDefaultPopupFields;
|
|
494
|
+
private resolveApplyBlueprintDefaultPopupMetadata;
|
|
495
|
+
private resolveApplyBlueprintAssociationDefaultContext;
|
|
496
|
+
private resolveGeneratedDefaultFieldPopupName;
|
|
497
|
+
private resolveGeneratedDefaultFieldPopupMetadata;
|
|
498
|
+
private buildDefaultFieldPopupFields;
|
|
477
499
|
private buildDefaultFieldPopupBlocks;
|
|
500
|
+
private syncDefaultFieldPopupOpenViewTitle;
|
|
478
501
|
private autoSaveDefaultFieldPopupAsTemplate;
|
|
479
502
|
private autoSaveDefaultActionPopupAsTemplate;
|
|
480
503
|
private shouldAutoCompleteDefaultActionPopup;
|
|
481
|
-
private
|
|
504
|
+
private resolveGeneratedDefaultActionPopupName;
|
|
505
|
+
private resolveGeneratedDefaultActionPopupMetadata;
|
|
506
|
+
private buildDefaultActionPopupFields;
|
|
482
507
|
private buildDefaultActionPopupNamespace;
|
|
483
508
|
private buildDefaultActionPopupKeyMap;
|
|
484
509
|
private remapDefaultActionPopupField;
|
|
@@ -491,6 +516,10 @@ export declare class FlowSurfacesService {
|
|
|
491
516
|
private resetDefaultActionPopupFormLinkageRules;
|
|
492
517
|
private resolvePopupTabTitle;
|
|
493
518
|
private syncDefaultActionPopupTabTitle;
|
|
519
|
+
private syncDefaultActionPopupTabTitleForHost;
|
|
520
|
+
private syncDefaultActionPopupCopiedTemplateTabTitle;
|
|
521
|
+
private syncDefaultActionPopupOpenViewTitle;
|
|
522
|
+
private hydrateLocalActionPopupCurrentRecordContext;
|
|
494
523
|
private applyDefaultActionPopupContent;
|
|
495
524
|
private applyInlineActionPopup;
|
|
496
525
|
updateSettings(values: Record<string, any>, options?: {
|
|
@@ -506,7 +535,12 @@ export declare class FlowSurfacesService {
|
|
|
506
535
|
uid: any;
|
|
507
536
|
updated: string[];
|
|
508
537
|
}>;
|
|
538
|
+
private syncFilterActionSettingsForUpdateSettings;
|
|
509
539
|
private syncMirroredStepParamsForUpdateSettings;
|
|
540
|
+
private normalizeCanonicalBlockHeaderWriteForUpdateSettings;
|
|
541
|
+
private syncCanonicalBlockHeaderForUpdateSettings;
|
|
542
|
+
private stripLegacyBlockHeaderChromeForUpdateSettings;
|
|
543
|
+
private syncMapHeightChromeForUpdateSettings;
|
|
510
544
|
private normalizeOpenViewForUpdateSettings;
|
|
511
545
|
private syncChartConfigureForUpdateSettings;
|
|
512
546
|
private validateChartConfigureForUpdateSettings;
|
|
@@ -603,7 +637,11 @@ export declare class FlowSurfacesService {
|
|
|
603
637
|
private buildInjectedComposeDefaultActionSpec;
|
|
604
638
|
private normalizeComposeFieldsLayout;
|
|
605
639
|
private normalizeComposeFieldsLayoutCell;
|
|
640
|
+
private buildAutoComposeFieldsLayoutRow;
|
|
641
|
+
private buildAutoComposeFieldsLayout;
|
|
642
|
+
private normalizeComposeFieldGroups;
|
|
606
643
|
private applyDefaultActionsForCreatedBlock;
|
|
644
|
+
private resolveReusableSingletonAction;
|
|
607
645
|
private normalizeComposeBlock;
|
|
608
646
|
private normalizeComposeBlocks;
|
|
609
647
|
private resolveComposeActionContainerUid;
|
|
@@ -623,6 +661,7 @@ export declare class FlowSurfacesService {
|
|
|
623
661
|
private configurePage;
|
|
624
662
|
private configureTab;
|
|
625
663
|
private configureTableBlock;
|
|
664
|
+
private configureCalendarBlock;
|
|
626
665
|
private configureFormBlock;
|
|
627
666
|
private configureDetailsBlock;
|
|
628
667
|
private configureFilterFormBlock;
|
|
@@ -633,12 +672,16 @@ export declare class FlowSurfacesService {
|
|
|
633
672
|
private configureChartBlock;
|
|
634
673
|
private stripBasicSqlVisualWhenPreviewUnavailable;
|
|
635
674
|
private configureActionPanelBlock;
|
|
675
|
+
private configureMapBlock;
|
|
676
|
+
private configureCommentsBlock;
|
|
636
677
|
private configureJSBlock;
|
|
637
678
|
private configureActionColumn;
|
|
638
679
|
private configureJSColumn;
|
|
639
680
|
private configureJSItem;
|
|
681
|
+
private configureDividerItem;
|
|
640
682
|
private configureFieldWrapper;
|
|
641
683
|
private configureFieldNode;
|
|
684
|
+
private normalizeFilterActionDefaultFilterValue;
|
|
642
685
|
private configureActionNode;
|
|
643
686
|
private buildFieldCatalog;
|
|
644
687
|
private getFieldMenuCatalogMode;
|
|
@@ -677,6 +720,33 @@ export declare class FlowSurfacesService {
|
|
|
677
720
|
private resolvePopupSourceRecordCollectionName;
|
|
678
721
|
private resolvePopupContextLevel;
|
|
679
722
|
private getCollection;
|
|
723
|
+
private normalizeCalendarFieldPathInput;
|
|
724
|
+
private isCalendarDateField;
|
|
725
|
+
private isCalendarTitleField;
|
|
726
|
+
private isCalendarColorField;
|
|
727
|
+
private getCalendarPluginFieldCapabilities;
|
|
728
|
+
private getCalendarTitleFieldInterfaces;
|
|
729
|
+
private getCalendarColorFieldInterfaces;
|
|
730
|
+
private getCalendarDateFieldTypes;
|
|
731
|
+
private getCalendarTitleFallbackFieldName;
|
|
732
|
+
private isCalendarTitleFallbackField;
|
|
733
|
+
private getCalendarDateFields;
|
|
734
|
+
private resolveCalendarDefaultFieldNames;
|
|
735
|
+
private getCalendarCollectionOrThrow;
|
|
736
|
+
private assertCalendarCollectionCompatible;
|
|
737
|
+
private assertCalendarFieldBinding;
|
|
738
|
+
private normalizeCalendarFieldNamesForCollection;
|
|
739
|
+
private normalizeCalendarPopupSettings;
|
|
740
|
+
private getCalendarPopupActionUse;
|
|
741
|
+
private getCalendarPopupPropKey;
|
|
742
|
+
private getCalendarPopupActionUid;
|
|
743
|
+
private getCalendarBlockResourceInit;
|
|
744
|
+
private buildCalendarPopupOpenView;
|
|
745
|
+
private normalizeCalendarPopupConfigureValue;
|
|
746
|
+
private buildCalendarInitialBlockProps;
|
|
747
|
+
private ensureCalendarBlockPopupHosts;
|
|
748
|
+
private ensureCalendarBlockPopupHostsInTree;
|
|
749
|
+
private validateCalendarBlockState;
|
|
680
750
|
private resolveFieldDefinition;
|
|
681
751
|
private getAssociationDefaultTitleFieldName;
|
|
682
752
|
private getAssociationTitleFieldTargetCollection;
|