@nocobase/client 1.9.0-beta.8 → 1.9.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 (67) hide show
  1. package/es/block-provider/hooks/index.d.ts +28 -1
  2. package/es/collection-manager/Configuration/components/FieldValidation.d.ts +31 -0
  3. package/es/collection-manager/Configuration/components/index.d.ts +1 -0
  4. package/es/collection-manager/constants.d.ts +383 -0
  5. package/es/collection-manager/interfaces/dateOnly.d.ts +1 -0
  6. package/es/collection-manager/interfaces/datetime.d.ts +1 -0
  7. package/es/collection-manager/interfaces/datetimeNoTz.d.ts +1 -0
  8. package/es/collection-manager/interfaces/email.d.ts +2 -0
  9. package/es/collection-manager/interfaces/input.d.ts +2 -0
  10. package/es/collection-manager/interfaces/integer.d.ts +2 -0
  11. package/es/collection-manager/interfaces/m2m.d.ts +1 -0
  12. package/es/collection-manager/interfaces/m2o.d.ts +1 -0
  13. package/es/collection-manager/interfaces/number.d.ts +2 -0
  14. package/es/collection-manager/interfaces/o2m.d.ts +1 -0
  15. package/es/collection-manager/interfaces/o2o.d.ts +3 -0
  16. package/es/collection-manager/interfaces/password.d.ts +2 -0
  17. package/es/collection-manager/interfaces/percent.d.ts +2 -0
  18. package/es/collection-manager/interfaces/phone.d.ts +2 -0
  19. package/es/collection-manager/interfaces/textarea.d.ts +2 -0
  20. package/es/collection-manager/interfaces/unixTimestamp.d.ts +2 -0
  21. package/es/collection-manager/interfaces/url.d.ts +2 -0
  22. package/es/collection-manager/interfaces/uuid.d.ts +2 -0
  23. package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +4 -1
  24. package/es/index.css +1 -1
  25. package/es/index.mjs +12378 -10723
  26. package/es/modules/actions/edit-table/EditTableActionInitializer.d.ts +10 -0
  27. package/es/modules/actions/edit-table/editTableActionSettings.d.ts +10 -0
  28. package/es/schema-component/antd/edit-table/EditTable.d.ts +15 -0
  29. package/es/schema-component/antd/edit-table/EditTableAction.d.ts +46 -0
  30. package/es/schema-component/antd/edit-table/hooks/useColumnSettings.d.ts +26 -0
  31. package/es/schema-component/antd/edit-table/hooks/useTableColumnIntegration.d.ts +26 -0
  32. package/es/schema-component/antd/edit-table/index.d.ts +12 -0
  33. package/es/schema-component/antd/index.d.ts +1 -0
  34. package/es/schema-component/antd/upload/shared.d.ts +1 -1
  35. package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +1 -1
  36. package/lib/index.css +1 -1
  37. package/lib/index.js +221 -91
  38. package/lib/locale/cron/zh-CN.json +33 -0
  39. package/lib/locale/cron/zh-TW.json +33 -0
  40. package/lib/locale/{de-DE.js → de-DE.json} +480 -472
  41. package/lib/locale/{en-US.js → en-US.json} +241 -233
  42. package/lib/locale/es-ES.json +824 -0
  43. package/lib/locale/fr-FR.json +844 -0
  44. package/lib/locale/{it-IT.js → it-IT.json} +363 -355
  45. package/lib/locale/ja-JP.json +1062 -0
  46. package/lib/locale/ko-KR.json +935 -0
  47. package/lib/locale/nl-NL.json +1072 -0
  48. package/lib/locale/pt-BR.json +804 -0
  49. package/lib/locale/ru-RU.json +633 -0
  50. package/lib/locale/tr-TR.json +631 -0
  51. package/lib/locale/uk-UA.json +847 -0
  52. package/lib/locale/zh-CN.json +1191 -0
  53. package/lib/locale/zh-TW.json +938 -0
  54. package/package.json +5 -5
  55. package/lib/locale/cron/zh-CN.js +0 -33
  56. package/lib/locale/cron/zh-TW.js +0 -33
  57. package/lib/locale/es-ES.js +0 -816
  58. package/lib/locale/fr-FR.js +0 -836
  59. package/lib/locale/ja-JP.js +0 -1054
  60. package/lib/locale/ko-KR.js +0 -927
  61. package/lib/locale/nl-NL.js +0 -1064
  62. package/lib/locale/pt-BR.js +0 -796
  63. package/lib/locale/ru-RU.js +0 -625
  64. package/lib/locale/tr-TR.js +0 -623
  65. package/lib/locale/uk-UA.js +0 -839
  66. package/lib/locale/zh-CN.js +0 -1145
  67. package/lib/locale/zh-TW.js +0 -930
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare const EditTableActionInitializer: (props: any) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings';
10
+ export declare const editTableActionSettings: SchemaSettings<{}>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export interface EditTableProps {
10
+ columns?: any[];
11
+ value?: any[];
12
+ onChange?: (value: any[]) => void;
13
+ className?: string;
14
+ }
15
+ export declare const EditTable: any;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Form } from '@formily/core';
10
+ import React from 'react';
11
+ import { ActionProps } from '../action';
12
+ export declare const EditTableActionContext: React.Context<any>;
13
+ export type EditTableActionProps<T = {}> = ActionProps & {
14
+ columns?: any[];
15
+ form?: Form;
16
+ onSubmit?: (values: T) => void;
17
+ onReset?: (values: T) => void;
18
+ /**
19
+ * @default Popover
20
+ * For mobile, will use mobile Popup component
21
+ */
22
+ Container?: (props: {
23
+ open: boolean;
24
+ onOpenChange: (open: boolean) => void;
25
+ trigger: 'click' | 'hover';
26
+ content: React.ReactElement;
27
+ children: React.ReactElement;
28
+ }) => React.ReactElement;
29
+ };
30
+ export declare const EditTableAction: React.FunctionComponent<ActionProps & {
31
+ columns?: any[];
32
+ form?: Form;
33
+ onSubmit?: (values: {}) => void;
34
+ onReset?: (values: {}) => void;
35
+ /**
36
+ * @default Popover
37
+ * For mobile, will use mobile Popup component
38
+ */
39
+ Container?: (props: {
40
+ open: boolean;
41
+ onOpenChange: (open: boolean) => void;
42
+ trigger: 'click' | 'hover';
43
+ content: React.ReactElement;
44
+ children: React.ReactElement;
45
+ }) => React.ReactElement;
46
+ }>;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export interface ColumnSettings {
10
+ key: string;
11
+ title: string;
12
+ dataIndex: string;
13
+ visible: boolean;
14
+ fixed?: 'left' | 'right' | false;
15
+ width?: number;
16
+ order?: number;
17
+ }
18
+ export interface UseColumnSettingsResult {
19
+ getSettings: () => ColumnSettings[] | null;
20
+ saveSettings: (settings: ColumnSettings[]) => void;
21
+ clearSettings: () => void;
22
+ }
23
+ /**
24
+ * Hook for managing table column settings in localStorage
25
+ */
26
+ export declare const useColumnSettings: (tableId: string) => UseColumnSettingsResult;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export interface TableColumnProps {
10
+ key: string;
11
+ dataIndex: string;
12
+ columnHidden: boolean;
13
+ fixed?: 'left' | 'right' | false;
14
+ width?: number;
15
+ _orderIndex?: number;
16
+ [key: string]: any;
17
+ }
18
+ /**
19
+ * Hook to integrate EditTable column settings with Table columns
20
+ * This hook handles the merging of saved column settings with schema columns
21
+ * @param originalColumns - The original columns from schema
22
+ * @param enable - Whether to enable integration logic; if false, returns originalColumns directly
23
+ */
24
+ export declare const useTableColumnIntegration: (originalColumns: TableColumnProps[], enable?: boolean) => {
25
+ columns: TableColumnProps[];
26
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './EditTable';
10
+ export * from './EditTableAction';
11
+ export * from './hooks/useColumnSettings';
12
+ export * from './hooks/useTableColumnIntegration';
@@ -24,6 +24,7 @@ export * from './cron';
24
24
  export * from './date-picker';
25
25
  export * from './details';
26
26
  export * from './divider';
27
+ export * from './edit-table';
27
28
  export * from './error-fallback';
28
29
  export * from './expand-action';
29
30
  export * from './expiresRadio';
@@ -87,4 +87,4 @@ export declare function toValueItem(data: any): any;
87
87
  export declare const toItem: (file: any) => any;
88
88
  export declare const toFileList: (fileList: any) => any[];
89
89
  export declare function validate(file: any, rules: Record<string, any>): string;
90
- export declare function useBeforeUpload(rules: any): (file: any) => boolean;
90
+ export declare function useBeforeUpload(rules: any): (file: any, fileList: any) => false | Promise<any>;
@@ -17,5 +17,5 @@ export declare enum AssignedFieldValueType {
17
17
  DynamicValue = "dynamicValue"
18
18
  }
19
19
  export declare const AssignedFieldInner: (props: AssignedFieldProps) => React.JSX.Element;
20
- export declare const AssignedField: (props: any) => React.JSX.Element;
20
+ export declare const AssignedField: React.FunctionComponent<AssignedFieldProps>;
21
21
  export {};
package/lib/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-layout-sider .ant-menu{background:var(--colorBgSider)!important}.ant-layout-sider .ant-menu .ant-menu-item{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-item:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-item:active{background-color:var(--colorBgSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected{background-color:var(--colorBgSiderMenuActive)!important;color:var(--colorTextSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!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-layout-sider .ant-menu{background:var(--colorBgSider)!important}.ant-layout-sider .ant-menu .ant-menu-item{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-item:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-item:active{background-color:var(--colorBgSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected{background-color:var(--colorBgSiderMenuActive)!important;color:var(--colorTextSiderMenuActive)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title{color:var(--colorTextSiderMenu)!important}.ant-layout-sider .ant-menu .ant-menu-submenu .ant-menu-submenu-title:hover{background-color:var(--colorBgSiderMenuHover)!important;color:var(--colorTextSiderMenuHover)!important}.ant-layout-sider .ant-menu .ant-menu-submenu.ant-menu-submenu-selected>.ant-menu-submenu-title{color:var(--colorTextSiderMenuActive)!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"}