@nocobase/client 1.6.0-beta.11 → 1.6.0-beta.13

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 (37) hide show
  1. package/es/api-client/hooks/useRequest.d.ts +2 -0
  2. package/es/application/Application.d.ts +1 -1
  3. package/es/application/hooks/useAppSpin.d.ts +1 -1
  4. package/es/application/schema-initializer/hooks/useGetSchemaInitializerMenuItems.d.ts +1 -1
  5. package/es/collection-manager/hooks/useCollectionManager_deprecated.d.ts +4 -4
  6. package/es/data-source/collection-template/CollectionTemplate.d.ts +1 -1
  7. package/es/hooks/useMenuItem.d.ts +3 -1
  8. package/es/index.mjs +204 -131
  9. package/es/lazy-helper/index.d.ts +6 -5
  10. package/es/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.d.ts +3 -1
  11. package/es/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.d.ts +3 -1
  12. package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +8 -2
  13. package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.d.ts +6 -2
  14. package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.d.ts +8 -2
  15. package/es/schema-component/antd/action/hooks.d.ts +1 -1
  16. package/es/schema-component/antd/form-item/FormItem.Settings.d.ts +57 -1
  17. package/es/schema-component/antd/menu/Menu.d.ts +3 -3
  18. package/es/schema-component/antd/pagination/index.d.ts +5 -1
  19. package/es/schema-component/antd/record-picker/util.d.ts +1 -1
  20. package/es/schema-component/antd/select/ReadPretty.d.ts +5 -1
  21. package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +3 -1
  22. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +3 -1
  23. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +6 -2
  24. package/es/schema-initializer/items/RecordAssociationGridCardBlockInitializer.d.ts +3 -1
  25. package/es/schema-initializer/items/RecordAssociationListBlockInitializer.d.ts +3 -1
  26. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +6 -2
  27. package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +3 -1
  28. package/es/schema-settings/EnableChildCollections/index.d.ts +3 -1
  29. package/es/schema-settings/LinkageRules/index.d.ts +5 -1
  30. package/es/schema-settings/SchemaSettingAccessControl.d.ts +15 -0
  31. package/es/schema-settings/VariableInput/VariableInput.d.ts +3 -1
  32. package/es/schema-settings/index.d.ts +1 -0
  33. package/es/user/CurrentUserProvider.d.ts +0 -4
  34. package/lib/index.js +118 -121
  35. package/lib/locale/it-IT.js +861 -0
  36. package/lib/locale/zh-CN.js +1 -1
  37. package/package.json +6 -6
@@ -17,6 +17,8 @@ export type ResourceActionOptions<P = any> = {
17
17
  action?: string;
18
18
  params?: P;
19
19
  url?: string;
20
+ skipNotify?: boolean | ((error: any) => boolean);
21
+ skipAuth?: boolean;
20
22
  };
21
23
  export type UseRequestService<P> = AxiosRequestConfig<P> | ResourceActionOptions<P> | FunctionService;
22
24
  export type UseRequestOptions = Options<any, any> & {
@@ -123,7 +123,7 @@ export declare class Application {
123
123
  getRootComponent(): React.FC<{
124
124
  children?: React.ReactNode;
125
125
  }>;
126
- mount(containerOrSelector: Element | ShadowRoot | string): any;
126
+ mount(containerOrSelector: Element | ShadowRoot | string): import("react-dom/client").Root;
127
127
  addFieldInterfaces(fieldInterfaceClasses?: CollectionFieldInterfaceFactory[]): void;
128
128
  addFieldInterfaceComponentOption(fieldName: string, componentOption: CollectionFieldInterfaceComponentOption): void;
129
129
  addGlobalVar(key: string, value: any): void;
@@ -8,5 +8,5 @@
8
8
  */
9
9
  import React from 'react';
10
10
  export declare const useAppSpin: () => {
11
- render: () => React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.FunctionComponentElement<import("antd").SpinProps>;
11
+ render: () => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
12
12
  };
@@ -13,4 +13,4 @@ export declare function useSchemaInitializerMenuItems(items: any[], name?: strin
13
13
  /**
14
14
  * @internal
15
15
  */
16
- export declare function useGetSchemaInitializerMenuItems(onClick?: (args: any) => void): any;
16
+ export declare function useGetSchemaInitializerMenuItems(onClick?: (args: any) => void): (items: any[], parentKey: string) => any;
@@ -15,12 +15,12 @@ export declare const useCollectionManager_deprecated: (dataSourceName?: string)
15
15
  interfaces: {};
16
16
  collections: import("../..").Collection[];
17
17
  templates: import("../..").CollectionTemplate[];
18
- getTemplate: (name?: any) => any;
19
- getInterface: (name: string) => any;
18
+ getTemplate: (name?: string) => import("../..").CollectionTemplate;
19
+ getInterface: (name: string) => import("../..").CollectionFieldInterface;
20
20
  getCollections: () => CollectionOptions[];
21
21
  getParentCollectionFields: (parentCollection: any, currentCollection: any, customDataSource?: string) => import("../..").CollectionFieldOptions[];
22
22
  getInheritCollections: (name: any, customDataSource?: string) => string[];
23
- getChildrenCollections: (name: string, isSupportView?: any, customDataSource?: string) => import("../..").Collection[];
23
+ getChildrenCollections: (name: string, isSupportView?: boolean, customDataSource?: string) => import("../..").Collection[];
24
24
  refreshCM: () => Promise<void>;
25
25
  get: (name: any, customDataSource?: string) => CollectionOptions;
26
26
  getInheritedFields: (name: string, customDataSource?: string) => import("../..").CollectionFieldOptions[];
@@ -58,5 +58,5 @@ export declare const useCollectionManager_deprecated: (dataSourceName?: string)
58
58
  getCollectionJoinField: (name: string, customDataSource?: string) => any;
59
59
  getAllCollectionsInheritChain: (collectionName: string, customDataSource?: string) => string[];
60
60
  getInheritCollectionsChain: (collectionName: string, customDataSource?: string) => () => string[];
61
- isTitleField: (field: any) => any;
61
+ isTitleField: (field: any) => boolean;
62
62
  };
@@ -54,7 +54,7 @@ export declare abstract class CollectionTemplate {
54
54
  /** UI configurable CollectionOptions parameters (fields for adding or editing Collection forms) */
55
55
  configurableProperties?: Record<string, ISchema>;
56
56
  /** Available field types for the current template */
57
- availableFieldInterfaces?: AvailableFieldInterfacesInclude | AvailableFieldInterfacesExclude;
57
+ availableFieldInterfaces?: AvailableFieldInterfacesInclude & AvailableFieldInterfacesExclude;
58
58
  /** Whether it is a divider */
59
59
  divider?: boolean;
60
60
  /** Template description */
@@ -37,7 +37,9 @@ export declare const useCollectMenuItems: () => {
37
37
  * @returns
38
38
  */
39
39
  export declare const useMenuItem: () => {
40
- Component: ({ limitCount }: any) => React.JSX.Element;
40
+ Component: ({ limitCount }: {
41
+ limitCount?: number;
42
+ }) => React.JSX.Element;
41
43
  getMenuItems: (Com: () => ReactNode) => Item[];
42
44
  getMenuItem: (Com: () => JSX.Element) => Item;
43
45
  clean: () => void;