@pisell/materials 1.0.798 → 1.0.799

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 (95) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +5 -5
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +14 -14
  11. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  12. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  13. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  14. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  15. package/es/components/productCard/components/Header/EditButton/index.js +22 -0
  16. package/es/components/productCard/components/Header/EditButton/index.less +26 -0
  17. package/es/components/productCard/components/Header/index.js +12 -42
  18. package/es/components/productCard/components/Header/index.less +4 -0
  19. package/es/components/productCard/index.js +1 -1
  20. package/es/components/table/Table/fields/index.d.ts +2 -2
  21. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  22. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  23. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  24. package/lib/components/productCard/components/Header/{ActionButton → DeleteButton}/index.js +6 -6
  25. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  26. package/lib/components/productCard/components/Header/EditButton/index.js +62 -0
  27. package/lib/components/productCard/components/Header/EditButton/index.less +26 -0
  28. package/lib/components/productCard/components/Header/index.js +13 -40
  29. package/lib/components/productCard/components/Header/index.less +4 -0
  30. package/lib/components/productCard/index.js +2 -2
  31. package/lib/components/table/Table/fields/index.d.ts +2 -2
  32. package/package.json +3 -3
  33. package/es/components/appVersionControl/index.d.ts +0 -4
  34. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  35. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  36. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  37. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  38. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  39. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  40. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  41. package/es/components/drag-sort-tree/index.d.ts +0 -3
  42. package/es/components/login-and-register/index.d.ts +0 -82
  43. package/es/components/pisell-config-provider/index.d.ts +0 -12
  44. package/es/components/pisellCardList/index.d.ts +0 -71
  45. package/es/components/pisellEmpty/index.d.ts +0 -19
  46. package/es/components/productCard/components/Header/ActionButton/index.d.ts +0 -3
  47. package/es/components/productCard/components/Header/Actions/index.d.ts +0 -3
  48. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  49. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  50. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  51. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  52. package/es/components/table/Gallery/index.d.ts +0 -5
  53. package/es/components/table/Table/index.d.ts +0 -4
  54. package/es/components/table/Table/utils.d.ts +0 -173
  55. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  56. package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
  57. package/es/components/table/types.d.ts +0 -253
  58. package/es/components/versionModal/index.d.ts +0 -24
  59. package/es/index.d.ts +0 -141
  60. package/es/locales/en-US.d.ts +0 -276
  61. package/es/locales/zh-CN.d.ts +0 -271
  62. package/es/locales/zh-TW.d.ts +0 -271
  63. package/lib/components/appVersionControl/index.d.ts +0 -4
  64. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  65. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  66. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  67. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  68. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  69. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  70. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  71. package/lib/components/drag-sort-tree/index.d.ts +0 -3
  72. package/lib/components/login-and-register/index.d.ts +0 -82
  73. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  74. package/lib/components/pisellCardList/index.d.ts +0 -71
  75. package/lib/components/pisellEmpty/index.d.ts +0 -19
  76. package/lib/components/productCard/components/Header/ActionButton/index.d.ts +0 -3
  77. package/lib/components/productCard/components/Header/Actions/index.d.ts +0 -3
  78. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  79. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  80. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  81. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  82. package/lib/components/table/Gallery/index.d.ts +0 -5
  83. package/lib/components/table/Table/index.d.ts +0 -4
  84. package/lib/components/table/Table/utils.d.ts +0 -173
  85. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  86. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
  87. package/lib/components/table/types.d.ts +0 -253
  88. package/lib/components/versionModal/index.d.ts +0 -24
  89. package/lib/index.d.ts +0 -141
  90. package/lib/locales/en-US.d.ts +0 -276
  91. package/lib/locales/zh-CN.d.ts +0 -271
  92. package/lib/locales/zh-TW.d.ts +0 -271
  93. /package/es/components/productCard/components/Header/{ActionButton → DeleteButton}/index.js +0 -0
  94. /package/es/components/productCard/components/Header/{ActionButton → DeleteButton}/index.less +0 -0
  95. /package/lib/components/productCard/components/Header/{ActionButton → DeleteButton}/index.less +0 -0
@@ -1,4 +0,0 @@
1
- import { AppVersionControlProps } from './types';
2
- import './index.less';
3
- declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
- export default AppVersionControl;
@@ -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?: "default" | "custom" | "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,39 +0,0 @@
1
- import { Drawer } from 'antd';
2
- import React from 'react';
3
- import { OperationItem } from '../type';
4
- declare const useDrawerState: (operationContent?: {
5
- [key: string]: React.ReactNode;
6
- } | undefined) => {
7
- drawerVisible: boolean;
8
- setDrawerVisible: React.Dispatch<React.SetStateAction<boolean>>;
9
- openDrawer: (item: OperationItem) => void;
10
- closeDrawer: () => void;
11
- drawerContent: React.ReactNode;
12
- Container: {
13
- (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
14
- confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
15
- destroy: () => void;
16
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
17
- };
18
- info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
19
- destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
- };
22
- error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
23
- destroy: () => void;
24
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
25
- };
26
- warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
27
- warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
28
- destroy: () => void;
29
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
30
- };
31
- success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
32
- destroy: () => void;
33
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
34
- };
35
- Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
36
- } | typeof Drawer;
37
- containerProps: {};
38
- };
39
- export default useDrawerState;
@@ -1,98 +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: "link" | "button";
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" | "middle" | "large";
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
- onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
90
- extraParams?: {
91
- list?: Record<string, any> | undefined;
92
- get?: Record<string, any> | undefined;
93
- update?: Record<string, any> | undefined;
94
- create?: Record<string, any> | undefined;
95
- destroy?: Record<string, any> | undefined;
96
- } | undefined;
97
- };
98
- export default useTableProps;
@@ -1,79 +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
- onDeleteFinish?: (record: Record<string, any>) => void;
72
- extraParams?: {
73
- list?: Record<string, any>;
74
- get?: Record<string, any>;
75
- update?: Record<string, any>;
76
- create?: Record<string, any>;
77
- destroy?: Record<string, any>;
78
- };
79
- }
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from 'antd';
3
- import { ModeType } from "../../dataSourceForm/type";
4
- declare type PhoneValue = string | {
5
- phone: string;
6
- countryCallingCode: string;
7
- };
8
- export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
9
- renderMode: ModeType;
10
- value?: PhoneValue;
11
- onChange?: (value: PhoneValue) => void;
12
- returnFormat?: 'string' | 'object';
13
- inputRef?: any;
14
- }
15
- declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
16
- export default MobileNumberInputWithMode;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from 'antd';
3
- import { ModeType } from "../../dataSourceForm/type";
4
- declare type PhoneValue = string | {
5
- phone: string;
6
- countryCallingCode: string;
7
- };
8
- export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
9
- renderMode: ModeType;
10
- value?: PhoneValue;
11
- onChange?: (value: PhoneValue) => void;
12
- returnFormat?: 'string' | 'object';
13
- inputRef?: any;
14
- }
15
- declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
16
- export default PhoneNumberInputWithMode;
@@ -1,25 +0,0 @@
1
- /**
2
- * 获取nocobase数据列表
3
- */
4
- export declare const getCountryDataList: () => Promise<any>;
5
- export declare const getShopCountryDataList: (locale?: any) => Promise<any>;
6
- export interface Country {
7
- id: number;
8
- name: {
9
- en: string;
10
- "zh-CN": string;
11
- "zh-HK": string;
12
- original: string;
13
- };
14
- code: string;
15
- calling_code: string;
16
- currency_code: string;
17
- sort: number;
18
- status: string;
19
- created_at: string;
20
- updated_at: string;
21
- prefix: string;
22
- }
23
- export declare const useCountries: () => {
24
- data: Country[];
25
- };
@@ -1,3 +0,0 @@
1
- import { SortType } from './types';
2
- declare const DragSortTree: (props: SortType) => JSX.Element;
3
- export default DragSortTree;
@@ -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,12 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from './context';
3
- interface PisellConfigProviderType {
4
- platform?: PisellContextType['platform'];
5
- children: React.ReactNode;
6
- /** 货币符号 */
7
- symbol?: string;
8
- /** 当前语言环境 */
9
- locale?: string;
10
- }
11
- declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
- export default PisellConfigProvider;
@@ -1,71 +0,0 @@
1
- import React from 'react';
2
- import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
- import { PisellContextType } from '../pisell-config-provider/context';
4
- import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
5
- import './index.less';
6
- export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
7
- platform?: PisellContextType['platform'];
8
- /** 当用户查看完所有记录时,底部会显示此消息 */
9
- endMessage?: React.ReactNode;
10
- /** 加载下次数据时的加载站位 */
11
- loader?: React.ReactNode;
12
- /** 是否有更多数据 */
13
- hasMore: boolean;
14
- /** 加载更多数据回调 */
15
- loadMoreData?: () => Promise<void>;
16
- /** 当前list数据 */
17
- data: PisellWalletPassCardProps[];
18
- /** list空数据时展示内容 */
19
- empty?: React.ReactNode;
20
- /** 是否展示空状态 */
21
- showEmpty?: boolean;
22
- /** 是否展示卡片名称 */
23
- showName?: boolean;
24
- /** 是否展示店铺名称 */
25
- showStoreName?: boolean;
26
- /** 是否展示核销金额 */
27
- showRedeem?: boolean;
28
- /** 是否展示余额 */
29
- showBalance?: boolean;
30
- /** 是否展示编码 */
31
- showCode?: boolean;
32
- /** 是否展示到期时间 */
33
- showValidDate?: boolean;
34
- /** 是否展示详情按钮 */
35
- showDetail?: boolean;
36
- /** 是否展示二维码 */
37
- showQrCode?: boolean;
38
- /** 是否展示封面图 */
39
- showCover?: boolean;
40
- /** 是否余额货币单位 */
41
- showBalanceSymbol?: boolean;
42
- /** 卡片大小 */
43
- type?: 'default' | 'mini';
44
- /** 展示操作按钮 */
45
- showActions?: boolean;
46
- /** 操作按钮配置 */
47
- actions?: {
48
- /** 按钮展示方式 */
49
- layout: 'expanded' | 'collapsed';
50
- /** detail 按钮配置 */
51
- detail?: {
52
- visible: boolean;
53
- iconColor: string;
54
- };
55
- /** edit按钮配置 */
56
- edit?: {
57
- visible: boolean;
58
- iconColor: string;
59
- dialogTitle: string;
60
- enableDialog: boolean;
61
- fields: {
62
- name: string;
63
- label: string;
64
- };
65
- };
66
- };
67
- /** 编辑弹窗点击提交 */
68
- onConfirmEdit?: (value: any, index: number) => void;
69
- }
70
- declare const _default: React.NamedExoticComponent<PisellCardListProps>;
71
- export default _default;
@@ -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
- /** 最大宽度 */
15
- maxWidth?: number;
16
- [key: string]: any;
17
- }
18
- declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
19
- export default PisellEmpty;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const DeleteButton: ({ onClick, type }: any) => JSX.Element;
3
- export default DeleteButton;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Actions: ({ children, style }: any) => JSX.Element | null;
3
- export default Actions;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, }: any) => JSX.Element;
3
- export default SelectHolder;
@@ -1,18 +0,0 @@
1
- import './index.less';
2
- interface ResourceItem {
3
- id: string | number;
4
- label: string;
5
- isError?: boolean;
6
- [key: string]: any;
7
- }
8
- interface SelectResourceProps {
9
- lists: ResourceItem[];
10
- value: any;
11
- onChange: (val: any) => void;
12
- resourceMode?: 'multiple' | 'tags' | undefined;
13
- maxLength?: number;
14
- isParallelResource?: boolean;
15
- [key: string]: any;
16
- }
17
- declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
- export default SelectResource;
@@ -1,7 +0,0 @@
1
- import { ExportImportType } from '../../../types';
2
- import './index.less';
3
- declare type ExportImportProps = {
4
- exportImport: ExportImportType;
5
- };
6
- declare const ExportImport: ({ exportImport }: ExportImportProps) => JSX.Element;
7
- export default ExportImport;
@@ -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;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { GalleryProps } from './types';
3
- import './index.less';
4
- declare const _default: React.MemoExoticComponent<(props: GalleryProps) => JSX.Element>;
5
- export default _default;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const _default: React.NamedExoticComponent<any>;
4
- export default _default;