@nocobase/client 1.3.21-beta → 1.3.23-beta

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.
@@ -23,28 +23,28 @@ export declare const getDateRanges: (props?: {
23
23
  shouldBeString?: boolean;
24
24
  }) => {
25
25
  now: () => any;
26
- today: () => any;
27
- yesterday: () => any;
28
- tomorrow: () => any;
29
- thisWeek: () => any;
30
- lastWeek: () => any;
31
- nextWeek: () => any;
32
- thisIsoWeek: () => any;
33
- lastIsoWeek: () => any;
34
- nextIsoWeek: () => any;
35
- thisMonth: () => any;
36
- lastMonth: () => any;
37
- nextMonth: () => any;
38
- thisQuarter: () => any;
39
- lastQuarter: () => any;
40
- nextQuarter: () => any;
41
- thisYear: () => any;
42
- lastYear: () => any;
43
- nextYear: () => any;
44
- last7Days: () => any;
45
- next7Days: () => any;
46
- last30Days: () => any;
47
- next30Days: () => any;
48
- last90Days: () => any;
49
- next90Days: () => any;
26
+ today: (params?: any) => any;
27
+ yesterday: (params?: any) => any;
28
+ tomorrow: (params?: any) => any;
29
+ thisWeek: (params?: any) => any;
30
+ lastWeek: (params?: any) => any;
31
+ nextWeek: (params?: any) => any;
32
+ thisIsoWeek: (params?: any) => any;
33
+ lastIsoWeek: (params?: any) => any;
34
+ nextIsoWeek: (params?: any) => any;
35
+ thisMonth: (params?: any) => any;
36
+ lastMonth: (params?: any) => any;
37
+ nextMonth: (params?: any) => any;
38
+ thisQuarter: (params?: any) => any;
39
+ lastQuarter: (params?: any) => any;
40
+ nextQuarter: (params?: any) => any;
41
+ thisYear: (params?: any) => any;
42
+ lastYear: (params?: any) => any;
43
+ nextYear: (params?: any) => any;
44
+ last7Days: (params?: any) => any;
45
+ next7Days: (params?: any) => any;
46
+ last30Days: (params?: any) => any;
47
+ next30Days: (params?: any) => any;
48
+ last90Days: (params?: any) => any;
49
+ next90Days: (params?: any) => any;
50
50
  };
@@ -12,6 +12,6 @@ export * from './FixedBlockDesignerItem';
12
12
  export * from './Page';
13
13
  export * from './Page.Settings';
14
14
  export { PagePopups } from './PagePopups';
15
- export { storePopupContext } from './pagePopupUtils';
15
+ export { storePopupContext, getStoredPopupContext } from './pagePopupUtils';
16
16
  export * from './PageTab.Settings';
17
17
  export { PopupSettingsProvider } from './PopupSettingsProvider';
@@ -11,6 +11,10 @@ export interface PopupContext {
11
11
  dataSource: string;
12
12
  collection?: string;
13
13
  association?: string;
14
+ /**
15
+ * if true, the context will never be updated
16
+ */
17
+ doNotUpdateContext?: boolean;
14
18
  }
15
19
  export declare const CONTEXT_SCHEMA_KEY = "x-action-context";
16
20
  /**
@@ -21,7 +25,7 @@ export declare const usePopupContextInActionOrAssociationField: () => {
21
25
  /**
22
26
  * update the value of the x-nb-popup-context field in the popup schema
23
27
  */
24
- updatePopupContext: (context: PopupContext, customSchema?: ISchema) => Promise<any>;
28
+ updatePopupContext: (newContext: PopupContext, customSchema?: ISchema) => Promise<any>;
25
29
  };
26
30
  /**
27
31
  * @param fieldSchema support only schema of Action or AssociationField, because it depends on a specific schema structure
@@ -59,30 +59,30 @@ export declare const useDatetimeVariable: ({ operator, schema, noDisabled, targe
59
59
  };
60
60
  datetimeCtx: {
61
61
  now: () => any;
62
- today: () => any;
63
- yesterday: () => any;
64
- tomorrow: () => any;
65
- thisWeek: () => any;
66
- lastWeek: () => any;
67
- nextWeek: () => any;
68
- thisIsoWeek: () => any;
69
- lastIsoWeek: () => any;
70
- nextIsoWeek: () => any;
71
- thisMonth: () => any;
72
- lastMonth: () => any;
73
- nextMonth: () => any;
74
- thisQuarter: () => any;
75
- lastQuarter: () => any;
76
- nextQuarter: () => any;
77
- thisYear: () => any;
78
- lastYear: () => any;
79
- nextYear: () => any;
80
- last7Days: () => any;
81
- next7Days: () => any;
82
- last30Days: () => any;
83
- next30Days: () => any;
84
- last90Days: () => any;
85
- next90Days: () => any;
62
+ today: (params?: any) => any;
63
+ yesterday: (params?: any) => any;
64
+ tomorrow: (params?: any) => any;
65
+ thisWeek: (params?: any) => any;
66
+ lastWeek: (params?: any) => any;
67
+ nextWeek: (params?: any) => any;
68
+ thisIsoWeek: (params?: any) => any;
69
+ lastIsoWeek: (params?: any) => any;
70
+ nextIsoWeek: (params?: any) => any;
71
+ thisMonth: (params?: any) => any;
72
+ lastMonth: (params?: any) => any;
73
+ nextMonth: (params?: any) => any;
74
+ thisQuarter: (params?: any) => any;
75
+ lastQuarter: (params?: any) => any;
76
+ nextQuarter: (params?: any) => any;
77
+ thisYear: (params?: any) => any;
78
+ lastYear: (params?: any) => any;
79
+ nextYear: (params?: any) => any;
80
+ last7Days: (params?: any) => any;
81
+ next7Days: (params?: any) => any;
82
+ last30Days: (params?: any) => any;
83
+ next30Days: (params?: any) => any;
84
+ last90Days: (params?: any) => any;
85
+ next90Days: (params?: any) => any;
86
86
  };
87
87
  };
88
88
  export {};
@@ -41,6 +41,10 @@ export interface VariablesContextType {
41
41
  appends?: string[];
42
42
  /** do not request when the association field is empty */
43
43
  doNotRequest?: boolean;
44
+ /**
45
+ * The operator related to the current field, provided when parsing the default value of the field
46
+ */
47
+ fieldOperator?: string | void;
44
48
  }) => Promise<{
45
49
  value: any;
46
50
  /**