@pisell/materials 3.3.40 → 3.3.41

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 (124) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +7 -7
  3. package/build/lowcode/render/default/view.js +10 -10
  4. package/build/lowcode/view.js +10 -10
  5. package/es/components/DragSortList/index.js +6 -6
  6. package/es/components/classicLayout/index.js +4 -5
  7. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  8. package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
  9. package/es/components/date-picker/index.d.ts +1 -0
  10. package/es/components/div/index.d.ts +19 -0
  11. package/es/components/icon/index.js +5 -5
  12. package/es/components/list/index.js +6 -6
  13. package/es/components/page/index.d.ts +1 -0
  14. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  15. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  16. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  17. package/es/components/pisellDraggable/index.d.ts +35 -0
  18. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  19. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  20. package/es/components/pisellDropSort/types.d.ts +58 -0
  21. package/es/components/pisellGoodPassCard/index.d.ts +49 -0
  22. package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
  23. package/es/components/pisellMenu/types.d.ts +27 -0
  24. package/es/components/pisellNavigationMenu/types.d.ts +85 -0
  25. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  26. package/es/components/productCard/utils.js +8 -6
  27. package/es/components/qrcode/index.js +1 -1
  28. package/es/components/sort/components/InlineMenu/index.js +1 -1
  29. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  30. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  31. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  32. package/es/components/table/Header/Buttons/index.js +5 -5
  33. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  34. package/es/components/table/Table/SelectField/index.js +4 -4
  35. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  36. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  37. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  38. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  39. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  40. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  41. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  42. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  43. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  44. package/es/components/table/Table/utils.d.ts +1 -1
  45. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  46. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  47. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  48. package/es/components/translation/index.d.ts +4 -3
  49. package/es/components/translation/index.js +24 -22
  50. package/es/components/translation/utils.js +5 -5
  51. package/es/hooks/useResponsive.js +2 -2
  52. package/es/utils/hoc.js +1 -1
  53. package/es/utils/miniRedux.js +8 -9
  54. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  55. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
  56. package/lib/components/date-picker/index.d.ts +1 -0
  57. package/lib/components/div/index.d.ts +19 -0
  58. package/lib/components/lowCodePage/index.js +1 -2
  59. package/lib/components/page/index.d.ts +1 -0
  60. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  61. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  62. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  63. package/lib/components/pisellDraggable/index.d.ts +35 -0
  64. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  65. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  66. package/lib/components/pisellDropSort/types.d.ts +58 -0
  67. package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
  68. package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
  69. package/lib/components/pisellMenu/types.d.ts +27 -0
  70. package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
  71. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  72. package/lib/components/productCard/utils.js +7 -6
  73. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  74. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  75. package/lib/components/table/Table/fields/utils/index.js +1 -2
  76. package/lib/components/table/Table/utils.d.ts +1 -1
  77. package/lib/components/translation/index.d.ts +4 -3
  78. package/lib/components/translation/index.js +1 -0
  79. package/lib/hooks/useResponsive.js +3 -6
  80. package/package.json +3 -3
  81. package/dist/umd/materials.min.css +0 -1
  82. package/dist/umd/materials.min.js +0 -1
  83. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  84. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  85. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  86. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  87. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  88. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  89. package/es/components/appVersionControl/index.d.ts +0 -4
  90. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  91. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  92. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  93. package/es/components/drag-sort-tree/index.d.ts +0 -4
  94. package/es/components/pisell-config-provider/index.d.ts +0 -12
  95. package/es/components/pisellAdjustPrice/index.d.ts +0 -9
  96. package/es/components/pisellEmpty/index.d.ts +0 -19
  97. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  98. package/es/components/productCard/status.d.ts +0 -32
  99. package/es/components/productCard/types.d.ts +0 -83
  100. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  101. package/es/components/table/Table/index.d.ts +0 -4
  102. package/es/components/table/types.d.ts +0 -251
  103. package/es/components/versionModal/index.d.ts +0 -23
  104. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
  105. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  106. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  107. package/lib/components/appVersionControl/index.d.ts +0 -4
  108. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  109. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  110. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  111. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  112. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  113. package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
  114. package/lib/components/pisellEmpty/index.d.ts +0 -19
  115. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  116. package/lib/components/productCard/status.d.ts +0 -32
  117. package/lib/components/productCard/types.d.ts +0 -83
  118. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  119. package/lib/components/table/Table/index.d.ts +0 -4
  120. package/lib/components/table/types.d.ts +0 -251
  121. package/lib/components/versionModal/index.d.ts +0 -23
  122. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
  123. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  124. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z"/></svg>
@@ -1 +0,0 @@
1
- <svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 3.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L8 6.414V20a1 1 0 1 1-2 0V6.414L3.707 8.707a1 1 0 0 1-1.414-1.414l4-4ZM16 17.586V4a1 1 0 1 1 2 0v13.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L16 17.586Z"/></svg>
@@ -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,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,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,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,4 +0,0 @@
1
- import './index.less';
2
- import { SortType } from './types';
3
- declare const DragSortTree: (props: SortType) => JSX.Element;
4
- export default DragSortTree;
@@ -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,9 +0,0 @@
1
- import './index.less';
2
- export interface PisellAdjustPriceProps {
3
- value?: number;
4
- originValue: number;
5
- defaultValue?: number;
6
- onChange?: (val: number) => void;
7
- }
8
- declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
- export default PisellAdjustPrice;
@@ -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,3 +0,0 @@
1
- import './index.less';
2
- declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
3
- export default DeleteButton;
@@ -1,32 +0,0 @@
1
- import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
- /**
3
- * @title: 套餐数据
4
- * @description:
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2025-01-02 23:21
8
- */
9
- export declare const defaultBundle: bundleType;
10
- /**
11
- * @description: 单规格
12
- * @return {*}
13
- * @Author: WangHan
14
- * @Date: 2025-01-02 23:00
15
- */
16
- export declare const defaultOption: optionType;
17
- /**
18
- * @title: 商品商品类型
19
- * @description:
20
- * @return {*}
21
- * @Author: WangHan
22
- * @Date: 2025-01-02 22:48
23
- */
24
- export declare const defaultProduct: productType;
25
- /**
26
- * @title: 默认数据
27
- * @description:
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2024-12-12 16:49
31
- */
32
- export declare const defaultValue: ProductCardTypes;
@@ -1,83 +0,0 @@
1
- export declare type bundleType = {
2
- id: number;
3
- name: string;
4
- num: number;
5
- price: number;
6
- total: number;
7
- origin_total?: number;
8
- price_type?: string;
9
- options?: optionType[];
10
- };
11
- /**
12
- * @description:
13
- * @return {*}
14
- * @Author: WangHan
15
- * @Date: 2025-01-02 23:00
16
- */
17
- export declare type optionType = {
18
- id: number;
19
- name: string;
20
- num: number;
21
- price: number;
22
- total: number;
23
- origin_total?: number;
24
- };
25
- /**
26
- * @title: 商品商品类型
27
- * @description:
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2025-01-02 22:48
31
- */
32
- export declare type productType = {
33
- _id: string | number;
34
- id: number;
35
- name: string;
36
- price: number;
37
- total: number;
38
- num: number;
39
- origin_total?: number;
40
- image?: string;
41
- isShowNote?: boolean;
42
- note?: string;
43
- like_status?: string;
44
- bundle?: bundleType[];
45
- options?: optionType[];
46
- isShowAction?: boolean;
47
- actionText?: string;
48
- errorMessage?: string;
49
- product_option_string?: string;
50
- discount_reason?: string;
51
- relation_products?: any[];
52
- resource_id?: string | number;
53
- relation_form_name?: string;
54
- holder_title?: string;
55
- start_date?: string;
56
- end_date?: string;
57
- is_show_duration?: boolean;
58
- is_show_week?: boolean;
59
- };
60
- /**
61
- * 排序总配置
62
- */
63
- export declare type ProductCardTypes = {
64
- dataSource: productType;
65
- isShowImage?: boolean;
66
- isShowHolder?: boolean;
67
- isShowNote?: boolean;
68
- isShowPackageNote?: boolean;
69
- isShowDelete?: boolean;
70
- disabledEdit?: boolean;
71
- locale?: string;
72
- symbol?: string;
73
- isShowChangeHolder?: boolean;
74
- isShowChangeResource?: boolean;
75
- isShowChangeDate?: boolean;
76
- onAction?: (val: any) => void;
77
- onDelete?: (val: any) => void;
78
- onNote?: (val: any) => void;
79
- onLike?: (val: any) => void;
80
- onCard?: (val: any) => void;
81
- onChangeResource?: (val: any) => void;
82
- [key: string]: any;
83
- };
@@ -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,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const _default: React.NamedExoticComponent<any>;
4
- export default _default;
@@ -1,251 +0,0 @@
1
- import { FilterType } from "../filter/types";
2
- import { SortItemProps } from "../sort/types";
3
- import React from "react";
4
- export declare type StorageMode = "" | "localStorage";
5
- /**
6
- * 排序总配置
7
- */
8
- export declare type SortType = {
9
- /** 排序是否展示 */
10
- show: boolean;
11
- /** 排序存储模式 */
12
- storageMode: StorageMode;
13
- list: SortItemProps[];
14
- };
15
- /**
16
- * 列展示总配置
17
- */
18
- export declare type ColumnSettingType = {
19
- /** 列设置是否展示 */
20
- show: boolean;
21
- /** 列设置存储模式 */
22
- storageMode: StorageMode;
23
- };
24
- declare type DataSourceListItemType = {
25
- isCustom: boolean;
26
- columnKey?: string;
27
- label?: string;
28
- name?: string | string[];
29
- isHidden?: boolean;
30
- };
31
- /**
32
- * 数据源分组总配置
33
- */
34
- export declare type DataSourceGroupType = {
35
- /** 分组设置是否展示 */
36
- show: boolean;
37
- /** 分组设置存储模式 */
38
- storageMode: StorageMode;
39
- /** */
40
- list: DataSourceListItemType[];
41
- };
42
- /**
43
- * Gallery封面总配置
44
- */
45
- declare type GalleryCoverType = {
46
- /** 封面是否展示 */
47
- show: boolean;
48
- /**
49
- * 封面图片可以使用的字段
50
- */
51
- fields: string[];
52
- /**
53
- * 封面高度
54
- */
55
- height: number;
56
- /** 图片裁剪方式 */
57
- objectFit: "fill" | "cover";
58
- };
59
- /**
60
- * Gallery标题总配置
61
- */
62
- declare type GalleryTitleType = {
63
- /** 标题使用的字段 */
64
- field: string;
65
- /** 标题行数 */
66
- line: number;
67
- };
68
- /**
69
- * Gallery头部区域总配置
70
- */
71
- declare type GalleryHeaderType = {
72
- /** 头部区域插槽 */
73
- slot?: (record: Record<string, any>, index: number) => React.ReactNode;
74
- /** 头部区域其他字段设置 */
75
- fields: {
76
- /** 头部区域其他字段是否展示 */
77
- show: boolean;
78
- /** 头部区域其他字段 */
79
- list: string[];
80
- };
81
- };
82
- /**
83
- * Gallery内容区域总配置
84
- */
85
- declare type GalleryContentType = {
86
- /** 内容区域字段配置 */
87
- fields: {
88
- columnKey: string;
89
- show: boolean;
90
- }[];
91
- };
92
- export declare type GallerySettingValueType = {
93
- coverField: string | "noCover";
94
- coverObjectFit: "fill" | "cover";
95
- compactMode: "default" | "compact";
96
- isShowLabel: boolean;
97
- };
98
- /**
99
- * Gallery底部区域总配置
100
- */
101
- declare type GalleryFooterType = {
102
- /** 底部区域自定义渲染 */
103
- render: (record: Record<string, any>, index: number) => React.ReactNode;
104
- /** 底部区域高度 */
105
- height: number;
106
- };
107
- /**
108
- * Gallery模式总配置
109
- */
110
- export declare type GallerySettingType = {
111
- /** 卡片最小宽度 */
112
- cardMinWidth: number;
113
- /** 卡片最大宽度 */
114
- cardMaxWidth: number;
115
- /** 水平间隔 */
116
- horizontalGutter: number;
117
- /** 垂直间隔 */
118
- verticalGutter: number;
119
- /** 封面配置 */
120
- cover: GalleryCoverType;
121
- /** 标题配置 */
122
- title: GalleryTitleType;
123
- /** 头部区域 */
124
- header: GalleryHeaderType;
125
- /** 内容区域 */
126
- content: GalleryContentType;
127
- /** 固定高度 */
128
- fixedHeight: boolean;
129
- /** 固定的卡片高度 */
130
- cardHeight: number;
131
- /** 固定顶部 */
132
- fixedHeader: boolean;
133
- /** 固定底部 */
134
- fixedFooter: boolean;
135
- /** 底部区域 */
136
- footer: GalleryFooterType;
137
- /** 卡片点击时间 */
138
- onItem: (record: Record<string, any>, index: number) => void;
139
- };
140
- /** 视图模式 */
141
- export declare type ModeType = "grid" | "gallery" | "kanban";
142
- /**
143
- * 视图模式总配置
144
- */
145
- export declare type GridViewType = {
146
- /** 默认视图模式 */
147
- defaultViewMode: ModeType;
148
- /** 开启多视图模式可进行页面内转换 */
149
- multiple: boolean;
150
- /** 当前可用的视图模式列表 */
151
- modeList: ModeType[];
152
- };
153
- declare type SortDetail = {
154
- fromIndex: number;
155
- toIndex: number;
156
- dataSource: Record<string, any>[];
157
- fromId: number | string;
158
- toId: number | string;
159
- fromItem: Record<string, any>;
160
- toItem: Record<string, any>;
161
- };
162
- /** 导入导出模式 */
163
- export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
164
- /**
165
- * @title: 导出导入api
166
- * @description:
167
- * @return {*}
168
- * @Author: WangHan
169
- * @Date: 2024-09-11 15:44
170
- */
171
- export declare type ApiProps = {
172
- export?: string;
173
- import?: string;
174
- export_file: string;
175
- import_log?: string;
176
- template?: string;
177
- };
178
- /**
179
- * 导入导出配置
180
- */
181
- export declare type ExportImportType = {
182
- /** 是否展示 */
183
- show: boolean;
184
- /** 当前所选项 */
185
- selectLists: string[];
186
- /** 导入模版链接 */
187
- templateFileUrl: string;
188
- /** 标题 */
189
- title: string;
190
- hiddenKeys?: string[];
191
- apiUrl?: ApiProps;
192
- otherParams?: any;
193
- };
194
- export declare type GridViewProps = {
195
- columns: any;
196
- dataSource: any[];
197
- dispatch: any;
198
- /**
199
- * 画册模式的配置
200
- */
201
- gallery: GallerySettingType;
202
- /**
203
- * 视图设置
204
- */
205
- view: GridViewType;
206
- style: React.CSSProperties;
207
- pagination: any;
208
- filter: FilterType;
209
- buttons: React.ReactNode | any[];
210
- actionButtons: any;
211
- sort: SortType;
212
- title?: React.ReactNode | (() => React.ReactNode);
213
- showTitle?: boolean;
214
- subTitle?: React.ReactNode | (() => React.ReactNode);
215
- showSubTitle?: boolean;
216
- exportImport: ExportImportType;
217
- onValuesChange: (changedValues: any, values: any) => void;
218
- summary: any;
219
- utils: any;
220
- rowKey: ((record: Record<string, any>) => string) | string;
221
- columnSetting?: ColumnSettingType;
222
- dataSourceGroup?: DataSourceGroupType;
223
- loading: boolean;
224
- dragSort: boolean;
225
- onSortChange?: (detail: SortDetail) => boolean;
226
- __id?: string;
227
- __designMode?: "design";
228
- /**
229
- * 当前本地配置的key 用此hash是否改变用来判断是否清空本地配置 不填默认使用columns数据生成hash
230
- */
231
- currentSettingKey?: string;
232
- /**
233
- * 当前本地配置的唯一值, 不填默认使用currentSettingKey
234
- */
235
- currentComponentId?: string;
236
- /**
237
- * 当前表格中数据发生变化事件 包含本地筛选和外部传入数据变化
238
- * @param currentDataSource
239
- */
240
- onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
241
- tabs: {
242
- show: boolean;
243
- type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
244
- items: {
245
- name: string;
246
- filterBy?: Record<string, any>;
247
- sortBy?: string;
248
- }[];
249
- };
250
- };
251
- export {};
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { Version } from '../versionSelect';
3
- import './index.less';
4
- interface PublishVersionModalProps {
5
- visible: boolean;
6
- currentVersion: string;
7
- onCancel: () => void;
8
- onConfirm: (data: VersionData) => void;
9
- isShowNote?: boolean;
10
- confirmLoading?: boolean;
11
- versions?: Version[];
12
- isShowBasedOn?: boolean;
13
- isShowCurrentVersion?: boolean;
14
- isValidateVersion?: boolean;
15
- }
16
- interface VersionData {
17
- version: string;
18
- note: string;
19
- baseVersion?: string;
20
- versionType?: string;
21
- }
22
- declare const PublishVersionModal: React.FC<PublishVersionModalProps>;
23
- export default PublishVersionModal;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
- export interface AmountProps {
4
- max?: number;
5
- min?: number;
6
- doneText?: string;
7
- resetText?: string;
8
- defaultValue?: string | number;
9
- placeholder?: string;
10
- amountProps?: {
11
- showCurrencySymbol: boolean;
12
- useThousandsSeparator: boolean;
13
- };
14
- presets?: BaseNumberKeyboardProps['presets'];
15
- value?: string | number;
16
- onChange?: (val: string | number) => void;
17
- onEnter?: (val: string | number) => void;
18
- defaultSelect?: boolean;
19
- inputFormat?: (_v: string) => React.ReactNode | null;
20
- }
21
- declare const Amount: (props: AmountProps) => JSX.Element;
22
- export default Amount;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- className?: string;
14
- style?: React.CSSProperties;
15
- onChange?: (value?: ItemValue) => void;
16
- items?: Item[];
17
- rightItems?: Item[];
18
- keydown?: boolean;
19
- }
20
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
- export default _default;