@pisell/materials 3.3.9 → 3.3.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.
- 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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/productCard/components/Sales/index.js +2 -1
- package/es/components/productCard/locales.d.ts +63 -0
- package/es/components/productCard/locales.js +6 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/productCard/components/Sales/index.js +2 -1
- package/lib/components/productCard/locales.d.ts +63 -0
- package/lib/components/productCard/locales.js +6 -3
- package/package.json +3 -3
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -22
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/types.d.ts +0 -251
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/components/walletCard/index.d.ts +0 -65
- package/es/index.d.ts +0 -141
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -97
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/components/walletCard/index.d.ts +0 -65
- package/lib/index.d.ts +0 -141
package/es/index.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version, } from 'antd';
|
|
2
|
-
export { default as AutoComplete } from './components/auto-complete';
|
|
3
|
-
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
4
|
-
export { default as Badge } from './components/badge';
|
|
5
|
-
export { default as BatchEditor } from './components/batch-editor';
|
|
6
|
-
export { default as Button } from './components/button';
|
|
7
|
-
export { default as ButtonGroupEdit } from './components/buttonGroupEdit';
|
|
8
|
-
export { default as ButtonGroupPreview } from './components/buttonGroupPreview';
|
|
9
|
-
export { default as Calendar } from './components/calendar';
|
|
10
|
-
export { default as CardMetricItem } from './components/cardMetricItem';
|
|
11
|
-
export { default as CardPro } from './components/cardPro';
|
|
12
|
-
export { default as Cascader } from './components/cascader';
|
|
13
|
-
export { default as Checkbox } from './components/checkbox';
|
|
14
|
-
export { default as ClassicLayout } from './components/classicLayout';
|
|
15
|
-
export { default as Component } from './components/component';
|
|
16
|
-
export { default as ConfigProvider } from './components/config-provider';
|
|
17
|
-
export { default as CropPhoto } from './components/cropPhoto';
|
|
18
|
-
export { default as DataSourceForm } from './components/dataSourceComponents/dataSourceForm';
|
|
19
|
-
export { default as FormGroup } from './components/dataSourceComponents/dataSourceForm/group';
|
|
20
|
-
export { default as JsonWrapper } from './components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider';
|
|
21
|
-
export { default as SubmitButton } from './components/dataSourceComponents/dataSourceForm/submitButton';
|
|
22
|
-
export { default as DataSourceMenu } from './components/dataSourceComponents/dataSourceMenu';
|
|
23
|
-
export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
|
|
24
|
-
export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
|
|
25
|
-
export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
|
|
26
|
-
export { default as DataSourceTable } from './components/dataSourceComponents/dataSourceTable';
|
|
27
|
-
export { default as DataSourceWrapper } from './components/dataSourceComponents/dataSourceWrapper';
|
|
28
|
-
export { default as FormItemCheckbox } from './components/dataSourceComponents/fields/Checkbox';
|
|
29
|
-
export { default as FormItemColorPicker } from './components/dataSourceComponents/fields/ColorPicker';
|
|
30
|
-
export { default as FormItemDatePicker } from './components/dataSourceComponents/fields/DatePicker';
|
|
31
|
-
export { default as FormItemInput } from './components/dataSourceComponents/fields/Input';
|
|
32
|
-
export { default as FormItemInputNumber } from './components/dataSourceComponents/fields/InputNumber';
|
|
33
|
-
export { default as FormItemRadio } from './components/dataSourceComponents/fields/Radio';
|
|
34
|
-
export { default as FormItemSelect } from './components/dataSourceComponents/fields/Select';
|
|
35
|
-
export { default as FormItemTimePicker } from './components/dataSourceComponents/fields/TimePicker';
|
|
36
|
-
export { default as FormItemTranslation } from './components/dataSourceComponents/fields/Translation';
|
|
37
|
-
export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
|
|
38
|
-
export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
|
|
39
|
-
export { default as DatePicker } from './components/date-picker';
|
|
40
|
-
export { default as Div } from './components/div';
|
|
41
|
-
export { default as DragSortTree } from './components/drag-sort-tree';
|
|
42
|
-
export { default as Drawer } from './components/drawer';
|
|
43
|
-
export { default as Dropdown } from './components/dropdown';
|
|
44
|
-
export { default as Filter } from './components/filter';
|
|
45
|
-
export { default as Form } from './components/form';
|
|
46
|
-
export { default as Icon } from './components/icon';
|
|
47
|
-
export { default as Iconfont } from './components/iconfont';
|
|
48
|
-
export { default as Input } from './components/input';
|
|
49
|
-
export { default as InputNumberRange } from './components/input-number-range';
|
|
50
|
-
export { default as List } from './components/list';
|
|
51
|
-
export { default as loginAndRegister } from './components/login-and-register';
|
|
52
|
-
export { default as LowCodePage } from './components/lowCodePage';
|
|
53
|
-
export { default as Modal } from './components/modal';
|
|
54
|
-
export { default as OrganizationTenantSwitcher } from './components/organizationTenantSwitcher';
|
|
55
|
-
export { default as Page } from './components/page';
|
|
56
|
-
export { default as PageHeader } from './components/page-header';
|
|
57
|
-
export { default as PisellConfigProvider } from './components/pisell-config-provider';
|
|
58
|
-
export { default as PisellContext, globalConfig, } from './components/pisell-config-provider/context';
|
|
59
|
-
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
60
|
-
export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
|
|
61
|
-
export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
|
|
62
|
-
export { default as PisellAlert } from './components/pisellAlert';
|
|
63
|
-
export { default as PisellAnchor } from './components/pisellAnchor';
|
|
64
|
-
export { default as PisellAvatar } from './components/pisellAvatar';
|
|
65
|
-
export { default as PisellCard } from './components/pisellCard';
|
|
66
|
-
export { default as PisellCardList } from './components/pisellCardList';
|
|
67
|
-
export { default as PisellCheckboxGroup } from './components/pisellCheckboxGroup';
|
|
68
|
-
export { default as PisellContainer } from './components/pisellContainer';
|
|
69
|
-
export { default as PisellCountdown } from './components/pisellCountdown';
|
|
70
|
-
export { default as PisellDatePicker } from './components/pisellDatePicker';
|
|
71
|
-
export { default as PisellDraggable } from './components/pisellDraggable';
|
|
72
|
-
export { default as PisellEmpty } from './components/pisellEmpty';
|
|
73
|
-
export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
|
|
74
|
-
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
75
|
-
export { default as PisellInput } from './components/pisellInput';
|
|
76
|
-
export { getBankCardTypeImg } from './components/pisellInput/components/BankCard/utils';
|
|
77
|
-
export { default as PisellQrcode } from './components/pisellQrcode';
|
|
78
|
-
export { default as PisellLayout } from './components/pisellLayout';
|
|
79
|
-
export { default as PisellContent } from './components/pisellLayout/content';
|
|
80
|
-
export { default as PisellFooter } from './components/pisellLayout/footer';
|
|
81
|
-
export { default as PisellHeader } from './components/pisellLayout/header';
|
|
82
|
-
export { default as PisellSider } from './components/pisellLayout/sider';
|
|
83
|
-
export { default as PisellLoading } from './components/pisellLoading';
|
|
84
|
-
export { default as PisellMenu } from './components/pisellMenu';
|
|
85
|
-
export type { PisellMenuProps } from './components/pisellMenu/types';
|
|
86
|
-
export { default as PisellModal } from './components/pisellModal';
|
|
87
|
-
export { default as PisellQRScanner } from './components/pisellQRScanner';
|
|
88
|
-
export type { PisellQRScannerProps } from './components/pisellQRScanner';
|
|
89
|
-
export { default as PisellRow } from './components/pisellRow';
|
|
90
|
-
export { default as PisellScan } from './components/pisellScan';
|
|
91
|
-
export { default as PisellStatisticList } from './components/pisellStatisticList';
|
|
92
|
-
export { default as PisellTags } from './components/pisellTags';
|
|
93
|
-
export { default as PisellText } from './components/pisellText';
|
|
94
|
-
export { default as PisellToast } from './components/pisellToast';
|
|
95
|
-
export { default as PisellTooltip } from './components/pisellTooltip';
|
|
96
|
-
export { default as PisellUpload } from './components/pisellUpload';
|
|
97
|
-
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
98
|
-
export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
|
|
99
|
-
export { default as ProfileMenu } from './components/profileMenu';
|
|
100
|
-
export { default as QRCode } from './components/qrcode';
|
|
101
|
-
export { default as Radio } from './components/radio';
|
|
102
|
-
export { default as RecordView } from './components/record-view';
|
|
103
|
-
export { default as Segmented } from './components/segmented';
|
|
104
|
-
export { default as Select } from './components/select';
|
|
105
|
-
export { default as SelectTime } from './components/select-time';
|
|
106
|
-
export { default as Skeleton } from './components/skeleton';
|
|
107
|
-
export { default as Slider } from './components/slider';
|
|
108
|
-
export { default as Sort } from './components/sort';
|
|
109
|
-
export { default as SortableList } from './components/sortableList';
|
|
110
|
-
export { default as Table } from './components/table';
|
|
111
|
-
export { default as Tabs } from './components/tabs';
|
|
112
|
-
export { default as TimePicker } from './components/time-picker';
|
|
113
|
-
export { default as Translation } from './components/translation';
|
|
114
|
-
export { default as TreeSelect } from './components/tree-select';
|
|
115
|
-
export { default as Typography } from './components/typography';
|
|
116
|
-
export { default as Upload } from './components/upload';
|
|
117
|
-
export { default as VirtualKeyboard } from './components/virtual-keyboard';
|
|
118
|
-
export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
|
|
119
|
-
export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
|
|
120
|
-
export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
|
|
121
|
-
export { default as WalletCard } from './components/walletCard';
|
|
122
|
-
export { default as PublishVersionModal } from './components/versionModal';
|
|
123
|
-
export { default as IconSelect } from './components/iconSelect';
|
|
124
|
-
export { default as CustomSelect } from './components/customSelect';
|
|
125
|
-
export { default as AppVersionControl } from './components/appVersionControl';
|
|
126
|
-
export { default as Image } from './components/image';
|
|
127
|
-
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
128
|
-
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
129
|
-
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
130
|
-
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
|
131
|
-
export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
|
|
132
|
-
export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
|
|
133
|
-
export { default as PisellDropdown } from './components/pisellDropdown';
|
|
134
|
-
export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
|
|
135
|
-
export { default as PisellImageCarousels } from './components/pisellImageCarousels';
|
|
136
|
-
export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
|
|
137
|
-
export { default as PisellList01 } from './components/pisellList01';
|
|
138
|
-
export { default as SectionFooters } from './components/section-footers';
|
|
139
|
-
export { default as ProductCard } from './components/productCard';
|
|
140
|
-
export { default as Collapse } from './components/collapse';
|
|
141
|
-
export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import { ModeType } from './type';
|
|
4
|
-
import './style.less';
|
|
5
|
-
export interface WithModeProps {
|
|
6
|
-
renderMode?: ModeType;
|
|
7
|
-
value?: any;
|
|
8
|
-
onChange?: (value: any) => void;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @title: 增加renderMode属性
|
|
13
|
-
* @description: 基于renderMode属性控制渲染模式
|
|
14
|
-
* @return: *
|
|
15
|
-
* @Author: shengjie.zuo
|
|
16
|
-
* @Date: 2024-11-23 17:13:18
|
|
17
|
-
*/
|
|
18
|
-
export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
|
|
19
|
-
renderMode: ModeType;
|
|
20
|
-
}> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
|
|
21
|
-
export interface WithFormItemProps {
|
|
22
|
-
name: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
mode?: ModeType;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
export declare const formItemNameReplace: (name: string) => string;
|
|
28
|
-
export declare const formItemNameReverse: (name: string) => string;
|
|
29
|
-
export declare const isValidDomain: (value: string) => boolean;
|
|
30
|
-
/**
|
|
31
|
-
* @title: 追加formItem层
|
|
32
|
-
* @description:
|
|
33
|
-
* @return: *
|
|
34
|
-
* @Author: shengjie.zuo
|
|
35
|
-
* @Date: 2024-11-23 17:14:25
|
|
36
|
-
*/
|
|
37
|
-
export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
|
|
38
|
-
otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
|
|
39
|
-
innerProps?: Record<string, any> | undefined;
|
|
40
|
-
} | undefined) => React.FC<P & WithFormItemProps>;
|
|
41
|
-
export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
42
|
-
dataSource?: any;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
45
|
-
options?: any;
|
|
46
|
-
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
47
|
-
labelField: string;
|
|
48
|
-
valueField: string;
|
|
49
|
-
extraParams?: Record<string, any> | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
|
|
52
|
-
export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
|
|
53
|
-
export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
|
|
54
|
-
export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
|
|
55
|
-
export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
|
|
56
|
-
export declare const setFormFieldsUntouched: (form: FormInstance) => void;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Drawer } from 'antd';
|
|
2
|
-
import { OperationItem } from '../type';
|
|
3
|
-
declare const useDrawerState: (operationContent?: {
|
|
4
|
-
[key: string]: import("react").ReactNode;
|
|
5
|
-
} | undefined) => {
|
|
6
|
-
drawerVisible: boolean;
|
|
7
|
-
setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
-
openDrawer: (item: OperationItem) => void;
|
|
9
|
-
closeDrawer: () => void;
|
|
10
|
-
drawerContent: import("react").ReactNode;
|
|
11
|
-
Container: {
|
|
12
|
-
(props: import("../../../pisellModal").PisellModalProps): JSX.Element;
|
|
13
|
-
confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
14
|
-
destroy: () => void;
|
|
15
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
16
|
-
};
|
|
17
|
-
info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
18
|
-
destroy: () => void;
|
|
19
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
20
|
-
};
|
|
21
|
-
error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
22
|
-
destroy: () => void;
|
|
23
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
24
|
-
};
|
|
25
|
-
warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
|
|
26
|
-
warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
27
|
-
destroy: () => void;
|
|
28
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
29
|
-
};
|
|
30
|
-
success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
|
|
31
|
-
destroy: () => void;
|
|
32
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
33
|
-
};
|
|
34
|
-
Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
|
|
35
|
-
} | typeof Drawer;
|
|
36
|
-
containerProps: {};
|
|
37
|
-
};
|
|
38
|
-
export default useDrawerState;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DataSourceTableProps } from '../type';
|
|
3
|
-
import { OperationItem } from '../type';
|
|
4
|
-
interface UseTablePropsProps {
|
|
5
|
-
data: any;
|
|
6
|
-
originProps: DataSourceTableProps;
|
|
7
|
-
openDrawer: (type: OperationItem) => void;
|
|
8
|
-
closeDrawer: () => void;
|
|
9
|
-
refreshData: () => void;
|
|
10
|
-
handleFilterChange: (changedFields: any, allFields: any) => void;
|
|
11
|
-
tableRef: any;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 处理table的props
|
|
15
|
-
* 转换title
|
|
16
|
-
* @param props
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
|
-
pagination: {
|
|
22
|
-
total: number;
|
|
23
|
-
current: number;
|
|
24
|
-
pageSize: number;
|
|
25
|
-
size: string;
|
|
26
|
-
showSizeChanger: boolean;
|
|
27
|
-
};
|
|
28
|
-
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
|
-
buttons: any[] | null;
|
|
31
|
-
filter: JSX.Element | null;
|
|
32
|
-
onRow: (record: any) => any;
|
|
33
|
-
actionButtons: any[] | null;
|
|
34
|
-
titleButtons?: {
|
|
35
|
-
show: boolean;
|
|
36
|
-
maxCount: number;
|
|
37
|
-
items: OperationItem[];
|
|
38
|
-
} | undefined;
|
|
39
|
-
tableButtons?: {
|
|
40
|
-
show: boolean;
|
|
41
|
-
maxCount: number;
|
|
42
|
-
items: OperationItem[];
|
|
43
|
-
} | undefined;
|
|
44
|
-
operation?: {
|
|
45
|
-
show: boolean;
|
|
46
|
-
title: string; /**
|
|
47
|
-
* 处理table的props
|
|
48
|
-
* 转换title
|
|
49
|
-
* @param props
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
width: number;
|
|
53
|
-
align: "center" | "left" | "right";
|
|
54
|
-
fixed: false | "left" | "right";
|
|
55
|
-
type: "button" | "link";
|
|
56
|
-
items: OperationItem[];
|
|
57
|
-
} | undefined;
|
|
58
|
-
operationContent?: {
|
|
59
|
-
[key: string]: React.ReactNode;
|
|
60
|
-
} | undefined;
|
|
61
|
-
dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
|
|
62
|
-
search?: {
|
|
63
|
-
show: boolean;
|
|
64
|
-
placeholder: string;
|
|
65
|
-
} | undefined;
|
|
66
|
-
__designMode: string;
|
|
67
|
-
componentId: string;
|
|
68
|
-
clickToDetail?: {
|
|
69
|
-
show: boolean;
|
|
70
|
-
useCustomAction: boolean;
|
|
71
|
-
actionType: string;
|
|
72
|
-
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "small" | "large" | "middle";
|
|
74
|
-
openTitle: string;
|
|
75
|
-
key: string;
|
|
76
|
-
} | undefined;
|
|
77
|
-
filterBy?: Record<string, any> | undefined;
|
|
78
|
-
sortBy: string;
|
|
79
|
-
tabs?: {
|
|
80
|
-
show: boolean;
|
|
81
|
-
type: string;
|
|
82
|
-
items: {
|
|
83
|
-
name: string;
|
|
84
|
-
filterBy: Record<string, any>;
|
|
85
|
-
sortBy: string;
|
|
86
|
-
}[];
|
|
87
|
-
} | undefined;
|
|
88
|
-
onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
|
|
89
|
-
extraParams?: {
|
|
90
|
-
list?: Record<string, any> | undefined;
|
|
91
|
-
get?: Record<string, any> | undefined;
|
|
92
|
-
update?: Record<string, any> | undefined;
|
|
93
|
-
create?: Record<string, any> | undefined;
|
|
94
|
-
destroy?: Record<string, any> | undefined;
|
|
95
|
-
} | undefined;
|
|
96
|
-
};
|
|
97
|
-
export default useTableProps;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnType } from 'antd/es/table';
|
|
3
|
-
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
4
|
-
export declare type OperationItem = {
|
|
5
|
-
label?: string;
|
|
6
|
-
openMode: 'modal' | 'drawer' | 'custom';
|
|
7
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
8
|
-
openTitle: string;
|
|
9
|
-
actionType: 'detail' | 'edit' | 'delete' | 'custom';
|
|
10
|
-
key: string;
|
|
11
|
-
buttonProps?: any;
|
|
12
|
-
onClick?: (record: any) => void;
|
|
13
|
-
};
|
|
14
|
-
export interface DataSourceTableProps {
|
|
15
|
-
title?: string | React.ReactNode | (() => React.ReactNode);
|
|
16
|
-
subTitle?: string | React.ReactNode | (() => React.ReactNode);
|
|
17
|
-
titleButtons?: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
maxCount: number;
|
|
20
|
-
items: OperationItem[];
|
|
21
|
-
};
|
|
22
|
-
tableButtons?: {
|
|
23
|
-
show: boolean;
|
|
24
|
-
maxCount: number;
|
|
25
|
-
items: OperationItem[];
|
|
26
|
-
};
|
|
27
|
-
buttons?: any[];
|
|
28
|
-
operation?: {
|
|
29
|
-
show: boolean;
|
|
30
|
-
title: string;
|
|
31
|
-
width: number;
|
|
32
|
-
align: 'left' | 'center' | 'right';
|
|
33
|
-
fixed: 'left' | 'right' | false;
|
|
34
|
-
type: 'link' | 'button';
|
|
35
|
-
items: OperationItem[];
|
|
36
|
-
};
|
|
37
|
-
operationContent?: {
|
|
38
|
-
[key: string]: React.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
dataSource: DataSourceType;
|
|
41
|
-
columns: ColumnType<any>[];
|
|
42
|
-
filter: any;
|
|
43
|
-
search?: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
};
|
|
47
|
-
__designMode: string;
|
|
48
|
-
componentId: string;
|
|
49
|
-
clickToDetail?: {
|
|
50
|
-
show: boolean;
|
|
51
|
-
useCustomAction: boolean;
|
|
52
|
-
actionType: string;
|
|
53
|
-
openMode: 'modal' | 'drawer';
|
|
54
|
-
openContentSize: 'small' | 'middle' | 'large';
|
|
55
|
-
openTitle: string;
|
|
56
|
-
key: string;
|
|
57
|
-
};
|
|
58
|
-
onRow?: any;
|
|
59
|
-
filterBy?: Record<string, any>;
|
|
60
|
-
sortBy: string;
|
|
61
|
-
tabs?: {
|
|
62
|
-
show: boolean;
|
|
63
|
-
type: string;
|
|
64
|
-
items: {
|
|
65
|
-
name: string;
|
|
66
|
-
filterBy: Record<string, any>;
|
|
67
|
-
sortBy: string;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
onValuesChange?: (changedValues: any, values: any) => void;
|
|
71
|
-
extraParams?: {
|
|
72
|
-
list?: Record<string, any>;
|
|
73
|
-
get?: Record<string, any>;
|
|
74
|
-
update?: Record<string, any>;
|
|
75
|
-
create?: Record<string, any>;
|
|
76
|
-
destroy?: Record<string, any>;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
5
|
-
renderMode: ModeType;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
10
|
-
export default MobileNumberInputWithMode;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
4
|
-
export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
5
|
-
renderMode: ModeType;
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
10
|
-
export default PhoneNumberInputWithMode;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取nocobase数据列表
|
|
3
|
-
*/
|
|
4
|
-
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
-
export interface Country {
|
|
6
|
-
id: number;
|
|
7
|
-
name: {
|
|
8
|
-
en: string;
|
|
9
|
-
"zh-CN": string;
|
|
10
|
-
"zh-HK": string;
|
|
11
|
-
original: string;
|
|
12
|
-
};
|
|
13
|
-
code: string;
|
|
14
|
-
calling_code: string;
|
|
15
|
-
currency_code: string;
|
|
16
|
-
sort: number;
|
|
17
|
-
status: string;
|
|
18
|
-
created_at: string;
|
|
19
|
-
updated_at: string;
|
|
20
|
-
prefix: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const useCountries: () => {
|
|
23
|
-
data: Country[];
|
|
24
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
/**
|
|
4
|
-
* loginAndRegister组件的属性接口
|
|
5
|
-
*/
|
|
6
|
-
export interface loginAndRegisterProps {
|
|
7
|
-
/** Logo相关配置 */
|
|
8
|
-
showLogo?: boolean;
|
|
9
|
-
logo?: string;
|
|
10
|
-
logoPosition?: 'left' | 'center' | 'right';
|
|
11
|
-
logoSize?: {
|
|
12
|
-
width?: number;
|
|
13
|
-
height?: number;
|
|
14
|
-
};
|
|
15
|
-
/** 标题相关配置 */
|
|
16
|
-
title?: string;
|
|
17
|
-
showTitle?: boolean;
|
|
18
|
-
titleAlign?: 'left' | 'center' | 'right';
|
|
19
|
-
/** 副标题相关配置 */
|
|
20
|
-
subtitle?: string;
|
|
21
|
-
showSubtitle?: boolean;
|
|
22
|
-
subtitleAlign?: 'left' | 'center' | 'right';
|
|
23
|
-
/** 登录方式配置 */
|
|
24
|
-
loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
|
|
25
|
-
defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
|
|
26
|
-
/** 表单配置 */
|
|
27
|
-
emailLabel?: string;
|
|
28
|
-
passwordLabel?: string;
|
|
29
|
-
emailPlaceholder?: string;
|
|
30
|
-
passwordPlaceholder?: string;
|
|
31
|
-
emailRules?: any[];
|
|
32
|
-
buttonText?: string;
|
|
33
|
-
rememberMeText?: string;
|
|
34
|
-
forgotPasswordText?: string;
|
|
35
|
-
showRememberMe?: boolean;
|
|
36
|
-
showForgotPassword?: boolean;
|
|
37
|
-
/** 社交登录配置 */
|
|
38
|
-
socialLoginTexts?: {
|
|
39
|
-
google?: string;
|
|
40
|
-
facebook?: string;
|
|
41
|
-
apple?: string;
|
|
42
|
-
};
|
|
43
|
-
/** 底部配置 */
|
|
44
|
-
showFooter?: boolean;
|
|
45
|
-
showSignUp?: boolean;
|
|
46
|
-
signUpText?: string;
|
|
47
|
-
signUpLink?: string;
|
|
48
|
-
signUpPosition?: 'left' | 'center' | 'right';
|
|
49
|
-
otherLinks?: Array<{
|
|
50
|
-
text: string;
|
|
51
|
-
url: string;
|
|
52
|
-
}>;
|
|
53
|
-
otherLinksPosition?: 'left' | 'center' | 'right';
|
|
54
|
-
/** 登录/注册切换配置 */
|
|
55
|
-
showTabs?: boolean;
|
|
56
|
-
loginTabText?: string;
|
|
57
|
-
registerTabText?: string;
|
|
58
|
-
/** 注册表单配置 */
|
|
59
|
-
registerEmailPlaceholder?: string;
|
|
60
|
-
registerPasswordPlaceholder?: string;
|
|
61
|
-
registerButtonText?: string;
|
|
62
|
-
/** 事件回调 */
|
|
63
|
-
onLogin?: (values: {
|
|
64
|
-
email: string;
|
|
65
|
-
loginMethod: string;
|
|
66
|
-
}) => void;
|
|
67
|
-
onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
|
|
68
|
-
onSignUp?: () => void;
|
|
69
|
-
onRegister?: (values: {
|
|
70
|
-
email: string;
|
|
71
|
-
password: string;
|
|
72
|
-
}) => void;
|
|
73
|
-
/** 新增背景图片属性 */
|
|
74
|
-
backgroundImage?: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Saas登录组件
|
|
78
|
-
* @param props - 组件属性
|
|
79
|
-
* @returns React组件
|
|
80
|
-
*/
|
|
81
|
-
declare const loginAndRegister: React.FC<loginAndRegisterProps>;
|
|
82
|
-
export default loginAndRegister;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmptyProps } from 'antd';
|
|
3
|
-
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface PisellEmptyProps extends EmptyProps {
|
|
6
|
-
/** 平台 */
|
|
7
|
-
platform?: PisellContextType['platform'];
|
|
8
|
-
/** 额外内容描述 */
|
|
9
|
-
extraDescription?: React.ReactNode;
|
|
10
|
-
/** 额外内容描述 */
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
/** 自定义底部额外操作区域 */
|
|
13
|
-
footer?: React.ReactNode;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
/** 最大宽度 */
|
|
16
|
-
maxWidth?: number;
|
|
17
|
-
}
|
|
18
|
-
declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
|
|
19
|
-
export default PisellEmpty;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { GallerySettingType, GallerySettingValueType } from "../../../types";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
declare type GalleryItemProps = {
|
|
5
|
-
record: Record<string, any>;
|
|
6
|
-
gallery: GallerySettingType;
|
|
7
|
-
columnsMap: Map<string, Record<string, any>>;
|
|
8
|
-
index: number;
|
|
9
|
-
gallerySetting: GallerySettingValueType;
|
|
10
|
-
columns: Record<string, any>[];
|
|
11
|
-
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
12
|
-
};
|
|
13
|
-
declare const GalleryItem: (props: GalleryItemProps) => JSX.Element;
|
|
14
|
-
export default GalleryItem;
|