@pisell/materials 3.3.51 → 3.3.52

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 (173) hide show
  1. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -3
  2. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  3. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  4. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -6
  5. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  6. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  7. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  8. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  9. package/es/components/table/Table/fields/index.d.ts +2 -2
  10. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  11. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  12. package/es/components/table/Table/utils.d.ts +1 -1
  13. package/es/components/table/View/index.d.ts +1 -0
  14. package/es/utils/index.d.ts +1 -1
  15. package/es/utils/platform.d.ts +1 -1
  16. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +5 -2
  17. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  18. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  19. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +7 -6
  20. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  21. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  22. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  23. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  24. package/lib/components/table/Table/fields/index.d.ts +2 -2
  25. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  26. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  27. package/lib/components/table/Table/utils.d.ts +1 -1
  28. package/lib/components/table/View/index.d.ts +1 -0
  29. package/lib/utils/index.d.ts +1 -1
  30. package/lib/utils/platform.d.ts +1 -1
  31. package/lowcode/data-source-table/meta.ts +14 -0
  32. package/lowcode/form-item-input.password/meta.ts +5 -0
  33. package/package.json +3 -3
  34. package/es/components/TimeResourceSelector/index.d.ts +0 -21
  35. package/es/components/appVersionControl/index.d.ts +0 -5
  36. package/es/components/badge/index.d.ts +0 -8
  37. package/es/components/buttonGroupPreview/index.d.ts +0 -19
  38. package/es/components/cardPro/index.d.ts +0 -4
  39. package/es/components/collapse/index.d.ts +0 -15
  40. package/es/components/cropPhoto/index.d.ts +0 -3
  41. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  42. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
  43. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +0 -8
  44. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  45. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  46. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
  47. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  48. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  49. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
  50. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
  51. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
  52. package/es/components/div/index.d.ts +0 -19
  53. package/es/components/drag-sort-tree/index.d.ts +0 -5
  54. package/es/components/iconfont/index.d.ts +0 -8
  55. package/es/components/login-and-register/index.d.ts +0 -82
  56. package/es/components/page/index.d.ts +0 -6
  57. package/es/components/pisell-config-provider/index.d.ts +0 -12
  58. package/es/components/pisellAnchor/index.d.ts +0 -23
  59. package/es/components/pisellAvatar/index.d.ts +0 -19
  60. package/es/components/pisellCard/index.d.ts +0 -20
  61. package/es/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  62. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
  63. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
  64. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
  65. package/es/components/pisellDraggable/index.d.ts +0 -35
  66. package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  67. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
  68. package/es/components/pisellDropSort/types.d.ts +0 -58
  69. package/es/components/pisellDropdown/index.d.ts +0 -20
  70. package/es/components/pisellEmpty/index.d.ts +0 -19
  71. package/es/components/pisellHeaderProgressBar/index.d.ts +0 -29
  72. package/es/components/pisellImageCarousels/index.d.ts +0 -18
  73. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
  74. package/es/components/pisellInformationEntry/index.d.ts +0 -33
  75. package/es/components/pisellList01/index.d.ts +0 -17
  76. package/es/components/pisellMenu/PisellMenu.d.ts +0 -11
  77. package/es/components/pisellMenu/types.d.ts +0 -27
  78. package/es/components/pisellNavigationMenu/types.d.ts +0 -85
  79. package/es/components/pisellQrcode/index.d.ts +0 -10
  80. package/es/components/pisellSectionHeaders/index.d.ts +0 -21
  81. package/es/components/pisellStatisticList/index.d.ts +0 -21
  82. package/es/components/productCard/components/Action/index.d.ts +0 -3
  83. package/es/components/productCard/components/Divider/index.d.ts +0 -4
  84. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  85. package/es/components/productCard/components/MultiDay/utils.d.ts +0 -14
  86. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -10
  87. package/es/components/productCard/components/Time/index.d.ts +0 -4
  88. package/es/components/productCard/locales.d.ts +0 -84
  89. package/es/components/productCard/status.d.ts +0 -32
  90. package/es/components/productCard/types.d.ts +0 -84
  91. package/es/components/section-footers/index.d.ts +0 -9
  92. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -8
  93. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
  94. package/es/components/table/types.d.ts +0 -251
  95. package/es/components/tabs/index.d.ts +0 -16
  96. package/es/components/versionModal/index.d.ts +0 -23
  97. package/es/components/walletCard/Guest/index.d.ts +0 -4
  98. package/es/components/walletCard/Guide/index.d.ts +0 -4
  99. package/es/components/walletCard/index.d.ts +0 -67
  100. package/es/locales/en-US.d.ts +0 -278
  101. package/es/locales/index.d.ts +0 -1
  102. package/es/locales/zh-CN.d.ts +0 -273
  103. package/es/locales/zh-TW.d.ts +0 -273
  104. package/lib/components/TimeResourceSelector/index.d.ts +0 -21
  105. package/lib/components/appVersionControl/index.d.ts +0 -5
  106. package/lib/components/badge/index.d.ts +0 -8
  107. package/lib/components/buttonGroupPreview/index.d.ts +0 -19
  108. package/lib/components/cardPro/index.d.ts +0 -4
  109. package/lib/components/collapse/index.d.ts +0 -15
  110. package/lib/components/cropPhoto/index.d.ts +0 -3
  111. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
  112. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
  113. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +0 -8
  114. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  115. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  116. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
  117. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  118. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  119. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +0 -20
  120. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
  121. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
  122. package/lib/components/div/index.d.ts +0 -19
  123. package/lib/components/drag-sort-tree/index.d.ts +0 -5
  124. package/lib/components/iconfont/index.d.ts +0 -8
  125. package/lib/components/login-and-register/index.d.ts +0 -82
  126. package/lib/components/page/index.d.ts +0 -6
  127. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  128. package/lib/components/pisellAnchor/index.d.ts +0 -23
  129. package/lib/components/pisellAvatar/index.d.ts +0 -19
  130. package/lib/components/pisellCard/index.d.ts +0 -20
  131. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +0 -16
  132. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
  133. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
  134. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
  135. package/lib/components/pisellDraggable/index.d.ts +0 -35
  136. package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  137. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
  138. package/lib/components/pisellDropSort/types.d.ts +0 -58
  139. package/lib/components/pisellDropdown/index.d.ts +0 -20
  140. package/lib/components/pisellEmpty/index.d.ts +0 -19
  141. package/lib/components/pisellHeaderProgressBar/index.d.ts +0 -29
  142. package/lib/components/pisellImageCarousels/index.d.ts +0 -18
  143. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +0 -4
  144. package/lib/components/pisellInformationEntry/index.d.ts +0 -33
  145. package/lib/components/pisellList01/index.d.ts +0 -17
  146. package/lib/components/pisellMenu/PisellMenu.d.ts +0 -11
  147. package/lib/components/pisellMenu/types.d.ts +0 -27
  148. package/lib/components/pisellNavigationMenu/types.d.ts +0 -85
  149. package/lib/components/pisellQrcode/index.d.ts +0 -10
  150. package/lib/components/pisellSectionHeaders/index.d.ts +0 -21
  151. package/lib/components/pisellStatisticList/index.d.ts +0 -21
  152. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  153. package/lib/components/productCard/components/Divider/index.d.ts +0 -4
  154. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  155. package/lib/components/productCard/components/MultiDay/utils.d.ts +0 -14
  156. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -10
  157. package/lib/components/productCard/components/Time/index.d.ts +0 -4
  158. package/lib/components/productCard/locales.d.ts +0 -84
  159. package/lib/components/productCard/status.d.ts +0 -32
  160. package/lib/components/productCard/types.d.ts +0 -84
  161. package/lib/components/section-footers/index.d.ts +0 -9
  162. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -8
  163. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
  164. package/lib/components/table/types.d.ts +0 -251
  165. package/lib/components/tabs/index.d.ts +0 -16
  166. package/lib/components/versionModal/index.d.ts +0 -23
  167. package/lib/components/walletCard/Guest/index.d.ts +0 -4
  168. package/lib/components/walletCard/Guide/index.d.ts +0 -4
  169. package/lib/components/walletCard/index.d.ts +0 -67
  170. package/lib/locales/en-US.d.ts +0 -278
  171. package/lib/locales/index.d.ts +0 -1
  172. package/lib/locales/zh-CN.d.ts +0 -273
  173. package/lib/locales/zh-TW.d.ts +0 -273
@@ -50,9 +50,12 @@ var BaseForm = /*#__PURE__*/forwardRef(function (props, ref) {
50
50
  var _useDataSource = useDataSource(),
51
51
  get = _useDataSource.get;
52
52
  useEffect(function () {
53
- var _formRef$current;
54
- (_formRef$current = formRef.current) === null || _formRef$current === void 0 || _formRef$current.resetFields();
55
- }, [dataSource]);
53
+ var isDesignMode = props.__designMode === 'design';
54
+ if (isDesignMode) {
55
+ var _formRef$current;
56
+ (_formRef$current = formRef.current) === null || _formRef$current === void 0 || _formRef$current.resetFields();
57
+ }
58
+ }, [dataSource, props.__designMode]);
56
59
  useEffect(function () {
57
60
  document.body.id = 'body';
58
61
  }, []);
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
4
4
  };
5
5
  export default useDataSourceKey;
@@ -54,6 +54,8 @@ var useDrawerState = function useDrawerState(operationContent) {
54
54
  setDrawerVisible(false);
55
55
  // 等待动画完成后再清除item
56
56
  timerRef.current = setTimeout(function () {
57
+ var _item$afterClose;
58
+ item === null || item === void 0 || (_item$afterClose = item.afterClose) === null || _item$afterClose === void 0 || _item$afterClose.call(item);
57
59
  setItem(null);
58
60
  timerRef.current = undefined;
59
61
  }, 300);
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -42,17 +42,18 @@ declare const useTableProps: (props: UseTablePropsProps) => {
42
42
  items: OperationItem[];
43
43
  } | undefined;
44
44
  operation?: {
45
- show: boolean;
46
- title: string; /**
45
+ /**
47
46
  * 处理table的props
48
47
  * 转换title
49
48
  * @param props
50
49
  * @returns
51
50
  */
51
+ show: boolean;
52
+ title: string;
52
53
  width: number;
53
54
  align: "center" | "left" | "right";
54
55
  fixed: false | "left" | "right";
55
- type: "link" | "button";
56
+ type: "button" | "link";
56
57
  items: OperationItem[];
57
58
  } | undefined;
58
59
  operationContent?: {
@@ -70,7 +71,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
71
  useCustomAction: boolean;
71
72
  actionType: string;
72
73
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "large" | "middle";
74
+ openContentSize: "large" | "middle" | "small";
74
75
  openTitle: string;
75
76
  key: string;
76
77
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceTableProps } from '../type';
3
2
  declare type Params = {
4
3
  pagination?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: 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) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -198,12 +198,12 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: boolean;
201
+ default_value: string;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
205
205
  field_type: string;
206
- default_value: string;
206
+ default_value: boolean;
207
207
  } | {
208
208
  field_icon: string;
209
209
  field_name: string;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -73,8 +73,11 @@ var BaseForm = (0, import_react.forwardRef)(
73
73
  const { get } = (0, import_useDataSource.default)();
74
74
  (0, import_react.useEffect)(() => {
75
75
  var _a2;
76
- (_a2 = formRef.current) == null ? void 0 : _a2.resetFields();
77
- }, [dataSource]);
76
+ const isDesignMode = props.__designMode === "design";
77
+ if (isDesignMode) {
78
+ (_a2 = formRef.current) == null ? void 0 : _a2.resetFields();
79
+ }
80
+ }, [dataSource, props.__designMode]);
78
81
  (0, import_react.useEffect)(() => {
79
82
  document.body.id = "body";
80
83
  }, []);
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
4
4
  };
5
5
  export default useDataSourceKey;
@@ -64,6 +64,8 @@ var useDrawerState = (operationContent) => {
64
64
  }
65
65
  setDrawerVisible(false);
66
66
  timerRef.current = setTimeout(() => {
67
+ var _a;
68
+ (_a = item == null ? void 0 : item.afterClose) == null ? void 0 : _a.call(item);
67
69
  setItem(null);
68
70
  timerRef.current = void 0;
69
71
  }, 300);
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -42,17 +42,18 @@ declare const useTableProps: (props: UseTablePropsProps) => {
42
42
  items: OperationItem[];
43
43
  } | undefined;
44
44
  operation?: {
45
- show: boolean;
46
- title: string; /**
45
+ /**
47
46
  * 处理table的props
48
47
  * 转换title
49
48
  * @param props
50
49
  * @returns
51
50
  */
51
+ show: boolean;
52
+ title: string;
52
53
  width: number;
53
54
  align: "center" | "left" | "right";
54
55
  fixed: false | "left" | "right";
55
- type: "link" | "button";
56
+ type: "button" | "link";
56
57
  items: OperationItem[];
57
58
  } | undefined;
58
59
  operationContent?: {
@@ -70,7 +71,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
71
  useCustomAction: boolean;
71
72
  actionType: string;
72
73
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "large" | "middle";
74
+ openContentSize: "large" | "middle" | "small";
74
75
  openTitle: string;
75
76
  key: string;
76
77
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceTableProps } from '../type';
3
2
  declare type Params = {
4
3
  pagination?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: 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) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -198,12 +198,12 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: boolean;
201
+ default_value: string;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
205
205
  field_type: string;
206
- default_value: string;
206
+ default_value: boolean;
207
207
  } | {
208
208
  field_icon: string;
209
209
  field_name: string;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -897,6 +897,13 @@ const dataSourceTable = {
897
897
  },
898
898
  },
899
899
  },
900
+ {
901
+ name: 'afterClose',
902
+ title: { label: '关闭后' },
903
+ setter: {
904
+ componentName: 'FunctionSetter'
905
+ }
906
+ }
900
907
  ],
901
908
  },
902
909
  },
@@ -2689,6 +2696,13 @@ const dataSourceTable = {
2689
2696
  componentName: 'BoolSetter'
2690
2697
  },
2691
2698
  ],
2699
+ },
2700
+ {
2701
+ name: 'afterClose',
2702
+ title: { label: '关闭后' },
2703
+ setter: {
2704
+ componentName: 'FunctionSetter'
2705
+ }
2692
2706
  }
2693
2707
  ],
2694
2708
  },
@@ -49,6 +49,11 @@ export default {
49
49
  ]),
50
50
  getFormItemValidateGroup([
51
51
  generalItemMap['requiredobj'],
52
+ {
53
+ name: 'validator',
54
+ title: '自定义校验',
55
+ setter: 'FunctionSetter'
56
+ }
52
57
  ]),
53
58
  ],
54
59
  props: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "3.3.51",
3
+ "version": "3.3.52",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -71,9 +71,9 @@
71
71
  "swiper": "^8.4.7",
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
+ "@pisell/date-picker": "3.0.3",
74
75
  "@pisell/icon": "0.0.11",
75
- "@pisell/date-picker": "3.0.2",
76
- "@pisell/utils": "3.0.0"
76
+ "@pisell/utils": "3.0.1"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0",
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface TimeSlot {
4
- value: string;
5
- label: string;
6
- time: string;
7
- remainingCount: number;
8
- disabled?: boolean;
9
- }
10
- export interface TimeResourceSelectorProps {
11
- timeSlots?: TimeSlot[];
12
- multiple?: boolean;
13
- showUnavailable?: boolean;
14
- defaultExpanded?: boolean;
15
- defaultSelectFirst?: boolean;
16
- onChange?: (values: string | string[]) => void;
17
- className?: string;
18
- style?: React.CSSProperties;
19
- }
20
- declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
21
- export default TimeResourceSelector;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { AppVersionControlProps } from './types';
3
- import './index.less';
4
- declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
5
- export default AppVersionControl;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { BadgeProps as OriginalBadgeprops } from 'antd';
3
- import './index.less';
4
- export interface Badgeprops extends OriginalBadgeprops {
5
- styleType: 'default' | 'warning';
6
- }
7
- declare const Badge: (props: any) => JSX.Element;
8
- export default Badge;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { MenuProps, ButtonProps } from 'antd';
3
- export interface ButtonGroupListItemProps {
4
- id?: string;
5
- isMore?: boolean;
6
- menuData?: MenuProps['items'];
7
- buttonProps?: ButtonProps;
8
- }
9
- interface ButtonConfigProps {
10
- [id: string]: ButtonGroupListItemProps;
11
- }
12
- export declare type ButtonGroupListProps = ButtonGroupListItemProps[][];
13
- interface ButtonGroupPreviewProps {
14
- buttonConfig?: ButtonConfigProps;
15
- buttonGroupList?: ButtonGroupListProps;
16
- updateButtonProps?: ButtonGroupListItemProps;
17
- }
18
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupPreviewProps & React.RefAttributes<any>>>;
19
- export default _default;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const _default: (props: any) => JSX.Element;
4
- export default _default;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface CollapseProps {
4
- panelBackground?: string;
5
- panelMarginBottom?: string | 0;
6
- panelBorderRadius?: string | 0;
7
- items: any[];
8
- showHeader?: boolean;
9
- headerColor?: string | '#101828';
10
- headerFontSize?: string | 14;
11
- expandIcon?: any;
12
- [key: string]: any;
13
- }
14
- declare const Collapse: React.FC<CollapseProps>;
15
- export default Collapse;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const CropPhoto: React.FC;
3
- export default CropPhoto;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: any;
3
- export default _default;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { PisellMenuProps } from '../../pisellMenu/types';
3
- /**
4
- * @title: 数据源表单组件
5
- * @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
6
- */
7
- declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
8
- export default DataSourceMenu;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { PisellMenuProps } from '../../pisellMenu/types';
3
- /**
4
- * @title: 数据源表单组件
5
- * @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
6
- */
7
- declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
8
- export default DataSourceMenu;
@@ -1,39 +0,0 @@
1
- /// <reference types="react" />
2
- import { Drawer } from 'antd';
3
- import { OperationItem } from '../type';
4
- declare const useDrawerState: (operationContent?: {
5
- [key: string]: import("react").ReactNode;
6
- } | undefined) => {
7
- drawerVisible: boolean;
8
- setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
- openDrawer: (item: OperationItem) => void;
10
- closeDrawer: () => void;
11
- drawerContent: import("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,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
- }