@nocobase/client-v2 2.1.0-beta.34 → 2.1.0-beta.35

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.
@@ -28,6 +28,11 @@ type AuthTokenPayload = {
28
28
  token: string;
29
29
  authenticator: string | null;
30
30
  };
31
+ export type JsonLogic = {
32
+ apply: (logic: any, data?: any) => any;
33
+ addOperation: (name: string, fn?: any) => void;
34
+ rmOperation: (name: string) => void;
35
+ };
31
36
  export type DevDynamicImport = (packageName: string) => Promise<{
32
37
  default: PluginClass;
33
38
  }>;
@@ -73,6 +78,7 @@ export declare abstract class BaseApplication<TOptions extends BaseApplicationOp
73
78
  favicon: string;
74
79
  flowEngine: FlowEngine;
75
80
  dataSourceManager: any;
81
+ jsonLogic: JsonLogic;
76
82
  context: FlowEngineContext & {
77
83
  routeRepository: RouteRepository;
78
84
  appInfo: Promise<Record<string, any>>;
@@ -18,6 +18,8 @@ export type PluginData = {
18
18
  version: string;
19
19
  url: string;
20
20
  clientV2Url?: string;
21
+ devMode?: 'esm';
22
+ appDevDependencies?: string[];
21
23
  type: 'local' | 'upload' | 'npm';
22
24
  };
23
25
  export declare class PluginManager<TApp extends BaseApplication<any> = BaseApplication<any>> {
@@ -6,6 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
+ import type { PropertyMetaFactory } from '@nocobase/flow-engine';
9
10
  import React from 'react';
10
11
  import { FilterBlockModel } from '../../base/FilterBlockModel';
11
12
  export declare class FilterFormBlockModel extends FilterBlockModel<{
@@ -22,8 +23,11 @@ export declare class FilterFormBlockModel extends FilterBlockModel<{
22
23
  private removeTargetBlockListener?;
23
24
  private initialDefaultsPromise?;
24
25
  private initialRefreshHandledTargetIds;
26
+ private lastDefaultValueByFieldName;
27
+ private defaultValuesRefreshSeq;
25
28
  get form(): any;
26
29
  get title(): string;
30
+ protected createFormValuesMetaFactory(): PropertyMetaFactory;
27
31
  useHooksBeforeRender(): void;
28
32
  saveStepParams(): Promise<any>;
29
33
  addAppends(): void;
@@ -34,9 +38,13 @@ export declare class FilterFormBlockModel extends FilterBlockModel<{
34
38
  prepareInitialFilterValues(): Promise<boolean>;
35
39
  markInitialTargetRefreshHandled(targetId: string): void;
36
40
  private ensureFilterItemsBeforeRender;
41
+ private canApplyFormDefaultValue;
42
+ private matchDefaultValueCondition;
37
43
  applyFormDefaultValues(options?: {
38
44
  force?: boolean;
39
- }): Promise<void>;
45
+ refreshSeq?: number;
46
+ }): Promise<Record<string, any>>;
47
+ private handleFilterFormValuesChange;
40
48
  private handleTargetBlockRemoved;
41
49
  destroy(): Promise<boolean>;
42
50
  renderComponent(): React.JSX.Element;