@nocobase/client 1.9.0-alpha.1 → 1.9.0-alpha.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 (42) hide show
  1. package/es/application/Application.d.ts +4 -4
  2. package/es/block-provider/hooks/index.d.ts +26 -0
  3. package/es/collection-manager/templates/sql.d.ts +1 -1
  4. package/es/collection-manager/templates/view.d.ts +1 -1
  5. package/es/flag-provider/FlagProvider.d.ts +5 -0
  6. package/es/index.css +1 -1
  7. package/es/index.mjs +5182 -4208
  8. package/es/modules/actions/edit-table/EditTableActionInitializer.d.ts +10 -0
  9. package/es/modules/actions/edit-table/editTableActionSettings.d.ts +10 -0
  10. package/es/modules/fields/component/Input/inputComponentSettings.d.ts +1 -0
  11. package/es/route-switch/antd/admin-layout/index.d.ts +1 -0
  12. package/es/route-switch/antd/admin-layout/useDeleteRouteSchema.d.ts +11 -0
  13. package/es/schema-component/antd/date-picker/util.d.ts +1 -0
  14. package/es/schema-component/antd/edit-table/EditTable.d.ts +15 -0
  15. package/es/schema-component/antd/edit-table/EditTableAction.d.ts +46 -0
  16. package/es/schema-component/antd/edit-table/hooks/useColumnSettings.d.ts +26 -0
  17. package/es/schema-component/antd/edit-table/hooks/useTableColumnIntegration.d.ts +26 -0
  18. package/es/schema-component/antd/edit-table/index.d.ts +12 -0
  19. package/es/schema-component/antd/fieldset/Fieldset.d.ts +10 -0
  20. package/es/schema-component/antd/fieldset/index.d.ts +9 -0
  21. package/es/schema-component/antd/index.d.ts +2 -0
  22. package/es/schema-component/antd/page/pagePopupUtils.d.ts +2 -1
  23. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +3 -1
  24. package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +3 -1
  25. package/es/variables/VariableScope.d.ts +1 -1
  26. package/lib/index.css +1 -1
  27. package/lib/index.js +228 -114
  28. package/lib/locale/de-DE.js +8 -0
  29. package/lib/locale/en-US.js +9 -0
  30. package/lib/locale/es-ES.js +8 -0
  31. package/lib/locale/fr-FR.js +8 -0
  32. package/lib/locale/it-IT.js +8 -0
  33. package/lib/locale/ja-JP.js +8 -0
  34. package/lib/locale/ko-KR.js +8 -0
  35. package/lib/locale/nl-NL.js +8 -0
  36. package/lib/locale/pt-BR.js +8 -0
  37. package/lib/locale/ru-RU.js +8 -0
  38. package/lib/locale/tr-TR.js +8 -0
  39. package/lib/locale/uk-UA.js +8 -0
  40. package/lib/locale/zh-CN.js +12 -1
  41. package/lib/locale/zh-TW.js +8 -0
  42. package/package.json +8 -7
@@ -69,14 +69,14 @@ interface Variable {
69
69
  /** Unique identifier of the variable */
70
70
  name: string;
71
71
  /** Variable configuration options */
72
- useOption: () => ({
72
+ useOption: () => {
73
73
  option: VariableOption;
74
74
  visible?: boolean;
75
- });
75
+ };
76
76
  /** Variable context */
77
- useCtx: () => (any | ((param: {
77
+ useCtx: () => any | ((param: {
78
78
  variableName: string;
79
- }) => Promise<any>));
79
+ }) => Promise<any>);
80
80
  }
81
81
  export declare class Application {
82
82
  protected options: ApplicationOptions;
@@ -80,6 +80,32 @@ export declare const useBulkDestroyActionProps: () => {
80
80
  export declare const useRefreshActionProps: () => {
81
81
  onClick(): Promise<void>;
82
82
  };
83
+ export interface ColumnInfo {
84
+ key: string;
85
+ title: string;
86
+ dataIndex: string;
87
+ visible: boolean;
88
+ fixed?: 'left' | 'right' | false;
89
+ width?: number;
90
+ order?: number;
91
+ }
92
+ /**
93
+ * Get table columns from schema
94
+ */
95
+ export declare const useTableColumns: () => ColumnInfo[];
96
+ export declare const useEditTableActionProps: () => {
97
+ columns: (ColumnInfo | {
98
+ visible: any;
99
+ order: any;
100
+ width: any;
101
+ fixed: any;
102
+ key: string;
103
+ title: string;
104
+ dataIndex: string;
105
+ })[];
106
+ onSubmit: (values: any) => void;
107
+ onReset: () => void;
108
+ };
83
109
  export declare const useDetailsPaginationProps: () => {
84
110
  simple: boolean;
85
111
  current: any;
@@ -25,8 +25,8 @@ export declare class SqlCollectionTemplate extends CollectionTemplate {
25
25
  updatedBy: any;
26
26
  updatedAt: any;
27
27
  category: any;
28
- sortable: any;
29
28
  inherits: any;
29
+ sortable: any;
30
30
  autoGenId: any;
31
31
  simplePaginate: any;
32
32
  presetFields: any;
@@ -26,8 +26,8 @@ export declare class ViewCollectionTemplate extends CollectionTemplate {
26
26
  updatedBy: any;
27
27
  updatedAt: any;
28
28
  category: any;
29
- sortable: any;
30
29
  inherits: any;
30
+ sortable: any;
31
31
  autoGenId: any;
32
32
  simplePaginate: any;
33
33
  presetFields: any;
@@ -44,6 +44,11 @@ export interface FlagProviderProps {
44
44
  * 是否存在于变量选择器中
45
45
  */
46
46
  isInXButton?: boolean;
47
+ isInMobileDrawer?: boolean;
48
+ /**
49
+ * 是否是联动规则左侧变量
50
+ */
51
+ isLeftVariable?: boolean;
47
52
  }
48
53
  export declare const FlagContext: React.Context<Omit<FlagProviderProps, "children">>;
49
54
  export declare const FlagProvider: FC<FlagProviderProps>;
package/es/index.css CHANGED
@@ -1 +1 @@
1
- ::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-menu-submenu-popup{-webkit-backdrop-filter:none;backdrop-filter:none}.ant-menu-item.ant-menu-item-only-child.ant-pro-base-menu-horizontal-menu-item:active{background-color:var(--colorBgMenuItemSelected)!important}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
1
+ ::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}.ant-menu-submenu-popup{-webkit-backdrop-filter:none;backdrop-filter:none}.ant-menu-item.ant-menu-item-only-child.ant-pro-base-menu-horizontal-menu-item:active{background-color:var(--colorBgMenuItemSelected)!important}html{overflow:hidden}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}