@pisell/materials 3.3.64 → 3.3.65

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 (177) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +4 -4
  6. package/build/lowcode/preview.js +150 -164
  7. package/build/lowcode/render/default/view.js +27 -40
  8. package/build/lowcode/view.js +32 -45
  9. package/es/components/appVersionControl/index.d.ts +4 -0
  10. package/es/components/cardPro/index.d.ts +3 -0
  11. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -1
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  17. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  18. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  19. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  20. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  21. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  22. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  23. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  24. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  25. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  26. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  27. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  28. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  29. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  30. package/es/components/drag-sort-tree/index.d.ts +4 -0
  31. package/es/components/iconfont/index.d.ts +8 -0
  32. package/es/components/iconfont/index.js +1 -1
  33. package/es/components/login-and-register/index.d.ts +82 -0
  34. package/es/components/page/index.d.ts +5 -0
  35. package/es/components/pisell-config-provider/context.d.ts +20 -0
  36. package/es/components/pisell-config-provider/index.d.ts +12 -0
  37. package/es/components/pisellAdjustPrice/index.d.ts +9 -0
  38. package/es/components/pisellCardList/index.d.ts +73 -0
  39. package/es/components/pisellCheckboxGroup/index.d.ts +37 -0
  40. package/es/components/pisellEmpty/index.d.ts +19 -0
  41. package/es/components/pisellGoodPassCard/index.d.ts +49 -0
  42. package/es/components/pisellQRScanner/index.d.ts +37 -0
  43. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  44. package/es/components/pisellText/index.d.ts +8 -0
  45. package/es/components/pisellToast/index.d.ts +16 -0
  46. package/es/components/pisellWalletPassCard/index.d.ts +85 -0
  47. package/es/components/productCard/components/Action/index.d.ts +3 -0
  48. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  49. package/es/components/productCard/components/Header/index.d.ts +3 -0
  50. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  51. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  52. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  53. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  54. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  55. package/es/components/productCard/components/Time/index.d.ts +3 -0
  56. package/es/components/productCard/index.d.ts +5 -0
  57. package/es/components/productCard/locales.d.ts +84 -0
  58. package/es/components/select/index.d.ts +9 -0
  59. package/es/components/sortableList/index.d.ts +11 -0
  60. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  61. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  62. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  63. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  64. package/es/components/table/Gallery/index.d.ts +5 -0
  65. package/es/components/table/Table/AddFieldModal/index.d.ts +3 -0
  66. package/es/components/table/Table/fields/index.d.ts +2 -2
  67. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  68. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  69. package/es/components/table/Table/index.d.ts +4 -0
  70. package/es/components/table/Table/utils.d.ts +161 -0
  71. package/es/components/table/hooks/useTableSetting.d.ts +21 -0
  72. package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
  73. package/es/components/table/index.d.ts +4 -0
  74. package/es/components/table/serve.d.ts +13 -0
  75. package/es/components/table/types.d.ts +268 -0
  76. package/es/components/tabs/index.d.ts +16 -0
  77. package/es/components/translation/index.d.ts +14 -0
  78. package/es/components/versionModal/index.d.ts +23 -0
  79. package/es/components/virtual-keyboard/Amount/index.d.ts +22 -0
  80. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +11 -0
  81. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  82. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  83. package/es/components/virtual-keyboard/Number/index.d.ts +13 -0
  84. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +11 -0
  85. package/es/components/virtual-keyboard/index.d.ts +14 -0
  86. package/es/components/walletCard/index.d.ts +71 -0
  87. package/es/index.d.ts +141 -0
  88. package/es/locales/en-US.d.ts +290 -0
  89. package/es/locales/zh-CN.d.ts +285 -0
  90. package/es/locales/zh-TW.d.ts +285 -0
  91. package/es/utils/index.d.ts +1 -1
  92. package/es/utils/platform.d.ts +1 -1
  93. package/lib/components/appVersionControl/index.d.ts +4 -0
  94. package/lib/components/cardPro/index.d.ts +3 -0
  95. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  96. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  97. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  98. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  99. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  100. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  101. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  102. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  103. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  104. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  105. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  106. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  107. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  108. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  109. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  110. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  111. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  112. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  113. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  114. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  115. package/lib/components/iconfont/index.d.ts +8 -0
  116. package/lib/components/iconfont/index.js +1 -1
  117. package/lib/components/login-and-register/index.d.ts +82 -0
  118. package/lib/components/page/index.d.ts +5 -0
  119. package/lib/components/pisell-config-provider/context.d.ts +20 -0
  120. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  121. package/lib/components/pisellAdjustPrice/index.d.ts +9 -0
  122. package/lib/components/pisellCardList/index.d.ts +73 -0
  123. package/lib/components/pisellCheckboxGroup/index.d.ts +37 -0
  124. package/lib/components/pisellEmpty/index.d.ts +19 -0
  125. package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
  126. package/lib/components/pisellQRScanner/index.d.ts +37 -0
  127. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  128. package/lib/components/pisellText/index.d.ts +8 -0
  129. package/lib/components/pisellToast/index.d.ts +16 -0
  130. package/lib/components/pisellWalletPassCard/index.d.ts +85 -0
  131. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  132. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  133. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  134. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  135. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  136. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  137. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  138. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  139. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  140. package/lib/components/productCard/index.d.ts +5 -0
  141. package/lib/components/productCard/locales.d.ts +84 -0
  142. package/lib/components/select/index.d.ts +9 -0
  143. package/lib/components/sortableList/index.d.ts +11 -0
  144. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  145. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  146. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  147. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  148. package/lib/components/table/Gallery/index.d.ts +5 -0
  149. package/lib/components/table/Table/AddFieldModal/index.d.ts +3 -0
  150. package/lib/components/table/Table/fields/index.d.ts +2 -2
  151. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  152. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  153. package/lib/components/table/Table/index.d.ts +4 -0
  154. package/lib/components/table/Table/utils.d.ts +161 -0
  155. package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
  156. package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
  157. package/lib/components/table/index.d.ts +4 -0
  158. package/lib/components/table/serve.d.ts +13 -0
  159. package/lib/components/table/types.d.ts +268 -0
  160. package/lib/components/tabs/index.d.ts +16 -0
  161. package/lib/components/translation/index.d.ts +14 -0
  162. package/lib/components/versionModal/index.d.ts +23 -0
  163. package/lib/components/virtual-keyboard/Amount/index.d.ts +22 -0
  164. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +11 -0
  165. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  166. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  167. package/lib/components/virtual-keyboard/Number/index.d.ts +13 -0
  168. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +11 -0
  169. package/lib/components/virtual-keyboard/index.d.ts +14 -0
  170. package/lib/components/walletCard/index.d.ts +71 -0
  171. package/lib/index.d.ts +141 -0
  172. package/lib/locales/en-US.d.ts +290 -0
  173. package/lib/locales/zh-CN.d.ts +285 -0
  174. package/lib/locales/zh-TW.d.ts +285 -0
  175. package/lib/utils/index.d.ts +1 -1
  176. package/lib/utils/platform.d.ts +1 -1
  177. package/package.json +2 -2
@@ -0,0 +1,73 @@
1
+ import React from 'react';
2
+ import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
+ import { PisellContextType } from '../pisell-config-provider/context';
4
+ import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
5
+ import './index.less';
6
+ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
7
+ platform?: PisellContextType['platform'];
8
+ /** 当用户查看完所有记录时,底部会显示此消息 */
9
+ endMessage?: React.ReactNode;
10
+ /** 加载下次数据时的加载站位 */
11
+ loader?: React.ReactNode;
12
+ /** 是否有更多数据 */
13
+ hasMore: boolean;
14
+ /** 加载更多数据回调 */
15
+ loadMoreData?: () => Promise<void>;
16
+ /** 当前list数据 */
17
+ data: PisellWalletPassCardProps[];
18
+ /** list空数据时展示内容 */
19
+ empty?: React.ReactNode;
20
+ /** 是否展示空状态 */
21
+ showEmpty?: boolean;
22
+ /** 是否展示卡片名称 */
23
+ showName?: boolean;
24
+ /** 是否展示店铺名称 */
25
+ showStoreName?: boolean;
26
+ /** 是否展示核销金额 */
27
+ showRedeem?: boolean;
28
+ /** 是否展示余额 */
29
+ showBalance?: boolean;
30
+ /** 是否展示编码 */
31
+ showCode?: boolean;
32
+ /** 是否展示到期时间 */
33
+ showValidDate?: boolean;
34
+ /** 是否展示详情按钮 */
35
+ showDetail?: boolean;
36
+ /** 是否展示二维码 */
37
+ showQrCode?: boolean;
38
+ /** 是否展示封面图 */
39
+ showCover?: boolean;
40
+ /** 是否余额货币单位 */
41
+ showBalanceSymbol?: boolean;
42
+ /** 卡片大小 */
43
+ type?: 'default' | 'mini';
44
+ /** 展示操作按钮 */
45
+ showActions?: boolean;
46
+ /** 操作按钮配置 */
47
+ actions?: {
48
+ /** 按钮展示方式 */
49
+ layout: 'expanded' | 'collapsed';
50
+ /** detail 按钮配置 */
51
+ detail?: {
52
+ visible: boolean;
53
+ iconColor: string;
54
+ };
55
+ /** edit按钮配置 */
56
+ edit?: {
57
+ visible: boolean;
58
+ iconColor: string;
59
+ dialogTitle: string;
60
+ enableDialog: boolean;
61
+ fields: {
62
+ name: string;
63
+ label: string;
64
+ };
65
+ };
66
+ };
67
+ /** 编辑编辑按钮后,弹窗展示之前 */
68
+ beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
69
+ /** 编辑弹窗点击提交 */
70
+ onConfirmEdit?: (value: any, index: number) => void;
71
+ }
72
+ declare const _default: React.NamedExoticComponent<PisellCardListProps>;
73
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export interface PisellCheckboxGroupOption {
5
+ label: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ [key: string]: any;
9
+ }
10
+ declare type PisellCheckboxGroupValue = string | string[] | any;
11
+ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ platform?: PisellContextType['platform'];
13
+ direction?: 'horizontal' | 'vertical';
14
+ fullWidth?: boolean;
15
+ gap?: number;
16
+ padding?: number;
17
+ options: PisellCheckboxGroupOption[];
18
+ onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
+ value?: PisellCheckboxGroupValue;
20
+ renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
+ rowKey?: string;
22
+ mode?: 'multiple' | 'single';
23
+ iconPosition?: 'left' | 'right' | 'hide';
24
+ optionClassName?: string;
25
+ optionActiveClassName?: string;
26
+ onChangeDebounce?: boolean;
27
+ }
28
+ /**
29
+ * @title: PisellCheckboxGroup
30
+ * @description: 选中组件
31
+ * @param {PisellCheckboxGroupProps} props
32
+ * @return {*}
33
+ * @Author: zhiwei.Wang
34
+ * @Date: 2024-08-16 10:34
35
+ */
36
+ declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
37
+ export default PisellCheckboxGroup;
@@ -0,0 +1,19 @@
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;
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ApplicableProductDetails {
4
+ amount: string;
5
+ type: string;
6
+ resource_id: number;
7
+ title: string;
8
+ original_amount: string;
9
+ }
10
+ interface Discount {
11
+ id: number;
12
+ product_name: string;
13
+ encoded: string;
14
+ code: string;
15
+ tag: string;
16
+ expire_time?: string;
17
+ product_id: number;
18
+ relation_type: string;
19
+ par_value: string;
20
+ used_par_value: string;
21
+ limit_status: string;
22
+ limited_relation_product_data: any;
23
+ balance: string;
24
+ format_title: any;
25
+ product: any;
26
+ savedAmount: number;
27
+ isDisabled: boolean;
28
+ isSelected?: boolean;
29
+ isAvailable?: boolean;
30
+ isUsed?: boolean;
31
+ applicableProductIds?: number[];
32
+ applicableProductDetails: ApplicableProductDetails[];
33
+ appliedProductDetails: any[];
34
+ }
35
+ export interface PisellGoodPassCardProps {
36
+ /**数据源 */
37
+ dataSource: Array<Discount>;
38
+ /**事件 */
39
+ onChange?: (current: {
40
+ id: string | number;
41
+ isSelected: boolean;
42
+ }) => void;
43
+ /**样式 */
44
+ style: React.CSSProperties;
45
+ /**快捷展示排序 */
46
+ mixedSort?: (val: Discount[]) => Discount[];
47
+ }
48
+ declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
49
+ export default index;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import type { DetailedHTMLProps, HTMLAttributes, VideoHTMLAttributes, InputHTMLAttributes } from 'react';
4
+ declare type ExtendedDetailedHTMLProps<T extends HTMLAttributes<E>, E extends HTMLElement> = DetailedHTMLProps<T, E> & {
5
+ children?: React.ReactNode;
6
+ };
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ div: ExtendedDetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
11
+ video: DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
12
+ input: DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface PisellQRScannerProps {
17
+ /** 是否可见 */
18
+ visible: boolean;
19
+ /** 是否显示上传图片按钮 */
20
+ showUpload?: boolean;
21
+ /** 关闭回调 */
22
+ onClose: () => void;
23
+ /** 扫码成功回调 */
24
+ onScan: (value: string) => void;
25
+ /**
26
+ * 样式属性,可选
27
+ * 注意: 不应传入renderMode等不必要属性
28
+ */
29
+ style?: React.CSSProperties;
30
+ /** 类名,可选 */
31
+ className?: string;
32
+ }
33
+ /**
34
+ * 二维码扫描组件
35
+ */
36
+ declare const PisellQRScanner: React.FC<PisellQRScannerProps>;
37
+ export default PisellQRScanner;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../../../pisell-config-provider/context';
3
+ export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** 平台 */
5
+ platform?: PisellContextType['platform'];
6
+ /** 当前数值 */
7
+ value?: number | string;
8
+ /** 小数点后位数 默认是小数点后2位 */
9
+ precision?: number;
10
+ /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
+ showCurrencySymbol?: boolean;
12
+ /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
+ useThousandsSeparator?: boolean;
14
+ /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
+ hideDecimalForWholeNumbers?: boolean;
16
+ /** 货币符号 */
17
+ symbol?: string;
18
+ }
19
+ declare const Amount: (props: AmountProps) => JSX.Element;
20
+ export default Amount;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface PisellTextProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ }
4
+ declare const PisellText: {
5
+ (props: PisellTextProps): JSX.Element;
6
+ Amount: (props: import("./components/Amount").AmountProps) => JSX.Element;
7
+ };
8
+ export default PisellText;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellToastProps {
4
+ /** 提示内容 */
5
+ content: React.ReactNode;
6
+ /** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
7
+ duration?: number;
8
+ /** 是否展示action */
9
+ showAction?: boolean;
10
+ /** action文案 */
11
+ actionText?: string;
12
+ /** 关闭时触发的回调函数 */
13
+ onClose?: () => void;
14
+ }
15
+ declare const PisellToast: (props: PisellToastProps) => void;
16
+ export default PisellToast;
@@ -0,0 +1,85 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ export interface PisellWalletPassCardProps {
4
+ id: number;
5
+ /** 卡片样式 */
6
+ type: 'default' | 'mini';
7
+ /** 商品名称 */
8
+ name: string;
9
+ /** 二维码 */
10
+ qrCode: string;
11
+ /** 共享店铺名称 */
12
+ storeName: string;
13
+ /** 余额 */
14
+ balance?: number;
15
+ /** 识别码编号 */
16
+ code: string;
17
+ /** 有效期 */
18
+ validDate: string;
19
+ /** 使用金额 */
20
+ redeem?: number;
21
+ /** 是否禁用 */
22
+ disabled?: boolean;
23
+ /** 禁用原因 */
24
+ disabledReason?: string;
25
+ /** 是否展示禁用原因 */
26
+ showDisabledReason?: boolean;
27
+ /** 封面图 */
28
+ cover?: string;
29
+ /** 余额标题文案 */
30
+ balanceTitle?: string;
31
+ /** 使用金额标题文案 */
32
+ redeemTitle?: string;
33
+ /** 是否选中 */
34
+ active?: boolean;
35
+ /** 是否展示商品名称 */
36
+ showName?: boolean;
37
+ /** 是否展示共享店铺名称 */
38
+ showStoreName?: boolean;
39
+ /** 是否展示使用金额 */
40
+ showRedeem?: boolean;
41
+ /** 是否展示余额 */
42
+ showBalance?: boolean;
43
+ /** 是否展示识别码编号 */
44
+ showCode?: boolean;
45
+ /** 是否展示有效期 */
46
+ showValidDate?: boolean;
47
+ /** 是否展示右上角详情按钮 */
48
+ showDetail?: boolean;
49
+ /** 是否展示qrCode */
50
+ showQrCode?: boolean;
51
+ /** 是否展示封面 */
52
+ showCover?: boolean;
53
+ /** 是否展示余额货币符号 */
54
+ showBalanceSymbol?: boolean;
55
+ /** 展示操作按钮 */
56
+ showActions?: boolean;
57
+ /** 操作按钮配置 */
58
+ actions?: {
59
+ /** 按钮展示方式 */
60
+ layout: 'expanded' | 'collapsed';
61
+ /** detail 按钮配置 */
62
+ detail?: {
63
+ visible: boolean;
64
+ iconColor: string;
65
+ };
66
+ /** edit按钮配置 */
67
+ edit?: {
68
+ visible: boolean;
69
+ iconColor: string;
70
+ dialogTitle: string;
71
+ enableDialog: boolean;
72
+ fields: {
73
+ name: string;
74
+ label: string;
75
+ };
76
+ };
77
+ };
78
+ /** 编辑编辑按钮后,弹窗展示之前 */
79
+ beforeEdit?: (value: any) => Promise<any> | boolean | void;
80
+ /** 编辑弹窗点击提交 */
81
+ onConfirmEdit?: (value: any) => void;
82
+ [key: string]: any;
83
+ }
84
+ declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
85
+ export default PisellWalletPassCard;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
3
+ export default Action;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
3
+ export default DeleteButton;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: (props: any) => JSX.Element;
3
+ export default Header;
@@ -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) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
+ export default Sales;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
3
+ export default SelectHolder;
@@ -0,0 +1,13 @@
1
+ import './index.less';
2
+ interface SelectHolderModalProps {
3
+ visible: boolean;
4
+ onClose: () => void;
5
+ onConfirm: (value: any) => void;
6
+ lists: any[];
7
+ value: any[];
8
+ holderMaxCount: number;
9
+ addHolderButtonText: string;
10
+ onAdd: () => void;
11
+ }
12
+ declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
13
+ export default SelectHolderModal;
@@ -0,0 +1,18 @@
1
+ import './index.less';
2
+ interface ResourceItem {
3
+ id: string | number;
4
+ label: string;
5
+ isError?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ interface SelectResourceProps {
9
+ lists: ResourceItem[];
10
+ value: any;
11
+ onChange: (val: any) => void;
12
+ resourceMode?: 'multiple' | 'tags' | undefined;
13
+ maxLength?: number;
14
+ isParallelResource?: boolean;
15
+ [key: string]: any;
16
+ }
17
+ declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
+ export default SelectResource;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
3
+ export default Time;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ProductCardTypes } from './types';
3
+ import './index.less';
4
+ declare const ProductCard: React.FC<ProductCardTypes>;
5
+ export default ProductCard;
@@ -0,0 +1,84 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
5
+ 'pisell2.product.card.minute': (val: number) => string;
6
+ 'pisell2.product.card.discount.reason': string;
7
+ 'pisell2.product.card.discount.note': string;
8
+ 'pisell2.product.card.edit': string;
9
+ 'pisell2.product.card.discount.add.note': string;
10
+ 'pisell2.product.card.discount.edit.note': string;
11
+ 'pisell2.product.card.confirm': string;
12
+ 'pisell2.product.card.cancel': string;
13
+ 'pisell2.product.card.note.pla': string;
14
+ 'pisell2.product.card.items.package': string;
15
+ 'pisell2.product.card.view-all': string;
16
+ 'pisell2.product.card.view-less': string;
17
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
18
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
19
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
20
+ 'pisell2.product.card.add.holder.modal.title.1': string;
21
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
22
+ 'pisell2.product.card.sales': string;
23
+ 'pisell2.product.card.add.holder.modal.cancel': string;
24
+ 'pisell2.product.card.add.holder.modal.clear': string;
25
+ 'pisell2.product.card.add.holder.modal.apply': string;
26
+ 'pisell2.product.card.add.holder.modal.add': string;
27
+ 'pisell2.product.card.closing-soon.warning': string;
28
+ };
29
+ 'zh-CN': {
30
+ 'pisell2.product.card.edit': string;
31
+ 'pisell2.product.card.day': (val: number) => string;
32
+ 'pisell2.product.card.day.event': (val: number) => string;
33
+ 'pisell2.product.card.minute': (val: number) => string;
34
+ 'pisell2.product.card.discount.reason': string;
35
+ 'pisell2.product.card.discount.note': string;
36
+ 'pisell2.product.card.discount.add.note': string;
37
+ 'pisell2.product.card.discount.edit.note': string;
38
+ 'pisell2.product.card.confirm': string;
39
+ 'pisell2.product.card.cancel': string;
40
+ 'pisell2.product.card.note.pla': string;
41
+ 'pisell2.product.card.items.package': string;
42
+ 'pisell2.product.card.view-all': string;
43
+ 'pisell2.product.card.view-less': string;
44
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
45
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
46
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
47
+ 'pisell2.product.card.add.holder.modal.title.1': string;
48
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
49
+ 'pisell2.product.card.sales': string;
50
+ 'pisell2.product.card.add.holder.modal.cancel': string;
51
+ 'pisell2.product.card.add.holder.modal.clear': string;
52
+ 'pisell2.product.card.add.holder.modal.apply': string;
53
+ 'pisell2.product.card.add.holder.modal.add': string;
54
+ 'pisell2.product.card.closing-soon.warning': string;
55
+ };
56
+ 'zh-HK': {
57
+ 'pisell2.product.card.edit': string;
58
+ 'pisell2.product.card.day': (val: number) => string;
59
+ 'pisell2.product.card.day.event': (val: number) => string;
60
+ 'pisell2.product.card.minute': (val: number) => string;
61
+ 'pisell2.product.card.discount.reason': string;
62
+ 'pisell2.product.card.discount.note': string;
63
+ 'pisell2.product.card.discount.add.note': string;
64
+ 'pisell2.product.card.discount.edit.note': string;
65
+ 'pisell2.product.card.confirm': string;
66
+ 'pisell2.product.card.cancel': string;
67
+ 'pisell2.product.card.note.pla': string;
68
+ 'pisell2.product.card.items.package': string;
69
+ 'pisell2.product.card.view-all': string;
70
+ 'pisell2.product.card.view-less': string;
71
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
72
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
73
+ 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
74
+ 'pisell2.product.card.add.holder.modal.title.1': string;
75
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
76
+ 'pisell2.product.card.sales': string;
77
+ 'pisell2.product.card.add.holder.modal.cancel': string;
78
+ 'pisell2.product.card.add.holder.modal.clear': string;
79
+ 'pisell2.product.card.add.holder.modal.apply': string;
80
+ 'pisell2.product.card.add.holder.modal.add': string;
81
+ 'pisell2.product.card.closing-soon.warning': string;
82
+ };
83
+ };
84
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Select as OriginalSelect } from 'antd';
3
+ import type { SelectProps } from 'antd';
4
+ import './index.less';
5
+ interface CompoundedComponent extends React.ForwardRefExoticComponent<SelectProps> {
6
+ Option: typeof OriginalSelect.Option;
7
+ }
8
+ declare const Select: CompoundedComponent;
9
+ export default Select;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Props } from "../DragSortList";
3
+ export interface SortableListProps<T> {
4
+ dataSource: Props<T>["list"];
5
+ onChange: Props<T>["onChange"];
6
+ rowKey: Props<T>["rowKey"];
7
+ renderItem?: (item: T) => React.ReactNode;
8
+ activationConstraint?: Props<T>["activationConstraint"];
9
+ }
10
+ declare const SortableList: React.FC<SortableListProps<any>>;
11
+ export default SortableList;
@@ -0,0 +1,7 @@
1
+ interface IExportParams {
2
+ type: string;
3
+ originDataSource: any[];
4
+ currentDataSource: any[];
5
+ }
6
+ export declare const batchExport: (exportParams: IExportParams, exportImport: any) => Promise<true | undefined>;
7
+ export {};
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { GallerySettingType, GallerySettingValueType } from "../../../types";
3
+ import "./index.less";
4
+ declare type GalleryItemProps = {
5
+ record: Record<string, any>;
6
+ gallery: GallerySettingType;
7
+ columnsMap: Map<string, Record<string, any>>;
8
+ index: number;
9
+ gallerySetting: GallerySettingValueType;
10
+ columns: Record<string, any>[];
11
+ onClick: React.MouseEventHandler<HTMLDivElement>;
12
+ };
13
+ declare const GalleryItem: (props: GalleryItemProps) => JSX.Element;
14
+ export default GalleryItem;
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: any;
3
- vertical: any;
2
+ horizontal: number;
3
+ vertical: number;
4
4
  };
5
5
  export default useGapSize;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { GalleryProps } from './types';
3
+ import './index.less';
4
+ declare const _default: React.MemoExoticComponent<(props: GalleryProps) => JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const AddFieldModal: React.FC;
3
+ export default AddFieldModal;
@@ -197,12 +197,12 @@ export declare const fieldList: ({
197
197
  field_icon: string;
198
198
  field_name: string;
199
199
  field_type: string;
200
- default_value: boolean;
200
+ default_value: string;
201
201
  } | {
202
202
  field_icon: string;
203
203
  field_name: string;
204
204
  field_type: string;
205
- default_value: string;
205
+ default_value: boolean;
206
206
  } | {
207
207
  field_icon: string;
208
208
  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
- }): any;
5
+ }): boolean;
@@ -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
- }): any;
5
+ }): boolean;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.NamedExoticComponent<any>;
4
+ export default _default;