@nocobase/client 1.5.0-beta.9 → 1.5.0

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.
Files changed (36) hide show
  1. package/es/appInfo/CurrentAppInfoProvider.d.ts +1 -0
  2. package/es/application/Application.d.ts +13 -0
  3. package/es/block-provider/BlockProvider.d.ts +2 -2
  4. package/es/collection-manager/interfaces/checkbox.d.ts +20 -0
  5. package/es/collection-manager/interfaces/properties/operators.d.ts +20 -0
  6. package/es/collection-manager/templates/sql.d.ts +13 -13
  7. package/es/collection-manager/templates/view.d.ts +2 -2
  8. package/es/index.mjs +4489 -4044
  9. package/es/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.d.ts +2 -0
  10. package/es/modules/blocks/filter-blocks/FilterCollectionField.d.ts +15 -0
  11. package/es/schema-component/antd/association-field/InternalViewer.d.ts +3 -0
  12. package/es/schema-component/antd/association-field/Table.d.ts +1 -1
  13. package/es/schema-component/antd/date-picker/util.d.ts +1 -0
  14. package/es/schema-component/antd/form-item/hooks/useSpecialCase.d.ts +6 -2
  15. package/es/schema-component/antd/form-v2/Templates.d.ts +1 -1
  16. package/es/schema-component/antd/password/utils.d.ts +1 -1
  17. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
  18. package/es/schema-component/antd/time-picker/TimePicker.d.ts +2 -0
  19. package/es/schema-component/antd/unix-timestamp/UnixTimestamp.d.ts +1 -0
  20. package/es/schema-component/antd/upload/placeholder.d.ts +1 -1
  21. package/es/schema-component/antd/upload/shared.d.ts +2 -2
  22. package/es/schema-component/common/utils/uitls.d.ts +0 -6
  23. package/es/{schema-component/antd/table-v2/RenderTextInCell.d.ts → schema-settings/SchemaSettingsDateRange.d.ts} +5 -5
  24. package/es/schema-settings/VariableInput/hooks/useParentRecordVariable.d.ts +2 -2
  25. package/es/schema-settings/VariableInput/hooks/useRecordVariable.d.ts +7 -0
  26. package/lib/index.js +134 -137
  27. package/lib/locale/en-US.js +8 -0
  28. package/lib/locale/es-ES.js +8 -0
  29. package/lib/locale/fr-FR.js +8 -0
  30. package/lib/locale/ja-JP.js +8 -0
  31. package/lib/locale/ko-KR.js +8 -0
  32. package/lib/locale/pt-BR.js +8 -0
  33. package/lib/locale/uk-UA.js +8 -0
  34. package/lib/locale/zh-CN.js +16 -2
  35. package/lib/locale/zh-TW.js +8 -0
  36. package/package.json +6 -6
@@ -16,6 +16,7 @@ export declare const useCurrentAppInfo: () => {
16
16
  lang: string;
17
17
  version: string;
18
18
  exportLimit?: number;
19
+ name: string;
19
20
  };
20
21
  };
21
22
  export declare const CurrentAppInfoProvider: (props: any) => React.JSX.Element;
@@ -52,6 +52,7 @@ export interface ApplicationOptions {
52
52
  }
53
53
  export declare class Application {
54
54
  protected options: ApplicationOptions;
55
+ eventBus: EventTarget;
55
56
  providers: ComponentAndProps[];
56
57
  router: RouterManager;
57
58
  scopes: Record<string, any>;
@@ -72,9 +73,19 @@ export declare class Application {
72
73
  maintained: boolean;
73
74
  maintaining: boolean;
74
75
  error: any;
76
+ hasLoadError: boolean;
77
+ private wsAuthorized;
75
78
  get pm(): PluginManager;
76
79
  get disableAcl(): boolean;
80
+ get isWsAuthorized(): boolean;
81
+ setWsAuthorized(authorized: boolean): void;
77
82
  constructor(options?: ApplicationOptions);
83
+ private initListeners;
84
+ protected setTokenInWebSocket(options: {
85
+ token: string;
86
+ authenticator: string;
87
+ }): void;
88
+ setMaintaining(maintaining: boolean): void;
78
89
  private initRequireJs;
79
90
  private addDefaultProviders;
80
91
  private addReactRouterComponents;
@@ -84,6 +95,7 @@ export declare class Application {
84
95
  getPublicPath(): string;
85
96
  getApiUrl(pathname?: string): string;
86
97
  getRouteUrl(pathname: string): string;
98
+ getHref(pathname: string): string;
87
99
  getCollectionManager(dataSource?: string): import("../data-source").CollectionManager;
88
100
  /**
89
101
  * @internal
@@ -93,6 +105,7 @@ export declare class Application {
93
105
  addProvider<T = any>(component: ComponentType, props?: T): number;
94
106
  addProviders(providers: (ComponentType | [ComponentType, any])[]): void;
95
107
  load(): Promise<void>;
108
+ loadWebSocket(): Promise<void>;
96
109
  getComponent<T = any>(Component: ComponentTypeAndString<T>, isShowError?: boolean): ComponentType<T> | undefined;
97
110
  renderComponent<T extends {}>(Component: ComponentTypeAndString, props?: T, children?: ReactNode): ReactElement;
98
111
  /**
@@ -102,7 +102,7 @@ export declare const BlockProvider: (props: {
102
102
  * @returns
103
103
  */
104
104
  export declare const useBlockAssociationContext: () => any;
105
- export declare const useFilterByTk: () => any;
105
+ export declare const useFilterByTk: (blockProps?: any) => any;
106
106
  /**
107
107
  * @deprecated
108
108
  */
@@ -116,7 +116,7 @@ export declare const useSourceIdFromParentRecord: () => any;
116
116
  * @internal
117
117
  * @returns
118
118
  */
119
- export declare const useParamsFromRecord: () => {
119
+ export declare const useParamsFromRecord: (props?: any) => {
120
120
  filterByTk: any;
121
121
  };
122
122
  export declare const RecordLink: (props: any) => React.JSX.Element;
@@ -48,10 +48,30 @@ export declare class CheckboxFieldInterface extends CollectionFieldInterface {
48
48
  value: string;
49
49
  selected: boolean;
50
50
  noValue: boolean;
51
+ schema: {
52
+ 'x-component': string;
53
+ 'x-component-props': {
54
+ multiple: boolean;
55
+ options: {
56
+ label: string;
57
+ value: boolean;
58
+ }[];
59
+ };
60
+ };
51
61
  } | {
52
62
  label: string;
53
63
  value: string;
54
64
  noValue: boolean;
65
+ schema: {
66
+ 'x-component': string;
67
+ 'x-component-props': {
68
+ multiple: boolean;
69
+ options: {
70
+ label: string;
71
+ value: boolean;
72
+ }[];
73
+ };
74
+ };
55
75
  selected?: undefined;
56
76
  })[];
57
77
  };
@@ -184,10 +184,30 @@ export declare const boolean: ({
184
184
  value: string;
185
185
  selected: boolean;
186
186
  noValue: boolean;
187
+ schema: {
188
+ 'x-component': string;
189
+ 'x-component-props': {
190
+ multiple: boolean;
191
+ options: {
192
+ label: string;
193
+ value: boolean;
194
+ }[];
195
+ };
196
+ };
187
197
  } | {
188
198
  label: string;
189
199
  value: string;
190
200
  noValue: boolean;
201
+ schema: {
202
+ 'x-component': string;
203
+ 'x-component-props': {
204
+ multiple: boolean;
205
+ options: {
206
+ label: string;
207
+ value: boolean;
208
+ }[];
209
+ };
210
+ };
191
211
  selected?: undefined;
192
212
  })[];
193
213
  export declare const tableoid: {
@@ -17,25 +17,14 @@ export declare class SqlCollectionTemplate extends CollectionTemplate {
17
17
  fields: any[];
18
18
  };
19
19
  configurableProperties: {
20
- filterTargetKey: {
21
- title: string;
22
- type: string;
23
- description: string;
24
- 'x-decorator': string;
25
- 'x-component': string;
26
- 'x-component-props': {
27
- multiple: boolean;
28
- };
29
- 'x-reactions': string[];
30
- };
31
20
  name: any;
32
21
  title: any;
33
22
  description: any;
23
+ category: any;
34
24
  createdBy: any;
35
- createdAt: any;
36
25
  updatedBy: any;
26
+ createdAt: any;
37
27
  updatedAt: any;
38
- category: any;
39
28
  sortable: any;
40
29
  inherits: any;
41
30
  autoGenId: any;
@@ -84,5 +73,16 @@ export declare class SqlCollectionTemplate extends CollectionTemplate {
84
73
  };
85
74
  };
86
75
  };
76
+ filterTargetKey: {
77
+ title: string;
78
+ type: string;
79
+ description: string;
80
+ 'x-decorator': string;
81
+ 'x-component': string;
82
+ 'x-component-props': {
83
+ multiple: boolean;
84
+ };
85
+ 'x-reactions': string[];
86
+ };
87
87
  };
88
88
  }
@@ -21,11 +21,11 @@ export declare class ViewCollectionTemplate extends CollectionTemplate {
21
21
  name: any;
22
22
  title: any;
23
23
  description: any;
24
+ category: any;
24
25
  createdBy: any;
25
- createdAt: any;
26
26
  updatedBy: any;
27
+ createdAt: any;
27
28
  updatedAt: any;
28
- category: any;
29
29
  sortable: any;
30
30
  inherits: any;
31
31
  autoGenId: any;