@pisell/materials 1.0.1073 → 1.0.1074
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
- package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
- package/es/components/PisellCards/index.d.ts +1 -0
- package/es/components/PisellFields/index.d.ts +1 -0
- package/es/components/PisellLayouts/index.d.ts +1 -0
- package/es/components/PisellMetrics/index.d.ts +1 -0
- package/es/components/batch-editor/fields/index.d.ts +1 -0
- package/es/components/calendar/index.d.ts +1 -0
- package/es/components/checkbox/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +10 -9
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/filter/components/items/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/es/components/filter/components/items/text/index.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/radio/index.d.ts +1 -0
- package/es/components/skeleton/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.js +10 -9
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +3 -2
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/time-picker/index.d.ts +1 -0
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/es/hooks/useResponsive.d.ts +1 -1
- package/es/locales/en-US.d.ts +9 -0
- package/es/locales/en-US.js +9 -0
- package/es/locales/ja.d.ts +9 -0
- package/es/locales/ja.js +9 -0
- package/es/locales/pt.d.ts +9 -0
- package/es/locales/pt.js +9 -0
- package/es/locales/zh-CN.d.ts +9 -0
- package/es/locales/zh-CN.js +9 -0
- package/es/locales/zh-TW.d.ts +9 -0
- package/es/locales/zh-TW.js +9 -0
- package/es/pisell-materials.tw.css +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
- package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
- package/lib/components/PisellCards/index.d.ts +1 -0
- package/lib/components/PisellFields/index.d.ts +1 -0
- package/lib/components/PisellLayouts/index.d.ts +1 -0
- package/lib/components/PisellMetrics/index.d.ts +1 -0
- package/lib/components/batch-editor/fields/index.d.ts +1 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +10 -9
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/filter/components/items/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/index.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/radio/index.d.ts +1 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.js +22 -9
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +3 -2
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/time-picker/index.d.ts +1 -0
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/lib/hooks/useResponsive.d.ts +1 -1
- package/lib/locales/en-US.d.ts +9 -0
- package/lib/locales/en-US.js +9 -0
- package/lib/locales/ja.d.ts +9 -0
- package/lib/locales/ja.js +9 -0
- package/lib/locales/pt.d.ts +9 -0
- package/lib/locales/pt.js +9 -0
- package/lib/locales/zh-CN.d.ts +9 -0
- package/lib/locales/zh-CN.js +9 -0
- package/lib/locales/zh-TW.d.ts +9 -0
- package/lib/locales/zh-TW.js +9 -0
- package/lib/pisell-materials.tw.css +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/pisell-record-board-calendar-view/meta.ts +1 -1
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* <PisellFields.Number value={123} viewMode="readonly" />
|
|
10
10
|
* <PisellFields.Currency value={1000} currencySymbol="$" />
|
|
11
11
|
*/
|
|
12
|
+
/// <reference types="react" />
|
|
12
13
|
declare const PisellFields: {
|
|
13
14
|
SingleLineText: import("react").NamedExoticComponent<import("../pisellSingleLineText").PisellSingleLineTextProps>;
|
|
14
15
|
LongText: import("react").NamedExoticComponent<import("../pisellLongText").PisellLongTextProps>;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* <Content />
|
|
14
14
|
* </PisellLayouts.ScrollView>
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
declare const PisellLayouts: {
|
|
17
18
|
BasicGrid: <T>(props: import("../PisellBasicGrid").PisellBasicGridProps<T>) => import("react").JSX.Element;
|
|
18
19
|
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("../PisellScrollView").PisellScrollViewProps, "ref"> & import("react").RefAttributes<import("../PisellScrollView").PisellScrollViewRef>>;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* />
|
|
14
14
|
* <PisellMetrics.StatisticList data={[...]} />
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
declare const PisellMetrics: {
|
|
17
18
|
MetricCard: import("react").FC<import("../pisellMetricCard").PisellMetricCardProps>;
|
|
18
19
|
StatisticList: (props: import("../pisellStatisticList").PisellStatisticListProps) => import("react").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string |
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string |
|
|
3
|
+
dataSourceKey: string | undefined;
|
|
4
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
4
5
|
};
|
|
5
6
|
export default useDataSourceKey;
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title:
|
|
22
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle:
|
|
31
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
54
54
|
width: number;
|
|
55
55
|
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
|
-
type: "
|
|
57
|
+
type: "button" | "link";
|
|
58
58
|
items: OperationItem[];
|
|
59
59
|
} | undefined;
|
|
60
60
|
operationContent?: {
|
|
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
72
72
|
useCustomAction: boolean;
|
|
73
73
|
actionType: string;
|
|
74
74
|
openMode: "modal" | "drawer";
|
|
75
|
-
openContentSize: "small" | "
|
|
75
|
+
openContentSize: "small" | "middle" | "large";
|
|
76
76
|
openTitle: string;
|
|
77
77
|
key: string;
|
|
78
78
|
} | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const formFieldMap: {
|
|
2
3
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
3
4
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -80,7 +81,13 @@ declare const formFieldMap: {
|
|
|
80
81
|
extraParams?: Record<string, any> | undefined;
|
|
81
82
|
}) => import("react").JSX.Element;
|
|
82
83
|
};
|
|
83
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> |
|
|
84
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
85
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
86
|
+
} & {
|
|
87
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DatePicker").DataSourceDatePickerProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
89
|
+
onChange: (value: string) => void;
|
|
90
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
84
91
|
JSON: import("react").FC<any>;
|
|
85
92
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
86
93
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -100,11 +107,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
100
107
|
name?: string | undefined;
|
|
101
108
|
fieldKey?: string | undefined;
|
|
102
109
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
103
|
-
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> |
|
|
104
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
105
|
-
} & {
|
|
106
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
107
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
110
|
+
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
108
111
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
109
112
|
} & {
|
|
110
113
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -117,9 +120,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
117
120
|
} & {
|
|
118
121
|
dataSource?: any;
|
|
119
122
|
extraParams?: Record<string, any> | undefined;
|
|
120
|
-
}) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
121
|
-
onChange: (value: string) => void;
|
|
122
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
123
|
+
}) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
123
124
|
options?: any;
|
|
124
125
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
125
126
|
labelField: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string |
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string |
|
|
3
|
+
dataSourceKey: string | undefined;
|
|
4
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
4
5
|
};
|
|
5
6
|
export default useDataSourceKey;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -8,6 +8,7 @@ import React, { useMemo } from "react";
|
|
|
8
8
|
import { EyeInvisibleOutlined, EyeOutlined } from "@ant-design/icons";
|
|
9
9
|
import { Divider, Popover, Select, Segmented, Space, Form } from "antd";
|
|
10
10
|
import PopoverContent from "../ColumnsSetting/PopoverContent";
|
|
11
|
+
import { getText } from "../../../../../locales";
|
|
11
12
|
import { useSharedState } from "../../../../../hooks";
|
|
12
13
|
import { Context } from "../../../model";
|
|
13
14
|
import ButtonIcon from "../ButtonIcon";
|
|
@@ -47,7 +48,7 @@ var GallerySetting = function GallerySetting(props) {
|
|
|
47
48
|
var coverFieldOptions = useMemo(function () {
|
|
48
49
|
return [{
|
|
49
50
|
value: "noCover",
|
|
50
|
-
label: "
|
|
51
|
+
label: getText("table-action-gallery-no-cover")
|
|
51
52
|
}].concat(_toConsumableArray((fields || []).map(function (field) {
|
|
52
53
|
var column = defaultColumns.find(function (col) {
|
|
53
54
|
return col.key === field;
|
|
@@ -68,7 +69,7 @@ var GallerySetting = function GallerySetting(props) {
|
|
|
68
69
|
}
|
|
69
70
|
}, show && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
70
71
|
className: "".concat(prefix, "gallery-setting-header-item")
|
|
71
|
-
}, /*#__PURE__*/React.createElement("div", null, "
|
|
72
|
+
}, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-cover-content")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
72
73
|
name: ["gallery_setting", "coverField"],
|
|
73
74
|
noStyle: true
|
|
74
75
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
@@ -86,15 +87,15 @@ var GallerySetting = function GallerySetting(props) {
|
|
|
86
87
|
var getFieldValue = _ref.getFieldValue;
|
|
87
88
|
return getFieldValue(["gallery_setting", "coverField"]) !== "noCover" ? /*#__PURE__*/React.createElement("div", {
|
|
88
89
|
className: "".concat(prefix, "gallery-setting-header-item")
|
|
89
|
-
}, /*#__PURE__*/React.createElement("div", null, "
|
|
90
|
+
}, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-cover-effect")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
90
91
|
name: ["gallery_setting", "coverObjectFit"],
|
|
91
92
|
noStyle: true
|
|
92
93
|
}, /*#__PURE__*/React.createElement(Segmented, {
|
|
93
94
|
options: [{
|
|
94
|
-
label: "
|
|
95
|
+
label: getText("table-action-gallery-cover-fit-fill"),
|
|
95
96
|
value: "fill"
|
|
96
97
|
}, {
|
|
97
|
-
label: "
|
|
98
|
+
label: getText("table-action-gallery-cover-fit-cover"),
|
|
98
99
|
value: "cover"
|
|
99
100
|
}]
|
|
100
101
|
})))) : null;
|
|
@@ -104,15 +105,15 @@ var GallerySetting = function GallerySetting(props) {
|
|
|
104
105
|
}
|
|
105
106
|
})), /*#__PURE__*/React.createElement("div", {
|
|
106
107
|
className: "".concat(prefix, "gallery-setting-header-item")
|
|
107
|
-
}, /*#__PURE__*/React.createElement("div", null, "
|
|
108
|
+
}, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-display-mode")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
108
109
|
name: ["gallery_setting", "compactMode"],
|
|
109
110
|
noStyle: true
|
|
110
111
|
}, /*#__PURE__*/React.createElement(Segmented, {
|
|
111
112
|
options: [{
|
|
112
|
-
label: "
|
|
113
|
+
label: getText("table-action-gallery-display-mode-default"),
|
|
113
114
|
value: "default"
|
|
114
115
|
}, {
|
|
115
|
-
label: "
|
|
116
|
+
label: getText("table-action-gallery-display-mode-compact"),
|
|
116
117
|
value: "compact"
|
|
117
118
|
}]
|
|
118
119
|
})))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -125,7 +126,7 @@ var GallerySetting = function GallerySetting(props) {
|
|
|
125
126
|
var getFieldValue = _ref2.getFieldValue;
|
|
126
127
|
return getFieldValue(["gallery_setting", "compactMode"]) === "default" ? /*#__PURE__*/React.createElement("div", {
|
|
127
128
|
className: "".concat(prefix, "gallery-setting-header-item")
|
|
128
|
-
}, /*#__PURE__*/React.createElement("div", null, "
|
|
129
|
+
}, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-display-field-name")), /*#__PURE__*/React.createElement("div", {
|
|
129
130
|
className: "".concat(prefix, "gallery-setting-header-item-icon-wrap")
|
|
130
131
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
131
132
|
name: ["gallery_setting", "isShowLabel"],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const fieldMaps: {
|
|
2
3
|
text: {
|
|
3
4
|
field: {
|
|
@@ -197,12 +198,12 @@ export declare const fieldList: ({
|
|
|
197
198
|
field_icon: string;
|
|
198
199
|
field_name: string;
|
|
199
200
|
field_type: string;
|
|
200
|
-
default_value:
|
|
201
|
+
default_value: string;
|
|
201
202
|
} | {
|
|
202
203
|
field_icon: string;
|
|
203
204
|
field_name: string;
|
|
204
205
|
field_type: string;
|
|
205
|
-
default_value:
|
|
206
|
+
default_value: boolean;
|
|
206
207
|
} | {
|
|
207
208
|
field_icon: string;
|
|
208
209
|
field_name: string;
|
|
@@ -161,7 +161,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
161
161
|
sort?: SortType | undefined;
|
|
162
162
|
mode: "" | "localStorage" | "remote";
|
|
163
163
|
currentViewMode: ModeType;
|
|
164
|
-
}) => ("filters" | "
|
|
164
|
+
}) => ("filters" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
|
|
165
165
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
166
166
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
167
167
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare type ResponsiveConfig = Record<string, number>;
|
|
2
2
|
export declare function configResponsive(config: ResponsiveConfig): void;
|
|
3
|
-
export default function useResponsive(): "
|
|
3
|
+
export default function useResponsive(): "pc" | "ipad" | "phone";
|
|
4
4
|
export {};
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -32,6 +32,15 @@ declare const _default: {
|
|
|
32
32
|
'table-action-group-by-title': string;
|
|
33
33
|
'table-action-group-by-title-tip': string;
|
|
34
34
|
'table-action-column-title': string;
|
|
35
|
+
'table-action-gallery-display-mode': string;
|
|
36
|
+
'table-action-gallery-display-mode-default': string;
|
|
37
|
+
'table-action-gallery-display-mode-compact': string;
|
|
38
|
+
'table-action-gallery-display-field-name': string;
|
|
39
|
+
'table-action-gallery-no-cover': string;
|
|
40
|
+
'table-action-gallery-cover-content': string;
|
|
41
|
+
'table-action-gallery-cover-effect': string;
|
|
42
|
+
'table-action-gallery-cover-fit-fill': string;
|
|
43
|
+
'table-action-gallery-cover-fit-cover': string;
|
|
35
44
|
'table-column-group-records': string;
|
|
36
45
|
'table-column-group-lock-tip': string;
|
|
37
46
|
'record-board-uniform-summary-empty': string;
|
package/es/locales/en-US.js
CHANGED
|
@@ -38,6 +38,15 @@ export default {
|
|
|
38
38
|
'table-action-group-by-title': 'Group by',
|
|
39
39
|
'table-action-group-by-title-tip': 'Please select the field from the dropdown menu to group the data for better organization and browsing.',
|
|
40
40
|
'table-action-column-title': 'Header settings',
|
|
41
|
+
'table-action-gallery-display-mode': 'Display mode',
|
|
42
|
+
'table-action-gallery-display-mode-default': 'Default',
|
|
43
|
+
'table-action-gallery-display-mode-compact': 'Compact',
|
|
44
|
+
'table-action-gallery-display-field-name': 'Display field name',
|
|
45
|
+
'table-action-gallery-no-cover': 'No cover',
|
|
46
|
+
'table-action-gallery-cover-content': 'Cover content',
|
|
47
|
+
'table-action-gallery-cover-effect': 'Cover effect',
|
|
48
|
+
'table-action-gallery-cover-fit-fill': 'Fit',
|
|
49
|
+
'table-action-gallery-cover-fit-cover': 'Crop',
|
|
41
50
|
'table-column-group-records': 'records',
|
|
42
51
|
'table-column-group-lock-tip': 'Fixed column immutable order',
|
|
43
52
|
'record-board-uniform-summary-empty': '-',
|
package/es/locales/ja.d.ts
CHANGED
|
@@ -29,6 +29,15 @@ declare const _default: {
|
|
|
29
29
|
'table-action-group-by-title': string;
|
|
30
30
|
'table-action-group-by-title-tip': string;
|
|
31
31
|
'table-action-column-title': string;
|
|
32
|
+
'table-action-gallery-display-mode': string;
|
|
33
|
+
'table-action-gallery-display-mode-default': string;
|
|
34
|
+
'table-action-gallery-display-mode-compact': string;
|
|
35
|
+
'table-action-gallery-display-field-name': string;
|
|
36
|
+
'table-action-gallery-no-cover': string;
|
|
37
|
+
'table-action-gallery-cover-content': string;
|
|
38
|
+
'table-action-gallery-cover-effect': string;
|
|
39
|
+
'table-action-gallery-cover-fit-fill': string;
|
|
40
|
+
'table-action-gallery-cover-fit-cover': string;
|
|
32
41
|
'table-column-group-records': string;
|
|
33
42
|
'table-column-group-lock-tip': string;
|
|
34
43
|
'record-board-uniform-summary-empty': string;
|
package/es/locales/ja.js
CHANGED
|
@@ -35,6 +35,15 @@ export default {
|
|
|
35
35
|
'table-action-group-by-title': 'グループ化',
|
|
36
36
|
'table-action-group-by-title-tip': 'データをより適切に整理して閲覧するために、ドロップダウンメニューからフィールドを選択してグループ化してください。',
|
|
37
37
|
'table-action-column-title': 'ヘッダー設定',
|
|
38
|
+
'table-action-gallery-display-mode': '表示モード',
|
|
39
|
+
'table-action-gallery-display-mode-default': '標準',
|
|
40
|
+
'table-action-gallery-display-mode-compact': 'コンパクト',
|
|
41
|
+
'table-action-gallery-display-field-name': 'フィールド名を表示',
|
|
42
|
+
'table-action-gallery-no-cover': 'カバーなし',
|
|
43
|
+
'table-action-gallery-cover-content': 'カバー内容',
|
|
44
|
+
'table-action-gallery-cover-effect': 'カバー効果',
|
|
45
|
+
'table-action-gallery-cover-fit-fill': 'フィット',
|
|
46
|
+
'table-action-gallery-cover-fit-cover': 'トリミング',
|
|
38
47
|
'table-column-group-records': '件のレコード',
|
|
39
48
|
'table-column-group-lock-tip': '固定列は順序を変更できません',
|
|
40
49
|
'record-board-uniform-summary-empty': '-',
|
package/es/locales/pt.d.ts
CHANGED
|
@@ -29,6 +29,15 @@ declare const _default: {
|
|
|
29
29
|
'table-action-group-by-title': string;
|
|
30
30
|
'table-action-group-by-title-tip': string;
|
|
31
31
|
'table-action-column-title': string;
|
|
32
|
+
'table-action-gallery-display-mode': string;
|
|
33
|
+
'table-action-gallery-display-mode-default': string;
|
|
34
|
+
'table-action-gallery-display-mode-compact': string;
|
|
35
|
+
'table-action-gallery-display-field-name': string;
|
|
36
|
+
'table-action-gallery-no-cover': string;
|
|
37
|
+
'table-action-gallery-cover-content': string;
|
|
38
|
+
'table-action-gallery-cover-effect': string;
|
|
39
|
+
'table-action-gallery-cover-fit-fill': string;
|
|
40
|
+
'table-action-gallery-cover-fit-cover': string;
|
|
32
41
|
'table-column-group-records': string;
|
|
33
42
|
'table-column-group-lock-tip': string;
|
|
34
43
|
'record-board-uniform-summary-empty': string;
|
package/es/locales/pt.js
CHANGED
|
@@ -35,6 +35,15 @@ export default {
|
|
|
35
35
|
'table-action-group-by-title': 'Agrupar por',
|
|
36
36
|
'table-action-group-by-title-tip': 'Selecione o campo no menu suspenso para agrupar os dados para melhor organização e navegação.',
|
|
37
37
|
'table-action-column-title': 'Configurações do cabeçalho',
|
|
38
|
+
'table-action-gallery-display-mode': 'Modo de exibição',
|
|
39
|
+
'table-action-gallery-display-mode-default': 'Padrão',
|
|
40
|
+
'table-action-gallery-display-mode-compact': 'Compacto',
|
|
41
|
+
'table-action-gallery-display-field-name': 'Exibir nome do campo',
|
|
42
|
+
'table-action-gallery-no-cover': 'Sem capa',
|
|
43
|
+
'table-action-gallery-cover-content': 'Conteúdo da capa',
|
|
44
|
+
'table-action-gallery-cover-effect': 'Efeito da capa',
|
|
45
|
+
'table-action-gallery-cover-fit-fill': 'Ajustar',
|
|
46
|
+
'table-action-gallery-cover-fit-cover': 'Cortar',
|
|
38
47
|
'table-column-group-records': 'registros',
|
|
39
48
|
'table-column-group-lock-tip': 'Ordem da coluna fixa imutável',
|
|
40
49
|
'record-board-uniform-summary-empty': '-',
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -32,6 +32,15 @@ declare const _default: {
|
|
|
32
32
|
'table-action-group-by-title': string;
|
|
33
33
|
'table-action-group-by-title-tip': string;
|
|
34
34
|
'table-action-column-title': string;
|
|
35
|
+
'table-action-gallery-display-mode': string;
|
|
36
|
+
'table-action-gallery-display-mode-default': string;
|
|
37
|
+
'table-action-gallery-display-mode-compact': string;
|
|
38
|
+
'table-action-gallery-display-field-name': string;
|
|
39
|
+
'table-action-gallery-no-cover': string;
|
|
40
|
+
'table-action-gallery-cover-content': string;
|
|
41
|
+
'table-action-gallery-cover-effect': string;
|
|
42
|
+
'table-action-gallery-cover-fit-fill': string;
|
|
43
|
+
'table-action-gallery-cover-fit-cover': string;
|
|
35
44
|
'table-column-group-records': string;
|
|
36
45
|
'table-column-group-lock-tip': string;
|
|
37
46
|
'record-board-uniform-summary-empty': string;
|