@pisell/materials 3.3.39 → 3.3.40

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 (171) 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 +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.js +24 -24
  8. package/build/lowcode/view.js +30 -30
  9. package/es/components/Pagination/index.d.ts +1 -1
  10. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  11. package/es/components/badge/index.d.ts +7 -0
  12. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  13. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  14. package/es/components/cardMetricItem/index.d.ts +12 -0
  15. package/es/components/cardPro/index.d.ts +3 -0
  16. package/es/components/collapse/index.d.ts +15 -0
  17. package/es/components/cropPhoto/index.d.ts +3 -0
  18. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  19. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  20. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  21. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  22. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  23. package/es/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
  24. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  25. package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  26. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  27. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  28. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  29. package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
  30. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  31. package/es/components/date-picker/datePickerCpt.d.ts +8 -0
  32. package/es/components/iconfont/index.d.ts +8 -0
  33. package/es/components/page/index.d.ts +5 -0
  34. package/es/components/pisell-config-provider/index.d.ts +12 -0
  35. package/es/components/pisellAnchor/index.d.ts +23 -0
  36. package/es/components/pisellAvatar/index.d.ts +19 -0
  37. package/es/components/pisellCard/index.d.ts +19 -0
  38. package/es/components/pisellCardList/index.d.ts +73 -0
  39. package/es/components/pisellCheckboxGroup/index.d.ts +36 -0
  40. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  41. package/es/components/pisellDropdown/index.d.ts +20 -0
  42. package/es/components/pisellEmpty/index.d.ts +19 -0
  43. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  44. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  45. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  46. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  47. package/es/components/pisellList01/index.d.ts +17 -0
  48. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  49. package/es/components/pisellQrcode/index.d.ts +10 -0
  50. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  51. package/es/components/pisellStatisticList/index.d.ts +21 -0
  52. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  53. package/es/components/pisellWalletPassCard/index.d.ts +84 -0
  54. package/es/components/productCard/components/Action/index.d.ts +3 -0
  55. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  56. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  57. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  58. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  59. package/es/components/productCard/components/Header/index.d.ts +3 -0
  60. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  61. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  62. package/es/components/productCard/components/Note/index.d.ts +3 -0
  63. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  64. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  65. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  66. package/es/components/productCard/components/Packages/index.d.ts +3 -0
  67. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  68. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  69. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  70. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  71. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  72. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  73. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  74. package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
  75. package/es/components/productCard/index.d.ts +5 -0
  76. package/es/components/productCard/status.d.ts +32 -0
  77. package/es/components/productCard/types.d.ts +83 -0
  78. package/es/components/productCard/utils.d.ts +31 -0
  79. package/es/components/record-view/index.d.ts +37 -0
  80. package/es/components/section-footers/index.d.ts +9 -0
  81. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  82. package/es/components/tabs/index.d.ts +16 -0
  83. package/es/components/translation/index.d.ts +13 -0
  84. package/es/components/translation/index.js +22 -24
  85. package/es/components/walletCard/Guest/index.d.ts +3 -0
  86. package/es/components/walletCard/Guide/index.d.ts +3 -0
  87. package/es/index.d.ts +141 -0
  88. package/es/locales/index.d.ts +1 -0
  89. package/es/utils/index.d.ts +4 -0
  90. package/lib/components/Pagination/index.d.ts +1 -1
  91. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  92. package/lib/components/badge/index.d.ts +7 -0
  93. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  94. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  95. package/lib/components/cardMetricItem/index.d.ts +12 -0
  96. package/lib/components/cardPro/index.d.ts +3 -0
  97. package/lib/components/collapse/index.d.ts +15 -0
  98. package/lib/components/cropPhoto/index.d.ts +3 -0
  99. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  100. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  101. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  102. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  103. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  104. package/lib/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
  105. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  106. package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  107. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  108. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  109. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  110. package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
  111. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  112. package/lib/components/date-picker/datePickerCpt.d.ts +8 -0
  113. package/lib/components/iconfont/index.d.ts +8 -0
  114. package/lib/components/page/index.d.ts +5 -0
  115. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  116. package/lib/components/pisellAnchor/index.d.ts +23 -0
  117. package/lib/components/pisellAvatar/index.d.ts +19 -0
  118. package/lib/components/pisellCard/index.d.ts +19 -0
  119. package/lib/components/pisellCardList/index.d.ts +73 -0
  120. package/lib/components/pisellCheckboxGroup/index.d.ts +36 -0
  121. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  122. package/lib/components/pisellDropdown/index.d.ts +20 -0
  123. package/lib/components/pisellEmpty/index.d.ts +19 -0
  124. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  125. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  126. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  127. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  128. package/lib/components/pisellList01/index.d.ts +17 -0
  129. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  130. package/lib/components/pisellQrcode/index.d.ts +10 -0
  131. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  132. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  133. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  134. package/lib/components/pisellWalletPassCard/index.d.ts +84 -0
  135. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  136. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  137. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  138. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  139. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  140. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  141. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  142. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  143. package/lib/components/productCard/components/Note/index.d.ts +3 -0
  144. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  145. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  146. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  147. package/lib/components/productCard/components/Packages/index.d.ts +3 -0
  148. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  149. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  150. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  151. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  152. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  153. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  154. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  155. package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
  156. package/lib/components/productCard/index.d.ts +5 -0
  157. package/lib/components/productCard/status.d.ts +32 -0
  158. package/lib/components/productCard/types.d.ts +83 -0
  159. package/lib/components/productCard/utils.d.ts +31 -0
  160. package/lib/components/record-view/index.d.ts +37 -0
  161. package/lib/components/section-footers/index.d.ts +9 -0
  162. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  163. package/lib/components/tabs/index.d.ts +16 -0
  164. package/lib/components/translation/index.d.ts +13 -0
  165. package/lib/components/translation/index.js +0 -1
  166. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  167. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  168. package/lib/index.d.ts +141 -0
  169. package/lib/locales/index.d.ts +1 -0
  170. package/lib/utils/index.d.ts +4 -0
  171. package/package.json +4 -4
@@ -0,0 +1,37 @@
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
+ }
@@ -0,0 +1,18 @@
1
+ import { RcFile, UploadFile } from 'antd/es/upload/interface';
2
+ import type { MediaMetadata, FileCountValidation, ValidationResult, MultilingualFile, FileListOptions, UploadValue, SingleMultilingualValue } from './types';
3
+ export declare const generateUid: () => string;
4
+ export declare const getSuffix: (name: string) => string;
5
+ export declare const getPointSuffix: (name: string) => string;
6
+ export declare const getFileType: (name: string) => string;
7
+ export declare const getFileName: (url: string) => string;
8
+ export declare const checkFileCount: ({ multiple, minCount, maxCount, valueLength, }: FileCountValidation) => ValidationResult;
9
+ export declare const getMediaMetadata: (file: RcFile) => Promise<MediaMetadata | null>;
10
+ export declare const genFileListByString: (value: string) => UploadFile[];
11
+ export declare const createMultilingualData: (value: string) => SingleMultilingualValue;
12
+ export declare const createMultilingualFileList: (value: string) => Record<string, UploadFile<any>[]>;
13
+ export declare const getDefaultFileList: (value: UploadValue | undefined, options: FileListOptions) => MultilingualFile[];
14
+ export declare const getFileMetadataParams: (file: RcFile & {
15
+ metadata?: MediaMetadata;
16
+ }) => Record<string, any>;
17
+ export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -59,11 +59,13 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
69
  JSON: import("react").FC<any>;
68
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
69
71
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -76,14 +78,14 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
76
78
  Subdomain: import("react").FC<import("antd").InputProps & {
77
79
  onChange: (value: string) => void;
78
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
80
82
  customDomain?: string | undefined;
81
83
  value?: string | undefined;
82
84
  tenantId: string;
83
85
  name?: string | undefined;
84
86
  fieldKey?: string | undefined;
85
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
86
- }) | (import("react").FC<{}> & {
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
90
  } & {
89
91
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -95,7 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
95
97
  extraParams?: Record<string, any> | undefined;
96
98
  } & {
97
99
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
- onChange: (value: string) => void;
100
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
100
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -0,0 +1,3 @@
1
+ import { FormFieldFilterFuncMapType } from './type';
2
+ declare const formFieldFilterFuncMap: FormFieldFilterFuncMapType;
3
+ export { formFieldFilterFuncMap };
@@ -0,0 +1,3 @@
1
+ declare const usePlatform: () => any;
2
+ declare const useIsShop: () => boolean;
3
+ export { usePlatform, useIsShop };
@@ -0,0 +1,8 @@
1
+ import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
+ import { Dayjs } from 'dayjs';
3
+ import './index.less';
4
+ interface DatePickerCptProps extends PickerDateProps<Dayjs> {
5
+ showTime: any;
6
+ }
7
+ declare const DatePickerCpt: (props: DatePickerCptProps) => JSX.Element;
8
+ export default DatePickerCpt;
@@ -0,0 +1,8 @@
1
+ import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
+ import React from 'react';
3
+ interface IconFontProps extends IconComponentProps {
4
+ type: string;
5
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
+ }
7
+ declare const IconFont: React.FC<IconFontProps>;
8
+ export default IconFont;
@@ -0,0 +1,5 @@
1
+ import { ConfigProviderProps } from '../config-provider';
2
+ interface PageProps extends ConfigProviderProps {
3
+ }
4
+ declare const Page: (props: PageProps) => JSX.Element;
5
+ export default Page;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from './context';
3
+ interface PisellConfigProviderType {
4
+ platform?: PisellContextType['platform'];
5
+ children: React.ReactNode;
6
+ /** 货币符号 */
7
+ symbol?: string;
8
+ /** 当前语言环境 */
9
+ locale?: string;
10
+ }
11
+ declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
+ export default PisellConfigProvider;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface Option {
4
+ id: string | number;
5
+ name: React.ReactNode;
6
+ }
7
+ export interface PisellAnchorProps {
8
+ options?: Option[];
9
+ tab?: string | number;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ onChange?: (key: string | number) => void;
13
+ onTabClick?: () => void;
14
+ containerRef?: React.RefObject<HTMLElement>;
15
+ /**
16
+ * 平台类型,仅用于样式调整,不再影响锚点滚动功能
17
+ * 无论pc还是h5模式,点击锚点都会自动滚动到对应内容
18
+ * @default 'pc'
19
+ */
20
+ platform?: 'pc' | 'h5';
21
+ }
22
+ declare const PisellAnchor: React.FC<PisellAnchorProps>;
23
+ export default PisellAnchor;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { AvatarProps } from 'antd';
3
+ import './index.less';
4
+ export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
+ export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
6
+ shape?: 'circle' | 'square';
7
+ size?: AvatarSize;
8
+ src?: string;
9
+ alt?: string;
10
+ icon?: React.ReactNode;
11
+ children?: React.ReactNode;
12
+ className?: string;
13
+ style?: React.CSSProperties;
14
+ useTextAvatar?: boolean;
15
+ borderRadius?: number;
16
+ onError?: () => boolean;
17
+ }
18
+ declare const PisellAvatar: React.FC<PisellAvatarProps>;
19
+ export default PisellAvatar;
@@ -0,0 +1,19 @@
1
+ import { CardProps } from 'antd';
2
+ import './index.less';
3
+ export interface PisellCardProps extends CardProps {
4
+ bordered?: boolean;
5
+ selected?: boolean;
6
+ loading?: boolean;
7
+ padding?: number;
8
+ borderRadius?: number;
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
+ isClickable?: boolean;
12
+ }
13
+ /**
14
+ * Pisell 卡片容器组件
15
+ * @param props
16
+ * @constructor
17
+ */
18
+ declare const PisellCard: (props: PisellCardProps) => JSX.Element;
19
+ export default PisellCard;
@@ -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,36 @@
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
+ }
27
+ /**
28
+ * @title: PisellCheckboxGroup
29
+ * @description: 选中组件
30
+ * @param {PisellCheckboxGroupProps} props
31
+ * @return {*}
32
+ * @Author: zhiwei.Wang
33
+ * @Date: 2024-08-16 10:34
34
+ */
35
+ declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
36
+ export default PisellCheckboxGroup;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellCustomCheckboxGroupProps {
4
+ dataSource?: any[];
5
+ disabled?: boolean;
6
+ allowAdd?: boolean;
7
+ isMultiple?: boolean;
8
+ id?: string | string[];
9
+ onClick?: (value: any) => void;
10
+ onAdd?: () => void;
11
+ renderAddItem?: (item: any) => React.ReactNode;
12
+ [key: string]: any;
13
+ className?: string;
14
+ }
15
+ declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
16
+ export default PisellCustomCheckboxGroup;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface MenuItemType {
4
+ key: string;
5
+ label: string;
6
+ icon?: React.ReactNode;
7
+ shortcut?: string;
8
+ divider?: boolean;
9
+ }
10
+ export interface PisellDropdownProps {
11
+ trigger?: React.ReactNode;
12
+ items?: MenuItemType[];
13
+ showShortcut?: boolean;
14
+ triggerType?: ('click' | 'hover')[];
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onSelect?: (key: string) => void;
18
+ }
19
+ declare const PisellDropdown: React.FC<PisellDropdownProps>;
20
+ export default PisellDropdown;
@@ -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,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellHeaderProgressBarProps {
4
+ title?: React.ReactNode;
5
+ stepText?: React.ReactNode;
6
+ showClose?: boolean;
7
+ /** 是否启用投影 */
8
+ enableShadow?: boolean;
9
+ /** 是否启用描边 */
10
+ enableBorder?: boolean;
11
+ /** 描边粗细 */
12
+ borderWidth?: number;
13
+ /** 描边颜色 */
14
+ borderColor?: string;
15
+ /** 头部背景颜色 */
16
+ backgroundColor?: string;
17
+ /** 自定义类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示返回键 */
22
+ showBack?: boolean;
23
+ /** 返回按钮点击事件 */
24
+ onBack?: () => void;
25
+ /** 关闭按钮点击事件 */
26
+ onClose?: () => void;
27
+ }
28
+ declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
29
+ export default PisellHeaderProgressBar;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import 'swiper/swiper-bundle.css';
3
+ import './index.less';
4
+ export interface PisellImageCarouselsProps {
5
+ dataSource?: string[];
6
+ width?: number | string;
7
+ height?: number;
8
+ showArrows?: boolean;
9
+ showDots?: boolean;
10
+ autoplay?: boolean;
11
+ interval?: number;
12
+ borderRadius?: number;
13
+ loop?: boolean;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ }
17
+ declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
18
+ export default PisellImageCarousels;
@@ -0,0 +1,4 @@
1
+ export declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
+ activeNativeScanner: () => void;
3
+ isTerminal: any;
4
+ };
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export declare type EntryModeType = {
5
+ /**
6
+ * 录入模式名称
7
+ * scanCode: 扫码录入
8
+ * input: 手动录入
9
+ * scanner: 扫码枪录入
10
+ * nfc: NFC录入
11
+ */
12
+ type: 'scanCode' | 'input' | 'scanner' | 'nfc';
13
+ /**
14
+ * 录入模式文案 没有使用默认文案
15
+ */
16
+ name?: string;
17
+ };
18
+ export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
19
+ /** 平台 */
20
+ platform?: PisellContextType['platform'];
21
+ /** 录入模式 */
22
+ entryModes: EntryModeType[];
23
+ /** 标题文案 */
24
+ title?: React.ReactNode;
25
+ /** 搜索框描述文案 */
26
+ searchDescribe?: React.ReactNode;
27
+ /** 录入信息值改变 */
28
+ onChange?: (val: string) => void;
29
+ /** 录入类型切换时候触发的 */
30
+ onChangeType?: (val: null | EntryModeType['type']) => void;
31
+ }
32
+ declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
33
+ export default PisellInformationEntry;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellList01Props {
4
+ dataSource?: any[];
5
+ showSearch: boolean;
6
+ showCategory: boolean;
7
+ placeholder?: string;
8
+ renderItem?: (item: any, index: number) => React.ReactNode;
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ onChange?: (anchor: string) => void;
12
+ onSearch?: (value: any) => void;
13
+ isShowEmpty?: boolean;
14
+ description?: any;
15
+ }
16
+ declare const PisellList01: React.FC<PisellList01Props>;
17
+ export default PisellList01;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { PisellNavigationMenuProps } from './types';
3
+ import './PisellNavigationMenu.less';
4
+ declare const PisellNavigationMenu: React.FC<PisellNavigationMenuProps>;
5
+ export default PisellNavigationMenu;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface PisellQrcodeProps {
4
+ size?: number;
5
+ platform: 'pc' | 'h5' | 'ipad';
6
+ value: string;
7
+ className: string;
8
+ }
9
+ declare const PisellQrcode: React.FC<PisellQrcodeProps>;
10
+ export default PisellQrcode;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellSectionHeadersProps {
4
+ /** 是否占据空间(true: 占据空间, false: 不占据空间) */
5
+ /** 左侧返回区域 */
6
+ backNode?: React.ReactNode;
7
+ /** 中间内容区域 */
8
+ centerNode?: React.ReactNode;
9
+ /** 右侧操作区域 */
10
+ actionNode?: React.ReactNode;
11
+ /** 自定义类名 */
12
+ className?: string;
13
+ /** 自定义样式 */
14
+ style?: React.CSSProperties;
15
+ /** 返回按钮点击事件 */
16
+ onBack?: () => void;
17
+ /** 操作区域点击事件 */
18
+ onAction?: () => void;
19
+ }
20
+ declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
21
+ export default PisellSectionHeaders;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ isHasBorder?: boolean;
5
+ backgroundColors?: string[];
6
+ labelColor?: string;
7
+ valueColor?: string;
8
+ data: {
9
+ label: string;
10
+ value: string;
11
+ isLink?: boolean;
12
+ link?: string;
13
+ tip?: string;
14
+ children?: {
15
+ label: string;
16
+ value: string;
17
+ }[];
18
+ }[];
19
+ }
20
+ declare const PisellStatisticList: (props: PisellStatisticListProps) => JSX.Element;
21
+ export default PisellStatisticList;
@@ -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;