@nocobase/client 1.7.0-beta.1 → 1.7.0-beta.11

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 (53) hide show
  1. package/es/acl/ACLProvider.d.ts +1 -0
  2. package/es/application/Application.d.ts +3 -1
  3. package/es/application/RouterManager.d.ts +3 -0
  4. package/es/application/hooks/index.d.ts +1 -0
  5. package/es/application/hooks/useGlobalVariable.d.ts +1 -0
  6. package/es/application/schema-initializer/components/SchemaInitializerItemSearchFields.d.ts +1 -1
  7. package/es/block-provider/hooks/index.d.ts +2 -0
  8. package/es/collection-manager/interfaces/textarea.d.ts +1 -0
  9. package/es/filter-provider/FilterProvider.d.ts +2 -0
  10. package/es/formily/NocoBaseRecursionField.d.ts +1 -0
  11. package/es/global-theme/type.d.ts +2 -0
  12. package/es/index.mjs +22399 -21614
  13. package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -1
  14. package/es/modules/fields/component/Select/selectComponentFieldSettings.d.ts +2 -0
  15. package/es/route-switch/antd/admin-layout/index.d.ts +4 -0
  16. package/es/{variables/utils/cacheLazyLoadedValues.d.ts → schema-component/antd/action/hooks/useGetAfterSuccessVariablesOptions.d.ts} +5 -2
  17. package/es/schema-component/antd/action/index.d.ts +1 -0
  18. package/es/schema-component/antd/cascader/Cascader.d.ts +20 -1
  19. package/es/schema-component/antd/date-picker/DatePicker.d.ts +6 -12
  20. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
  21. package/es/schema-component/antd/page/PopupSettingsProvider.d.ts +2 -1
  22. package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -0
  23. package/es/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  24. package/es/schema-component/core/SchemaComponent.d.ts +1 -0
  25. package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
  26. package/es/schema-initializer/components/DeprecatedTemplateTitle.d.ts +11 -0
  27. package/es/schema-initializer/hooks/useTemplateBlockNotifier.d.ts +14 -0
  28. package/es/schema-initializer/index.d.ts +1 -1
  29. package/es/schema-initializer/utils.d.ts +2 -22
  30. package/es/schema-settings/LinkageRules/DateScopeComponent.d.ts +10 -0
  31. package/es/schema-settings/LinkageRules/FieldStyleLinkageRuleAction.d.ts +10 -0
  32. package/es/schema-settings/LinkageRules/LinkageRuleAction.d.ts +0 -1
  33. package/es/schema-settings/LinkageRules/OptionsComponent.d.ts +19 -0
  34. package/es/schema-settings/LinkageRules/bindLinkageRulesToFiled.d.ts +2 -1
  35. package/es/schema-settings/LinkageRules/type.d.ts +6 -1
  36. package/es/user/CurrentUserProvider.d.ts +1 -0
  37. package/es/user/CurrentUserSettingsMenuProvider.d.ts +1 -1
  38. package/lib/index.js +292 -278
  39. package/lib/locale/de-DE.js +888 -0
  40. package/lib/locale/en-US.js +5 -1
  41. package/lib/locale/es-ES.js +5 -1
  42. package/lib/locale/fr-FR.js +5 -1
  43. package/lib/locale/it-IT.js +281 -58
  44. package/lib/locale/ja-JP.js +5 -1
  45. package/lib/locale/ko-KR.js +5 -1
  46. package/lib/locale/nl-NL.js +1058 -0
  47. package/lib/locale/pt-BR.js +5 -1
  48. package/lib/locale/ru-RU.js +5 -1
  49. package/lib/locale/tr-TR.js +5 -1
  50. package/lib/locale/uk-UA.js +5 -1
  51. package/lib/locale/zh-CN.js +16 -1
  52. package/lib/locale/zh-TW.js +5 -1
  53. package/package.json +8 -8
@@ -12,6 +12,7 @@ export declare const ACLContext: React.Context<any>;
12
12
  export declare const ACLProvider: (props: any) => React.JSX.Element;
13
13
  export declare const ACLRolesCheckProvider: (props: any) => React.JSX.Element;
14
14
  export declare const useRoleRecheck: () => () => void;
15
+ export declare const useCurrentRoleMode: () => any;
15
16
  export declare const useACLContext: () => any;
16
17
  export declare const ACLActionParamsContext: React.Context<any>;
17
18
  export declare const ACLCustomContext: React.Context<any>;
@@ -75,6 +75,7 @@ export declare class Application {
75
75
  name: string;
76
76
  favicon: string;
77
77
  globalVars: Record<string, any>;
78
+ globalVarCtxs: Record<string, any>;
78
79
  jsonLogic: JsonLogic;
79
80
  loading: boolean;
80
81
  maintained: boolean;
@@ -128,8 +129,9 @@ export declare class Application {
128
129
  mount(containerOrSelector: Element | ShadowRoot | string): import("react-dom/client").Root;
129
130
  addFieldInterfaces(fieldInterfaceClasses?: CollectionFieldInterfaceFactory[]): void;
130
131
  addFieldInterfaceComponentOption(fieldName: string, componentOption: CollectionFieldInterfaceComponentOption): void;
131
- addGlobalVar(key: string, value: any): void;
132
+ addGlobalVar(key: string, value: any, varCtx?: any): void;
132
133
  getGlobalVar(key: any): any;
134
+ getGlobalVarCtx(key: any): any;
133
135
  addUserCenterSettingsItem(item: SchemaSettingsItemType & {
134
136
  aclSnippet?: string;
135
137
  }): void;
@@ -25,6 +25,7 @@ export type RouterOptions = (HashRouterOptions | BrowserRouterOptions | MemoryRo
25
25
  export type ComponentTypeAndString<T = any> = ComponentType<T> | string;
26
26
  export interface RouteType extends Omit<RouteObject, 'children' | 'Component'> {
27
27
  Component?: ComponentTypeAndString;
28
+ skipAuthCheck?: boolean;
28
29
  }
29
30
  export type RenderComponentType = (Component: ComponentTypeAndString, props?: any) => React.ReactNode;
30
31
  export declare class RouterManager {
@@ -44,6 +45,8 @@ export declare class RouterManager {
44
45
  setType(type: RouterOptions['type']): void;
45
46
  getBasename(): string;
46
47
  setBasename(basename: string): void;
48
+ matchRoutes(pathname: string): import("@remix-run/router").AgnosticRouteMatch<string, RouteType>[];
49
+ isSkippedAuthCheckRoute(pathname: string): boolean;
47
50
  /**
48
51
  * @internal
49
52
  */
@@ -11,3 +11,4 @@ export * from './useAppSpin';
11
11
  export * from './usePlugin';
12
12
  export * from './useRouter';
13
13
  export * from './useGlobalVariable';
14
+ export * from './useAclSnippets';
@@ -7,3 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  export declare const useGlobalVariable: (key: string) => any;
10
+ export declare const useGlobalVariableCtx: (key: string) => any;
@@ -17,4 +17,4 @@ export declare const useMenuSearch: (props: {
17
17
  showType?: boolean;
18
18
  hideSearch?: boolean;
19
19
  name?: string;
20
- }) => import("antd/es/menu/hooks/useItems").ItemType[];
20
+ }) => import("antd/es/menu/interface").ItemType[];
@@ -85,6 +85,7 @@ export declare const useDetailsPaginationProps: () => {
85
85
  current: any;
86
86
  pageSize: number;
87
87
  showSizeChanger: boolean;
88
+ align: string;
88
89
  onChange(page: any): Promise<void>;
89
90
  style: {
90
91
  marginTop: number;
@@ -102,6 +103,7 @@ export declare const useDetailsPaginationProps: () => {
102
103
  total: any;
103
104
  pageSize: number;
104
105
  showSizeChanger: boolean;
106
+ align: string;
105
107
  onChange(page: any): Promise<void>;
106
108
  style: {
107
109
  marginTop: number;
@@ -24,6 +24,7 @@ export declare class TextareaFieldInterface extends CollectionFieldInterface {
24
24
  };
25
25
  availableTypes: string[];
26
26
  hasDefaultValue: boolean;
27
+ titleUsable: boolean;
27
28
  properties: {
28
29
  'uiSchema.title': {
29
30
  type: string;
@@ -39,6 +39,8 @@ export interface DataBlock {
39
39
  clearFilter: (uid: string) => void;
40
40
  /** 将数据区块的数据置为空 */
41
41
  clearData: () => void;
42
+ /** 清除表格的选中项 */
43
+ clearSelection?: () => void;
42
44
  /** 数据区块表中所有的关系字段 */
43
45
  associatedFields?: CollectionFieldOptions_deprecated[];
44
46
  /** 数据区块表中所有的外键字段 */
@@ -23,6 +23,7 @@ interface INocoBaseRecursionFieldProps extends IRecursionFieldProps {
23
23
  * Whether to use Formily Field class - performance will be reduced but provides better compatibility with Formily
24
24
  */
25
25
  isUseFormilyField?: boolean;
26
+ parentSchema?: Schema;
26
27
  }
27
28
  export declare const RefreshComponentProvider: FC<{
28
29
  refresh: () => void;
@@ -27,6 +27,8 @@ export interface CustomToken extends AliasToken {
27
27
  colorSettings: string;
28
28
  /** 鼠标悬浮时显示的背景色 */
29
29
  colorBgSettingsHover: string;
30
+ /** 鼠标悬浮模板区块时显示的背景色 */
31
+ colorTemplateBgSettingsHover: string;
30
32
  /** 鼠标悬浮时显示的边框色 */
31
33
  colorBorderSettingsHover: string;
32
34
  /** 页面左右内边距 */