@pisell/materials 1.0.945 → 1.0.946

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 (203) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/walletCard/index.d.ts +2 -0
  8. package/es/components/walletCard/index.js +3 -1
  9. package/lib/components/walletCard/index.d.ts +2 -0
  10. package/lib/components/walletCard/index.js +3 -1
  11. package/package.json +3 -3
  12. package/es/components/appVersionControl/index.d.ts +0 -5
  13. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  14. package/es/components/auto-resize-text/index.d.ts +0 -6
  15. package/es/components/cardPro/index.d.ts +0 -4
  16. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  17. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
  18. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -28
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -34
  22. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
  23. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  24. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  25. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  26. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  27. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -6
  28. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
  29. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  30. package/es/components/drag-sort-tree/index.d.ts +0 -4
  31. package/es/components/filter/types.d.ts +0 -45
  32. package/es/components/hardwareErrorTip/demo.d.ts +0 -3
  33. package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -29
  34. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -13
  35. package/es/components/hardwareErrorTip/index.d.ts +0 -19
  36. package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -28
  37. package/es/components/hardwareErrorTip/types.d.ts +0 -28
  38. package/es/components/keyboard/index.d.ts +0 -22
  39. package/es/components/login-and-register/index.d.ts +0 -82
  40. package/es/components/pisell-config-provider/context.d.ts +0 -22
  41. package/es/components/pisell-config-provider/index.d.ts +0 -13
  42. package/es/components/pisellAdjustPrice/index.d.ts +0 -5
  43. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  44. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  45. package/es/components/pisellCamera/index.d.ts +0 -4
  46. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  47. package/es/components/pisellEmpty/index.d.ts +0 -19
  48. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  49. package/es/components/pisellToast/index.d.ts +0 -17
  50. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  51. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  52. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  53. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  54. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  55. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  56. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  57. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  58. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  59. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  60. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  61. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  62. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  63. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  64. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  65. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -4
  66. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  67. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  68. package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
  69. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  70. package/es/components/productCard/components/Action/index.d.ts +0 -4
  71. package/es/components/productCard/components/Header/Actions/index.d.ts +0 -4
  72. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  73. package/es/components/productCard/components/Header/index.d.ts +0 -4
  74. package/es/components/productCard/components/Sales/index.d.ts +0 -4
  75. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  76. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  77. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -19
  78. package/es/components/productCard/components/Time/index.d.ts +0 -4
  79. package/es/components/productCard/locales.d.ts +0 -84
  80. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -8
  81. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  82. package/es/components/table/Gallery/index.d.ts +0 -5
  83. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
  84. package/es/components/table/Table/index.d.ts +0 -4
  85. package/es/components/table/Table/utils.d.ts +0 -167
  86. package/es/components/table/hooks/useTableSetting.d.ts +0 -21
  87. package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
  88. package/es/components/table/index.d.ts +0 -4
  89. package/es/components/table/types.d.ts +0 -270
  90. package/es/components/translation/index.d.ts +0 -15
  91. package/es/components/versionModal/index.d.ts +0 -24
  92. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
  93. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  94. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  95. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  96. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  97. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  98. package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
  99. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  100. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  101. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  102. package/es/components/virtual-keyboard/index.d.ts +0 -25
  103. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  104. package/es/components/virtualInput/index.d.ts +0 -24
  105. package/es/locales/en-US.d.ts +0 -342
  106. package/es/locales/zh-CN.d.ts +0 -337
  107. package/es/locales/zh-TW.d.ts +0 -337
  108. package/lib/components/appVersionControl/index.d.ts +0 -5
  109. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  110. package/lib/components/auto-resize-text/index.d.ts +0 -6
  111. package/lib/components/cardPro/index.d.ts +0 -4
  112. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  113. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +0 -8
  114. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -28
  115. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  116. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  117. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -34
  118. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
  119. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  120. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  121. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  122. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  123. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -6
  124. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -38
  125. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  126. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  127. package/lib/components/filter/types.d.ts +0 -45
  128. package/lib/components/hardwareErrorTip/demo.d.ts +0 -3
  129. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -29
  130. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -13
  131. package/lib/components/hardwareErrorTip/index.d.ts +0 -19
  132. package/lib/components/hardwareErrorTip/logCard/index.d.ts +0 -28
  133. package/lib/components/hardwareErrorTip/types.d.ts +0 -28
  134. package/lib/components/keyboard/index.d.ts +0 -22
  135. package/lib/components/login-and-register/index.d.ts +0 -82
  136. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  137. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  138. package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
  139. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  140. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  141. package/lib/components/pisellCamera/index.d.ts +0 -4
  142. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  143. package/lib/components/pisellEmpty/index.d.ts +0 -19
  144. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  145. package/lib/components/pisellToast/index.d.ts +0 -17
  146. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  147. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  148. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  149. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  150. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  151. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  152. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  153. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  154. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  155. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  156. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  157. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  158. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  159. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  160. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  161. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -4
  162. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  163. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  164. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
  165. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  166. package/lib/components/productCard/components/Action/index.d.ts +0 -4
  167. package/lib/components/productCard/components/Header/Actions/index.d.ts +0 -4
  168. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  169. package/lib/components/productCard/components/Header/index.d.ts +0 -4
  170. package/lib/components/productCard/components/Sales/index.d.ts +0 -4
  171. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
  172. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  173. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -19
  174. package/lib/components/productCard/components/Time/index.d.ts +0 -4
  175. package/lib/components/productCard/locales.d.ts +0 -84
  176. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -8
  177. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  178. package/lib/components/table/Gallery/index.d.ts +0 -5
  179. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
  180. package/lib/components/table/Table/index.d.ts +0 -4
  181. package/lib/components/table/Table/utils.d.ts +0 -167
  182. package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
  183. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
  184. package/lib/components/table/index.d.ts +0 -4
  185. package/lib/components/table/types.d.ts +0 -270
  186. package/lib/components/translation/index.d.ts +0 -15
  187. package/lib/components/versionModal/index.d.ts +0 -24
  188. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
  189. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  190. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  191. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  192. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  193. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  194. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
  195. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  196. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  197. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  198. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  199. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  200. package/lib/components/virtualInput/index.d.ts +0 -24
  201. package/lib/locales/en-US.d.ts +0 -342
  202. package/lib/locales/zh-CN.d.ts +0 -337
  203. package/lib/locales/zh-TW.d.ts +0 -337
@@ -12,6 +12,8 @@ export interface WalletCardItem {
12
12
  value?: number;
13
13
  }
14
14
  export interface WalletCardProps {
15
+ /** 钱包ID */
16
+ id?: string;
15
17
  /** 二维码弹窗适配平台 */
16
18
  platform?: 'pc' | 'h5' | 'ipad';
17
19
  /** 卡片主题 */
@@ -395,7 +395,9 @@ var WalletCard = function WalletCard(props) {
395
395
  }
396
396
  utils === null || utils === void 0 || utils.action({
397
397
  type: 'pisell1.goWallet',
398
- data: {},
398
+ data: {
399
+ id: props.id
400
+ },
399
401
  callback: function callback() {}
400
402
  });
401
403
  };
@@ -12,6 +12,8 @@ export interface WalletCardItem {
12
12
  value?: number;
13
13
  }
14
14
  export interface WalletCardProps {
15
+ /** 钱包ID */
16
+ id?: string;
15
17
  /** 二维码弹窗适配平台 */
16
18
  platform?: 'pc' | 'h5' | 'ipad';
17
19
  /** 卡片主题 */
@@ -352,7 +352,9 @@ var WalletCard = (props) => {
352
352
  }
353
353
  utils == null ? void 0 : utils.action({
354
354
  type: "pisell1.goWallet",
355
- data: {},
355
+ data: {
356
+ id: props.id
357
+ },
356
358
  callback: () => {
357
359
  }
358
360
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.945",
3
+ "version": "1.0.946",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -75,9 +75,9 @@
75
75
  "antd-mobile": "^5.38.1",
76
76
  "vod-js-sdk-v6": "^1.4.11",
77
77
  "react-camera-pro": "1.4.0",
78
+ "@pisell/date-picker": "1.0.127",
78
79
  "@pisell/icon": "0.0.10",
79
- "@pisell/utils": "1.0.55",
80
- "@pisell/date-picker": "1.0.127"
80
+ "@pisell/utils": "1.0.55"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "react": "^18.0.0",
@@ -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,20 +0,0 @@
1
- export declare type Options = {
2
- mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
3
- minFontSizePx?: number | undefined;
4
- maxFontSizePx?: number | undefined;
5
- fontSizePrecisionPx?: number | undefined;
6
- scrollToEnd?: boolean | undefined;
7
- };
8
- export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
9
- innerEl: HTMLElement;
10
- containerEl: HTMLElement;
11
- }): void;
12
- declare type DisconnectableFunction = {
13
- (): void;
14
- disconnect: () => void;
15
- };
16
- export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
17
- innerEl: HTMLElement;
18
- containerEl: HTMLElement;
19
- }): DisconnectableFunction;
20
- export {};
@@ -1,6 +0,0 @@
1
- import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
2
- import { Options } from './auto-text-size-standalone';
3
- export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
4
- as?: keyof ReactHTML | React.ComponentType<any>;
5
- children?: React.ReactNode;
6
- } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
@@ -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,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,8 +0,0 @@
1
- import React from 'react';
2
- import { DataSourceTableProps } from './type';
3
- export interface TableRef {
4
- refreshCurrentPage: () => void;
5
- refreshData: () => void;
6
- }
7
- declare const _default: React.ForwardRefExoticComponent<DataSourceTableProps & React.RefAttributes<TableRef>>;
8
- export default _default;
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface BaseFilterItem {
4
- name?: string;
5
- value: string;
6
- label?: string;
7
- type?: string;
8
- isHidden: boolean;
9
- isCustom?: boolean;
10
- }
11
- interface FilterProps {
12
- componentId: string;
13
- filterBy: Record<string, any>;
14
- quickFilterMaxLength?: number;
15
- sortButtonShow?: boolean;
16
- mode?: 'simple' | 'complex';
17
- items: BaseFilterItem[];
18
- handleValuesChange: (changedFields: any, allFields: any) => void;
19
- show: boolean;
20
- search: {
21
- show: boolean;
22
- placeholder: string;
23
- key: string;
24
- };
25
- getInitialValues?: () => Record<string, any>;
26
- }
27
- declare const Filter: (props: FilterProps) => JSX.Element;
28
- export default Filter;
@@ -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
- getInitialValues: () => Record<string, any>;
13
- }
14
- /**
15
- * 处理table的props
16
- * 转换title
17
- * @param props
18
- * @returns
19
- */
20
- declare const useTableProps: (props: UseTablePropsProps) => {
21
- currentComponentId: any;
22
- title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
23
- pagination: {
24
- total: number;
25
- current: number;
26
- pageSize: number;
27
- size: string;
28
- showSizeChanger: boolean;
29
- };
30
- columns: import("./useColumns").Column[];
31
- subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
32
- buttons: any[] | null;
33
- filter: any;
34
- onRow: (record: any) => any;
35
- actionButtons: any[] | null;
36
- __id?: string | undefined;
37
- currentSettingKey?: string | undefined;
38
- titleButtons?: {
39
- show: boolean;
40
- maxCount: number;
41
- items: OperationItem[];
42
- } | undefined;
43
- tableButtons?: {
44
- show: boolean;
45
- maxCount: number;
46
- items: OperationItem[];
47
- } | undefined;
48
- operation?: {
49
- show: boolean;
50
- title: string;
51
- width: number;
52
- align: "center" | "left" | "right";
53
- fixed: false | "left" | "right";
54
- type: "link" | "button";
55
- items: OperationItem[];
56
- } | undefined;
57
- operationContent?: {
58
- [key: string]: React.ReactNode;
59
- } | undefined;
60
- dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
61
- search?: {
62
- show: boolean;
63
- placeholder: string;
64
- } | undefined;
65
- __designMode: string;
66
- componentId: string;
67
- clickToDetail?: {
68
- show: boolean;
69
- useCustomAction: boolean;
70
- actionType: string;
71
- openMode: "modal" | "drawer";
72
- openContentSize: "large" | "middle" | "small";
73
- openTitle: string;
74
- key: string;
75
- } | undefined;
76
- filterBy?: Record<string, any> | undefined;
77
- sortBy: string;
78
- tabs?: {
79
- show: boolean;
80
- type: string;
81
- items: {
82
- name: string;
83
- filterBy: Record<string, any>;
84
- sortBy: string;
85
- }[];
86
- } | undefined;
87
- onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
88
- onDeleteFinish?: ((record: Record<string, 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
- localSettings?: import("../../../table/types").LocalSettingsType | undefined;
97
- };
98
- export default useTableProps;
@@ -1,34 +0,0 @@
1
- /// <reference types="react" />
2
- import { DataSourceTableProps } from '../type';
3
- declare type Params = {
4
- pagination?: {
5
- page: number;
6
- size: number;
7
- };
8
- order_by?: string;
9
- tabs?: {
10
- name: string;
11
- filterBy: Record<string, any>;
12
- sortBy: string;
13
- };
14
- };
15
- declare const useTableQuery: (props: DataSourceTableProps, currentSettingHash: string) => {
16
- queryPageConfig: {
17
- page: number;
18
- pageSize: number;
19
- filter: Record<string, any>;
20
- sort: string;
21
- };
22
- setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
23
- page: number;
24
- pageSize: number;
25
- filter: Record<string, any>;
26
- sort: string;
27
- }>>;
28
- handleValuesChange: (params: Params, allParams: Params) => void;
29
- refreshData: () => void;
30
- handleFilterChange: (changedFields: any, allFields: any) => void;
31
- refreshCurrentPage: () => void;
32
- getInitialValues: () => Record<string, any>;
33
- };
34
- export default useTableQuery;
@@ -1,85 +0,0 @@
1
- /// <reference types="react" />
2
- import { ColumnType } from 'antd/es/table';
3
- import { LocalSettingsType } from '../../table/types';
4
- import { DataSourceType } from '../provider/dataSource/DataSourceContext';
5
- export declare type OperationItem = {
6
- label?: string;
7
- openMode: 'modal' | 'drawer' | 'custom';
8
- openContentSize: 'small' | 'middle' | 'large';
9
- openTitle: string;
10
- actionType: 'detail' | 'edit' | 'delete' | 'custom';
11
- key: string;
12
- buttonProps?: any;
13
- onClick?: (record: any) => void;
14
- afterClose?: () => void;
15
- };
16
- export interface DataSourceTableProps {
17
- __id?: string;
18
- currentComponentId?: string;
19
- currentSettingKey?: string;
20
- title?: string | React.ReactNode | (() => React.ReactNode);
21
- subTitle?: string | React.ReactNode | (() => React.ReactNode);
22
- titleButtons?: {
23
- show: boolean;
24
- maxCount: number;
25
- items: OperationItem[];
26
- };
27
- tableButtons?: {
28
- show: boolean;
29
- maxCount: number;
30
- items: OperationItem[];
31
- };
32
- buttons?: any[];
33
- operation?: {
34
- show: boolean;
35
- title: string;
36
- width: number;
37
- align: 'left' | 'center' | 'right';
38
- fixed: 'left' | 'right' | false;
39
- type: 'link' | 'button';
40
- items: OperationItem[];
41
- };
42
- operationContent?: {
43
- [key: string]: React.ReactNode;
44
- };
45
- dataSource: DataSourceType;
46
- columns: ColumnType<any>[];
47
- filter: any;
48
- search?: {
49
- show: boolean;
50
- placeholder: string;
51
- };
52
- __designMode: string;
53
- componentId: string;
54
- clickToDetail?: {
55
- show: boolean;
56
- useCustomAction: boolean;
57
- actionType: string;
58
- openMode: 'modal' | 'drawer';
59
- openContentSize: 'small' | 'middle' | 'large';
60
- openTitle: string;
61
- key: string;
62
- };
63
- onRow?: any;
64
- filterBy?: Record<string, any>;
65
- sortBy: string;
66
- tabs?: {
67
- show: boolean;
68
- type: string;
69
- items: {
70
- name: string;
71
- filterBy: Record<string, any>;
72
- sortBy: string;
73
- }[];
74
- };
75
- onValuesChange?: (changedValues: any, values: any) => void;
76
- onDeleteFinish?: (record: Record<string, any>) => void;
77
- extraParams?: {
78
- list?: Record<string, any>;
79
- get?: Record<string, any>;
80
- update?: Record<string, any>;
81
- create?: Record<string, any>;
82
- destroy?: Record<string, any>;
83
- };
84
- localSettings?: LocalSettingsType;
85
- }
@@ -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,5 +0,0 @@
1
- import React from 'react';
2
- import { UploadProps } from './type';
3
- import './index.less';
4
- declare const BaseUpload: React.FC<UploadProps>;
5
- export default BaseUpload;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- declare const CameraPopover: (props: {
3
- onLocalFileClick: () => void;
4
- onCameraChange: (file: any) => void;
5
- }) => JSX.Element;
6
- export default CameraPopover;
@@ -1,38 +0,0 @@
1
- import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
2
- import type { UploadValue, UploadChangeHandler } from './types';
3
- export interface UploadFile extends AntdUploadFile {
4
- metadata?: {
5
- width?: number;
6
- height?: number;
7
- duration?: number;
8
- bitrate?: number;
9
- };
10
- }
11
- export interface UploadProps {
12
- renderMode?: string;
13
- fieldKey: string;
14
- maxSize?: number;
15
- minCount?: number;
16
- maxCount?: number;
17
- multiple?: boolean;
18
- presetType?: string[];
19
- presetTypeString?: string[];
20
- customType?: string[];
21
- enablePresetType?: boolean;
22
- enableCustomType?: boolean;
23
- allowPreview?: boolean;
24
- value?: UploadValue;
25
- typeMaxSizeMap?: Record<string, number>;
26
- enableMultilingual?: boolean;
27
- onChange?: UploadChangeHandler;
28
- disabled?: boolean;
29
- mediaUploadUrl?: string;
30
- getHeaders?: () => Record<string, string>;
31
- mediaConfig?: {
32
- data: {
33
- upload_onetime_limit: number;
34
- upload_maxsize: number;
35
- };
36
- };
37
- allowCamera?: boolean;
38
- }
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- import { ValueProps, SortType } from '../types';
4
- declare type IdType = string | number;
5
- declare type TreeItemProps = {
6
- id: string | number;
7
- key: string | number;
8
- item: ValueProps | any;
9
- depth: number;
10
- lists: any[];
11
- childrenProps?: SortType;
12
- sensors?: any;
13
- expandedKeys?: IdType[];
14
- setExpandedKeys?: any;
15
- onSelectKeys?: (ids: IdType) => void;
16
- onChange?: (value: any[]) => void;
17
- };
18
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
19
- export default TreeItem;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { SortType } from './types';
3
- declare const DragSortTree: (props: SortType) => JSX.Element;
4
- export default DragSortTree;
@@ -1,45 +0,0 @@
1
- import { ModeType } from "../table/types";
2
- /**
3
- * 筛选总配置
4
- */
5
- export declare type FilterType = {
6
- /** 筛选是否展示 */
7
- show: boolean;
8
- /** 筛选项排序按钮是否展示 */
9
- sortButtonShow: boolean;
10
- /** 筛选列表 */
11
- list: FilterItemProps[];
12
- items?: string[];
13
- __items: string[];
14
- /** 快速筛选最大长度 */
15
- quickFilterMaxLength: number;
16
- /** 配置存储模式 */
17
- storageMode: "" | "localStorage";
18
- };
19
- /**
20
- * 筛选列表项配置
21
- */
22
- export declare type FilterItemProps = {
23
- type: "single" | "input" | "datePicker" | "rangePicker" | "search";
24
- name?: string | string[];
25
- key: string;
26
- props: object;
27
- label?: string;
28
- sort?: boolean;
29
- localFilter?: boolean;
30
- other: Record<string, any>;
31
- isCustom?: boolean;
32
- columnKey?: string;
33
- isHidden?: boolean;
34
- };
35
- /**
36
- * 筛选组件属性
37
- */
38
- export interface FilterProps {
39
- filter: FilterType;
40
- isRenderFormContent: boolean;
41
- onValuesChange?: () => void;
42
- tableId?: string;
43
- viewMode?: ModeType;
44
- isMobile?: boolean;
45
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const HardwareErrorTipDemo: React.FC;
3
- export default HardwareErrorTipDemo;