@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.
- package/es/block-provider/hooks/index.d.ts +28 -1
- package/es/collection-manager/Configuration/components/FieldValidation.d.ts +31 -0
- package/es/collection-manager/Configuration/components/index.d.ts +1 -0
- package/es/collection-manager/constants.d.ts +383 -0
- package/es/collection-manager/interfaces/dateOnly.d.ts +1 -0
- package/es/collection-manager/interfaces/datetime.d.ts +1 -0
- package/es/collection-manager/interfaces/datetimeNoTz.d.ts +1 -0
- package/es/collection-manager/interfaces/email.d.ts +2 -0
- package/es/collection-manager/interfaces/input.d.ts +2 -0
- package/es/collection-manager/interfaces/integer.d.ts +2 -0
- package/es/collection-manager/interfaces/m2m.d.ts +1 -0
- package/es/collection-manager/interfaces/m2o.d.ts +1 -0
- package/es/collection-manager/interfaces/number.d.ts +2 -0
- package/es/collection-manager/interfaces/o2m.d.ts +1 -0
- package/es/collection-manager/interfaces/o2o.d.ts +3 -0
- package/es/collection-manager/interfaces/password.d.ts +2 -0
- package/es/collection-manager/interfaces/percent.d.ts +2 -0
- package/es/collection-manager/interfaces/phone.d.ts +2 -0
- package/es/collection-manager/interfaces/textarea.d.ts +2 -0
- package/es/collection-manager/interfaces/unixTimestamp.d.ts +2 -0
- package/es/collection-manager/interfaces/url.d.ts +2 -0
- package/es/collection-manager/interfaces/uuid.d.ts +2 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +4 -1
- package/es/index.css +1 -1
- package/es/index.mjs +12378 -10723
- package/es/modules/actions/edit-table/EditTableActionInitializer.d.ts +10 -0
- package/es/modules/actions/edit-table/editTableActionSettings.d.ts +10 -0
- package/es/schema-component/antd/edit-table/EditTable.d.ts +15 -0
- package/es/schema-component/antd/edit-table/EditTableAction.d.ts +46 -0
- package/es/schema-component/antd/edit-table/hooks/useColumnSettings.d.ts +26 -0
- package/es/schema-component/antd/edit-table/hooks/useTableColumnIntegration.d.ts +26 -0
- package/es/schema-component/antd/edit-table/index.d.ts +12 -0
- package/es/schema-component/antd/index.d.ts +1 -0
- package/es/schema-component/antd/upload/shared.d.ts +1 -1
- package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +221 -91
- package/lib/locale/cron/zh-CN.json +33 -0
- package/lib/locale/cron/zh-TW.json +33 -0
- package/lib/locale/{de-DE.js → de-DE.json} +480 -472
- package/lib/locale/{en-US.js → en-US.json} +241 -233
- package/lib/locale/es-ES.json +824 -0
- package/lib/locale/fr-FR.json +844 -0
- package/lib/locale/{it-IT.js → it-IT.json} +363 -355
- package/lib/locale/ja-JP.json +1062 -0
- package/lib/locale/ko-KR.json +935 -0
- package/lib/locale/nl-NL.json +1072 -0
- package/lib/locale/pt-BR.json +804 -0
- package/lib/locale/ru-RU.json +633 -0
- package/lib/locale/tr-TR.json +631 -0
- package/lib/locale/uk-UA.json +847 -0
- package/lib/locale/zh-CN.json +1191 -0
- package/lib/locale/zh-TW.json +938 -0
- package/package.json +5 -5
- package/lib/locale/cron/zh-CN.js +0 -33
- package/lib/locale/cron/zh-TW.js +0 -33
- package/lib/locale/es-ES.js +0 -816
- package/lib/locale/fr-FR.js +0 -836
- package/lib/locale/ja-JP.js +0 -1054
- package/lib/locale/ko-KR.js +0 -927
- package/lib/locale/nl-NL.js +0 -1064
- package/lib/locale/pt-BR.js +0 -796
- package/lib/locale/ru-RU.js +0 -625
- package/lib/locale/tr-TR.js +0 -623
- package/lib/locale/uk-UA.js +0 -839
- package/lib/locale/zh-CN.js +0 -1145
- 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';
|
|
@@ -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) =>
|
|
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:
|
|
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
|
|
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"}
|