@nocobase/client 0.14.0-alpha.7 → 0.14.0-alpha.8

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 (75) hide show
  1. package/es/application/utils/remotePlugins.d.ts +2 -2
  2. package/es/block-provider/BlockProvider.d.ts +12 -1
  3. package/es/block-provider/FormBlockProvider.d.ts +8 -1
  4. package/es/block-provider/TableSelectorProvider.d.ts +1 -0
  5. package/es/block-provider/hooks/index.d.ts +10 -0
  6. package/es/block-provider/hooks/useFormActiveFields.d.ts +5 -0
  7. package/es/block-provider/hooks/useParsedFilter.d.ts +6 -0
  8. package/es/filter-provider/FilterProvider.d.ts +5 -0
  9. package/es/flag-provider/FlagProvider.d.ts +8 -0
  10. package/es/index.mjs +14991 -14270
  11. package/es/locale/en_US.d.ts +1 -0
  12. package/es/locale/es_ES.d.ts +1 -0
  13. package/es/locale/fr_FR.d.ts +1 -0
  14. package/es/locale/pt_BR.d.ts +1 -0
  15. package/es/locale/ru_RU.d.ts +1 -0
  16. package/es/locale/tr_TR.d.ts +1 -0
  17. package/es/locale/uk_UA.d.ts +1 -0
  18. package/es/locale/zh_CN.d.ts +2 -0
  19. package/es/record-provider/index.d.ts +1 -0
  20. package/es/schema-component/antd/action/Action.Designer.d.ts +1 -1
  21. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfAction.d.ts +8 -0
  22. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.d.ts +7 -0
  23. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfModal.d.ts +7 -0
  24. package/es/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.d.ts +7 -0
  25. package/es/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.d.ts +1 -0
  26. package/es/schema-component/antd/action/hooks/useSetAriaLabelForModal.d.ts +1 -0
  27. package/es/schema-component/antd/action/hooks/useSetAriaLabelForPopover.d.ts +1 -0
  28. package/es/schema-component/antd/action/index.d.ts +4 -0
  29. package/es/schema-component/antd/appends-tree-select/AppendsTreeSelect.d.ts +1 -0
  30. package/es/schema-component/antd/association-field/AssociationSelect.d.ts +1 -0
  31. package/es/schema-component/antd/association-field/hooks.d.ts +14 -0
  32. package/es/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.d.ts +7 -0
  33. package/es/schema-component/antd/card-item/CardItem.d.ts +8 -1
  34. package/es/schema-component/antd/form-item/hooks/useLazyLoadAssociationFieldOfForm.d.ts +4 -1
  35. package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.d.ts +8 -0
  36. package/es/schema-component/antd/form-v2/utils.d.ts +1 -1
  37. package/es/schema-component/antd/page/hooks/useIsBlockInPage.d.ts +6 -0
  38. package/es/schema-component/antd/variable/VariableSelect.d.ts +3 -1
  39. package/es/schema-initializer/buttons/BlockInitializers.d.ts +0 -1
  40. package/es/schema-initializer/buttons/CalendarActionInitializers.d.ts +0 -1
  41. package/es/schema-initializer/buttons/CalendarFormActionInitializers.d.ts +1 -26
  42. package/es/schema-initializer/buttons/DetailsActionInitializers.d.ts +0 -1
  43. package/es/schema-initializer/buttons/FilterFormActionInitializers.d.ts +0 -1
  44. package/es/schema-initializer/buttons/FormActionInitializers.d.ts +4 -97
  45. package/es/schema-initializer/buttons/GanttActionInitializers.d.ts +0 -1
  46. package/es/schema-initializer/buttons/GridCardActionInitializers.d.ts +5 -19
  47. package/es/schema-initializer/buttons/KanbanActionInitializers.d.ts +0 -1
  48. package/es/schema-initializer/buttons/ListActionInitializers.d.ts +5 -19
  49. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +1 -27
  50. package/es/schema-initializer/buttons/SubTableActionInitializers.d.ts +0 -1
  51. package/es/schema-initializer/buttons/TableActionInitializers.d.ts +0 -1
  52. package/es/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.d.ts +7 -0
  53. package/es/schema-initializer/index.d.ts +1 -1
  54. package/es/schema-initializer/types.d.ts +1 -0
  55. package/es/schema-initializer/utils.d.ts +0 -1
  56. package/es/schema-settings/LinkageRules/index.d.ts +4 -0
  57. package/es/schema-settings/SchemaSettings.d.ts +6 -2
  58. package/es/schema-settings/VariableInput/hooks/useParentRecordVariable.d.ts +12 -0
  59. package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +2 -2
  60. package/es/schema-settings/hooks/useGetAriaLabelOfDesigner.d.ts +7 -0
  61. package/es/schema-settings/hooks/useIsAllowToSetDefaultValue.d.ts +3 -7
  62. package/es/schema-settings/hooks/useParseDataScopeFilter.d.ts +4 -2
  63. package/es/variables/constants.d.ts +1 -1
  64. package/es/variables/hooks/useLocalVariables.d.ts +0 -5
  65. package/lib/index.js +14981 -14260
  66. package/lib/locale/en_US.js +1 -0
  67. package/lib/locale/es_ES.js +1 -0
  68. package/lib/locale/fr_FR.js +1 -0
  69. package/lib/locale/pt_BR.js +1 -0
  70. package/lib/locale/ru_RU.js +1 -0
  71. package/lib/locale/tr_TR.js +1 -0
  72. package/lib/locale/uk_UA.js +1 -0
  73. package/lib/locale/zh_CN.js +2 -0
  74. package/package.json +7 -7
  75. package/es/schema-component/antd/form-item/hooks/useLazyLoadAssociationFieldOfSubForm.d.ts +0 -5
@@ -4,11 +4,11 @@ import type { RequireJS } from './requirejs';
4
4
  import type { DevDynamicImport } from '../Application';
5
5
  export declare function defineDevPlugins(plugins: Record<string, typeof Plugin>): void;
6
6
  export declare function definePluginClient(packageName: string): void;
7
- export declare function getRemotePlugins(requirejs: any, pluginData?: PluginData[]): Promise<Array<typeof Plugin>>;
7
+ export declare function getRemotePlugins(requirejs: any, pluginData?: PluginData[]): Promise<Array<[string, typeof Plugin]>>;
8
8
  interface GetPluginsOption {
9
9
  requirejs: RequireJS;
10
10
  pluginData: PluginData[];
11
11
  devDynamicImport?: DevDynamicImport;
12
12
  }
13
- export declare function getPlugins(options: GetPluginsOption): Promise<Array<typeof Plugin>>;
13
+ export declare function getPlugins(options: GetPluginsOption): Promise<Array<[string, typeof Plugin]>>;
14
14
  export {};
@@ -27,7 +27,18 @@ export declare const useBlockRequestContext: () => {
27
27
  updateAssociationValues?: any[];
28
28
  };
29
29
  export declare const RenderChildrenWithAssociationFilter: React.FC<any>;
30
- export declare const BlockProvider: (props: any) => React.JSX.Element;
30
+ export declare const useBlockContext: () => {
31
+ /** 用以区分区块的标识 */
32
+ name: string;
33
+ };
34
+ export declare const BlockProvider: (props: {
35
+ name: string;
36
+ resource: any;
37
+ collection?: any;
38
+ association?: any;
39
+ params?: any;
40
+ children?: any;
41
+ }) => React.JSX.Element;
31
42
  export declare const useBlockAssociationContext: () => any;
32
43
  export declare const useFilterByTk: () => any;
33
44
  export declare const useSourceIdFromRecord: () => any;
@@ -1,7 +1,14 @@
1
1
  import { Schema } from '@formily/react';
2
2
  import React from 'react';
3
3
  export declare const FormBlockContext: React.Context<any>;
4
- export declare const useIsEmptyRecord: () => boolean;
4
+ /**
5
+ * 获取表单区块的类型:update 表示是表单编辑区块,create 表示是表单新增区块
6
+ * @returns
7
+ */
8
+ export declare const useFormBlockType: () => {
9
+ type: 'update' | 'create';
10
+ };
11
+ export declare const useIsDetailBlock: () => boolean;
5
12
  export declare const FormBlockProvider: (props: any) => React.JSX.Element;
6
13
  export declare const useFormBlockContext: () => any;
7
14
  export declare const useFormBlockProps: () => {
@@ -9,6 +9,7 @@ type Params = {
9
9
  export declare const TableSelectorContext: React.Context<any>;
10
10
  type TableSelectorProviderProps = {
11
11
  params: Record<string, any>;
12
+ resource: any;
12
13
  collection?: string;
13
14
  dragSort?: boolean;
14
15
  children?: any;
@@ -1,8 +1,18 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  export * from './useFormActiveFields';
3
+ export * from './useParsedFilter';
3
4
  export declare const usePickActionProps: () => {
4
5
  onClick(): void;
5
6
  };
7
+ export declare function getFormValues({ filterByTk, field, form, fieldNames, getField, resource, actionFields, }: {
8
+ filterByTk: any;
9
+ field: any;
10
+ form: any;
11
+ fieldNames: any;
12
+ getField: any;
13
+ resource: any;
14
+ actionFields: any[];
15
+ }): any;
6
16
  export declare const useCreateActionProps: () => {
7
17
  onClick(): Promise<void>;
8
18
  };
@@ -9,6 +9,11 @@ interface FormActiveFieldsProviderValue {
9
9
  interface ProviderProps extends Partial<FormActiveFieldsProviderValue> {
10
10
  children: React.ReactNode;
11
11
  }
12
+ /**
13
+ * 用于提供获取和更新当前表单区块中已显示出来的字段
14
+ * @param param0
15
+ * @returns
16
+ */
12
17
  export declare const FormActiveFieldsProvider: ({ children, name, getActiveFieldsName, addActiveFieldName, removeActiveFieldName, }: ProviderProps) => React.JSX.Element;
13
18
  /**
14
19
  * 用于获取和更新当前表单区块中已显示出来的字段
@@ -0,0 +1,6 @@
1
+ export declare function useParsedFilter({ filterOption, currentRecord }: {
2
+ filterOption: any;
3
+ currentRecord?: any;
4
+ }): {
5
+ filter: {};
6
+ };
@@ -40,6 +40,11 @@ export interface DataBlock {
40
40
  * @returns
41
41
  */
42
42
  export declare const FilterBlockProvider: React.FC;
43
+ /**
44
+ * 用于收集记录当前页面中的数据区块的信息
45
+ * @param param0
46
+ * @returns
47
+ */
43
48
  export declare const FilterBlockRecord: ({ children, params, }: {
44
49
  children: React.ReactNode;
45
50
  params?: {
@@ -12,6 +12,14 @@ export interface FlagProviderProps {
12
12
  * 是否存在于 `表单数据模板` 中
13
13
  */
14
14
  isInFormDataTemplate?: boolean;
15
+ /**
16
+ * 是否存在于 `子表格` 中
17
+ */
18
+ isInSubTable?: boolean;
19
+ /**
20
+ * 是否存在于 `子表单` 中
21
+ */
22
+ isInSubForm?: boolean;
15
23
  children: any;
16
24
  }
17
25
  export declare const FlagContext: React.Context<Omit<FlagProviderProps, "children">>;