@pisell/materials 2.2.68 → 2.2.70

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 (191) 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 +1 -1
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +28 -24
  8. package/build/lowcode/view.js +29 -25
  9. package/es/components/auto-complete-number/index.d.ts +1 -0
  10. package/es/components/badge/index.d.ts +1 -0
  11. package/es/components/batch-editor/fields/index.d.ts +1 -0
  12. package/es/components/calendar/index.d.ts +1 -0
  13. package/es/components/cardPro/index.d.ts +1 -0
  14. package/es/components/checkbox/index.d.ts +1 -0
  15. package/es/components/classicLayout/index.d.ts +1 -0
  16. package/es/components/config-provider/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  18. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  20. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  22. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  25. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  26. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  28. package/es/components/dataSourceComponents/fields/index.d.ts +18 -18
  29. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  30. package/es/components/dropdown/index.d.ts +1 -0
  31. package/es/components/page/index.d.ts +1 -0
  32. package/es/components/pisellAvatar/index.d.ts +19 -0
  33. package/es/components/pisellCard/index.d.ts +1 -0
  34. package/es/components/pisellCardList/index.d.ts +2 -0
  35. package/es/components/pisellCardList/index.js +4 -0
  36. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  37. package/es/components/pisellDatePicker/index.d.ts +1 -0
  38. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  39. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  40. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  41. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  42. package/es/components/pisellMenu/types.d.ts +26 -0
  43. package/es/components/pisellTooltip/index.d.ts +1 -0
  44. package/es/components/pisellUpload/index.d.ts +1 -0
  45. package/es/components/pisellWalletPassCard/index.d.ts +2 -0
  46. package/es/components/pisellWalletPassCard/index.js +80 -13
  47. package/es/components/productCard/components/Action/index.d.ts +1 -0
  48. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  49. package/es/components/productCard/components/Divider/index.d.ts +1 -0
  50. package/es/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  51. package/es/components/productCard/components/Time/index.js +2 -2
  52. package/es/components/productCard/locales.d.ts +63 -0
  53. package/es/components/productCard/status.d.ts +32 -0
  54. package/es/components/productCard/types.d.ts +83 -0
  55. package/es/components/radio/index.d.ts +1 -0
  56. package/es/components/segmented/index.d.ts +1 -0
  57. package/es/components/select-time/RightPanel/index.d.ts +1 -0
  58. package/es/components/select-time/index.d.ts +1 -0
  59. package/es/components/skeleton/index.d.ts +1 -0
  60. package/es/components/slider/index.d.ts +1 -0
  61. package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
  62. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  63. package/es/components/table/Summary/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  68. package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  73. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  74. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  75. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  76. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  77. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  78. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  79. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  80. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  81. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
  85. package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  87. package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  90. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  91. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  92. package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
  93. package/es/components/time-picker/index.d.ts +1 -0
  94. package/es/components/upload/index.d.ts +1 -0
  95. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  96. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  97. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -0
  98. package/es/components/walletCard/Guest/index.d.ts +1 -0
  99. package/lib/components/auto-complete-number/index.d.ts +1 -0
  100. package/lib/components/badge/index.d.ts +1 -0
  101. package/lib/components/batch-editor/fields/index.d.ts +1 -0
  102. package/lib/components/calendar/index.d.ts +1 -0
  103. package/lib/components/cardPro/index.d.ts +1 -0
  104. package/lib/components/checkbox/index.d.ts +1 -0
  105. package/lib/components/classicLayout/index.d.ts +1 -0
  106. package/lib/components/config-provider/index.d.ts +1 -0
  107. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  108. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  109. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  110. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  111. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  112. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  113. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  114. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  115. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  116. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  117. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  118. package/lib/components/dataSourceComponents/fields/index.d.ts +18 -18
  119. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  120. package/lib/components/dropdown/index.d.ts +1 -0
  121. package/lib/components/page/index.d.ts +1 -0
  122. package/lib/components/pisellAvatar/index.d.ts +19 -0
  123. package/lib/components/pisellCard/index.d.ts +1 -0
  124. package/lib/components/pisellCardList/index.d.ts +2 -0
  125. package/lib/components/pisellCardList/index.js +4 -0
  126. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  127. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  128. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  129. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  130. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  131. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  132. package/lib/components/pisellMenu/types.d.ts +26 -0
  133. package/lib/components/pisellTooltip/index.d.ts +1 -0
  134. package/lib/components/pisellUpload/index.d.ts +1 -0
  135. package/lib/components/pisellWalletPassCard/index.d.ts +2 -0
  136. package/lib/components/pisellWalletPassCard/index.js +43 -11
  137. package/lib/components/productCard/components/Action/index.d.ts +1 -0
  138. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  139. package/lib/components/productCard/components/Divider/index.d.ts +1 -0
  140. package/lib/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  141. package/lib/components/productCard/components/Time/index.js +6 -2
  142. package/lib/components/productCard/locales.d.ts +63 -0
  143. package/lib/components/productCard/status.d.ts +32 -0
  144. package/lib/components/productCard/types.d.ts +83 -0
  145. package/lib/components/radio/index.d.ts +1 -0
  146. package/lib/components/segmented/index.d.ts +1 -0
  147. package/lib/components/select-time/RightPanel/index.d.ts +1 -0
  148. package/lib/components/select-time/index.d.ts +1 -0
  149. package/lib/components/skeleton/index.d.ts +1 -0
  150. package/lib/components/slider/index.d.ts +1 -0
  151. package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
  152. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  153. package/lib/components/table/Summary/index.d.ts +1 -0
  154. package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
  155. package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  156. package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
  157. package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  158. package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
  159. package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  160. package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
  161. package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  162. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  163. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  164. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  165. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  166. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  167. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  168. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  169. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  170. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  171. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  172. package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
  173. package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  174. package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
  175. package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
  176. package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  177. package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
  178. package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  179. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  180. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  181. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  182. package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
  183. package/lib/components/time-picker/index.d.ts +1 -0
  184. package/lib/components/upload/index.d.ts +1 -0
  185. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  186. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  187. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -0
  188. package/lib/components/walletCard/Guest/index.d.ts +1 -0
  189. package/lowcode/pisell-card-list/meta.ts +5 -0
  190. package/lowcode/pisell-wallet-pass-card/meta.ts +6 -1
  191. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AutoCompleteProps, InputNumberProps } from "antd";
2
3
  interface AutoCompleteNumberProps {
3
4
  autoCompleteProps: AutoCompleteProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BadgeProps as OriginalBadgeprops } from 'antd';
2
3
  import './index.less';
3
4
  export interface Badgeprops extends OriginalBadgeprops {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  price: import("react").FC<import("./Price").PriceProps>;
3
4
  image: (props: import("./Image").ImageProps) => JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Calendar: (props: any) => JSX.Element;
2
3
  export default Calendar;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const _default: (props: any) => JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Checkbox: (props: any) => JSX.Element;
2
3
  export default Checkbox;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ClassicLayout: (props: any) => JSX.Element;
3
4
  export default ClassicLayout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
2
3
  import "dayjs/locale/zh-cn";
3
4
  export interface ConfigProviderProps extends OriginalConfigProviderProps {
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { PisellMenuProps } from '../../pisellMenu/types';
3
+ /**
4
+ * @title: 数据源表单组件
5
+ * @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
6
+ */
7
+ declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
8
+ export default DataSourceMenu;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ColorPickerProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const ColorPickerReadPretty: (props: ColorPickerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateRangePickerProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconSelectProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const IconSelectReadPretty: (props: IconSelectProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TextAreaProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UrlProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  export declare const formatUrl: (url: string) => string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TimePickerProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TranslationProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
@@ -60,11 +60,21 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | 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("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
64
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | 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("./IconSelect/type").IconSelectProps & 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("./Upload/type").UploadProps & 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("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
+ options?: any;
65
+ optionSourceType?: "custom" | "default" | "api" | undefined;
66
+ labelField: string;
67
+ valueField: string;
68
+ extraParams?: Record<string, any> | undefined;
65
69
  } & {
66
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | 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> & {
70
+ dataSource?: any;
71
+ }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
+ } & {
74
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
+ }) | 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 & {
76
+ onChange: (value: string) => void;
77
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
68
78
  JSON: import("react").FC<any>;
69
79
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
80
  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>;
@@ -84,19 +94,9 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
84
94
  name?: string | undefined;
85
95
  fieldKey?: string | undefined;
86
96
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
87
- }) | (import("react").FC<{}> & {
88
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
- } & {
90
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
- }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
- options?: any;
93
- optionSourceType?: "custom" | "default" | "api" | undefined;
94
- labelField: string;
95
- valueField: string;
96
- extraParams?: Record<string, any> | undefined;
97
+ }) | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
98
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
97
99
  } & {
98
- dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
- onChange: (value: string) => void;
101
- } & 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("./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
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
101
+ });
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ValueProps, SortType } from '../types';
3
4
  declare type IdType = string | number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Dropdown: (props: any) => JSX.Element;
2
3
  export default Dropdown;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CardProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface PisellCardProps extends CardProps {
@@ -64,6 +64,8 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
64
64
  };
65
65
  };
66
66
  };
67
+ /** 编辑编辑按钮后,弹窗展示之前 */
68
+ beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
67
69
  /** 编辑弹窗点击提交 */
68
70
  onConfirmEdit?: (value: any, index: number) => void;
69
71
  }
@@ -63,6 +63,10 @@ var PisellCardList = function PisellCardList(props) {
63
63
  showBalanceSymbol: showBalanceSymbol || (item === null || item === void 0 ? void 0 : item.showBalanceSymbol),
64
64
  showActions: props.showActions || (item === null || item === void 0 ? void 0 : item.showActions),
65
65
  actions: props.actions || (item === null || item === void 0 ? void 0 : item.actions),
66
+ beforeEdit: function beforeEdit(record) {
67
+ var _props$beforeEdit;
68
+ return props === null || props === void 0 || (_props$beforeEdit = props.beforeEdit) === null || _props$beforeEdit === void 0 ? void 0 : _props$beforeEdit.call(props, record, index);
69
+ },
66
70
  onConfirmEdit: function onConfirmEdit(newVal) {
67
71
  var _props$onConfirmEdit;
68
72
  (_props$onConfirmEdit = props.onConfirmEdit) === null || _props$onConfirmEdit === void 0 || _props$onConfirmEdit.call(props, newVal, index);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './detePickerCpt.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PisellDatePicker: (props: any) => JSX.Element;
2
3
  export default PisellDatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface ScanProps {
3
4
  onChange: (val: string) => void;
@@ -0,0 +1,4 @@
1
+ export declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
+ activeNativeScanner: () => void;
3
+ isTerminal: any;
4
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import './index.less';
3
4
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { MenuProps } from 'antd';
3
+ export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ mode?: 'vertical' | 'horizontal' | 'inline';
7
+ theme?: 'light' | 'dark';
8
+ defaultOpenKeys?: string[];
9
+ defaultSelectedKeys?: string[];
10
+ inlineCollapsed?: boolean;
11
+ openKeys?: string[];
12
+ selectedKeys?: string[];
13
+ onOpenChange?: (openKeys: string[]) => void;
14
+ dataSource?: any;
15
+ __designMode?: string;
16
+ other?: PisellMenuProps;
17
+ }
18
+ export interface MenuItemType {
19
+ key: string;
20
+ label: string;
21
+ path: string;
22
+ children?: MenuItemType[];
23
+ icon?: string | React.ReactNode;
24
+ hide?: boolean;
25
+ type?: 'group' | 'divider';
26
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
2
3
  import { PisellContextType } from "../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { UploadProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface PisellUploadProps extends UploadProps {
@@ -75,6 +75,8 @@ export interface PisellWalletPassCardProps {
75
75
  };
76
76
  };
77
77
  };
78
+ /** 编辑编辑按钮后,弹窗展示之前 */
79
+ beforeEdit?: (value: any) => Promise<any> | boolean | void;
78
80
  /** 编辑弹窗点击提交 */
79
81
  onConfirmEdit?: (value: any) => void;
80
82
  [key: string]: any;
@@ -4,6 +4,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
7
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
11
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -101,6 +104,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
101
104
  discount = props.discount,
102
105
  showActions = props.showActions,
103
106
  actions = props.actions,
107
+ beforeEdit = props.beforeEdit,
104
108
  onConfirmEdit = props.onConfirmEdit,
105
109
  originData = props.originData,
106
110
  _props$style = props.style,
@@ -124,19 +128,82 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
124
128
  });
125
129
  setIsShowDetail(true);
126
130
  };
127
- var onEdit = function onEdit() {
128
- var _actions$edit, _actions$edit2;
129
- if (disabled || disabledReason || !(actions !== null && actions !== void 0 && (_actions$edit = actions.edit) !== null && _actions$edit !== void 0 && _actions$edit.visible) || !(actions !== null && actions !== void 0 && (_actions$edit2 = actions.edit) !== null && _actions$edit2 !== void 0 && _actions$edit2.enableDialog)) return;
130
- form.setFieldsValue({
131
- name: name,
132
- storeName: storeName,
133
- balance: balance,
134
- redeem: redeem,
135
- code: code,
136
- validDate: dayjs(validDate)
137
- });
138
- setIsShowEdit(true);
139
- };
131
+ var onEdit = /*#__PURE__*/function () {
132
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
133
+ var _actions$edit, _actions$edit2;
134
+ var executeEdit, result, shouldProceed;
135
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
136
+ while (1) switch (_context.prev = _context.next) {
137
+ case 0:
138
+ if (!(disabled || disabledReason || !(actions !== null && actions !== void 0 && (_actions$edit = actions.edit) !== null && _actions$edit !== void 0 && _actions$edit.visible) || !(actions !== null && actions !== void 0 && (_actions$edit2 = actions.edit) !== null && _actions$edit2 !== void 0 && _actions$edit2.enableDialog))) {
139
+ _context.next = 2;
140
+ break;
141
+ }
142
+ return _context.abrupt("return");
143
+ case 2:
144
+ executeEdit = function executeEdit() {
145
+ form.setFieldsValue({
146
+ name: name,
147
+ storeName: storeName,
148
+ balance: balance,
149
+ redeem: redeem,
150
+ code: code,
151
+ validDate: dayjs(validDate)
152
+ });
153
+ setIsShowEdit(true);
154
+ };
155
+ if (beforeEdit) {
156
+ _context.next = 6;
157
+ break;
158
+ }
159
+ executeEdit();
160
+ return _context.abrupt("return");
161
+ case 6:
162
+ _context.prev = 6;
163
+ result = beforeEdit({
164
+ id: id,
165
+ name: name,
166
+ storeName: storeName,
167
+ balance: balance,
168
+ redeem: redeem,
169
+ code: code,
170
+ validDate: validDate,
171
+ originData: originData
172
+ }); // 处理 Promise 情况
173
+ if (!(result instanceof Promise)) {
174
+ _context.next = 14;
175
+ break;
176
+ }
177
+ _context.next = 11;
178
+ return result;
179
+ case 11:
180
+ shouldProceed = _context.sent;
181
+ if (shouldProceed !== false) {
182
+ // 显式检查 false
183
+ executeEdit();
184
+ }
185
+ return _context.abrupt("return");
186
+ case 14:
187
+ // 处理同步情况
188
+ if (result !== false) {
189
+ executeEdit();
190
+ }
191
+ _context.next = 20;
192
+ break;
193
+ case 17:
194
+ _context.prev = 17;
195
+ _context.t0 = _context["catch"](6);
196
+ console.error('Before edit check failed:', _context.t0);
197
+ case 20:
198
+ case "end":
199
+ return _context.stop();
200
+ }
201
+ }, _callee, null, [[6, 17]]);
202
+ }));
203
+ return function onEdit() {
204
+ return _ref.apply(this, arguments);
205
+ };
206
+ }();
140
207
 
141
208
  // 添加长按相关处理函数
142
209
  var handleTouchStart = function handleTouchStart() {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Action: ({ item, onAction }: any) => JSX.Element;
3
4
  export default Action;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Divider: ({ type }: any) => JSX.Element;
3
4
  export default Divider;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
+ style?: any;
5
+ status: string;
6
+ onLike?: any;
7
+ className?: string | undefined;
8
+ isShowChangeResource?: boolean | undefined;
9
+ }) => JSX.Element;
10
+ export default Like;
@@ -83,7 +83,7 @@ var Time = function Time(_ref) {
83
83
  });
84
84
  }, [isShowChangeResource]);
85
85
  var resourceCom = useCallback(function (item) {
86
- if (!isShowChangeResource) {
86
+ if (item !== null && item !== void 0 && item.hasOwnProperty('isShowChangeResource') && !item.isShowChangeResource || !isShowChangeResource) {
87
87
  return item === null || item === void 0 ? void 0 : item.name;
88
88
  }
89
89
  return /*#__PURE__*/React.createElement(SelectResource, _extends({}, item, {
@@ -118,7 +118,7 @@ var Time = function Time(_ref) {
118
118
  resourceErrorText: resourceErrorText
119
119
  });
120
120
  return resource_id && !is_hide_like || _resourceCom ? /*#__PURE__*/React.createElement(React.Fragment, null, resource_id && !is_hide_like ? likeCom(like_status, item) : null, _resourceCom) : null;
121
- }, [multiResources, resource_id, resources, relation_form_name, is_hide_like]);
121
+ }, [multiResources, resource_id, resources, relation_form_name, is_hide_like, resourceErrorText, allowClearResource, isErrorResource, isShowChangeResource]);
122
122
  var isShow = useMemo(function () {
123
123
  return start_date && end_date || holderCom || likeAndResourceCom;
124
124
  }, [start_date, holderCom, likeAndResourceCom]);
@@ -0,0 +1,63 @@
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.hour.minute': (hour: number, minute: number) => string;
20
+ 'pisell2.product.card.sales': string;
21
+ };
22
+ 'zh-CN': {
23
+ 'pisell2.product.card.edit': string;
24
+ 'pisell2.product.card.day': (val: number) => string;
25
+ 'pisell2.product.card.day.event': (val: number) => string;
26
+ 'pisell2.product.card.minute': (val: number) => string;
27
+ 'pisell2.product.card.discount.reason': string;
28
+ 'pisell2.product.card.discount.note': string;
29
+ 'pisell2.product.card.discount.add.note': string;
30
+ 'pisell2.product.card.discount.edit.note': string;
31
+ 'pisell2.product.card.confirm': string;
32
+ 'pisell2.product.card.cancel': string;
33
+ 'pisell2.product.card.note.pla': string;
34
+ 'pisell2.product.card.items.package': string;
35
+ 'pisell2.product.card.view-all': string;
36
+ 'pisell2.product.card.view-less': string;
37
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
38
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
39
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
40
+ 'pisell2.product.card.sales': string;
41
+ };
42
+ 'zh-HK': {
43
+ 'pisell2.product.card.edit': string;
44
+ 'pisell2.product.card.day': (val: number) => string;
45
+ 'pisell2.product.card.day.event': (val: number) => string;
46
+ 'pisell2.product.card.minute': (val: number) => string;
47
+ 'pisell2.product.card.discount.reason': string;
48
+ 'pisell2.product.card.discount.note': string;
49
+ 'pisell2.product.card.discount.add.note': string;
50
+ 'pisell2.product.card.discount.edit.note': string;
51
+ 'pisell2.product.card.confirm': string;
52
+ 'pisell2.product.card.cancel': string;
53
+ 'pisell2.product.card.note.pla': string;
54
+ 'pisell2.product.card.items.package': string;
55
+ 'pisell2.product.card.view-all': string;
56
+ 'pisell2.product.card.view-less': string;
57
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
58
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
59
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
60
+ 'pisell2.product.card.sales': string;
61
+ };
62
+ };
63
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
+ /**
3
+ * @title: 套餐数据
4
+ * @description:
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2025-01-02 23:21
8
+ */
9
+ export declare const defaultBundle: bundleType;
10
+ /**
11
+ * @description: 单规格
12
+ * @return {*}
13
+ * @Author: WangHan
14
+ * @Date: 2025-01-02 23:00
15
+ */
16
+ export declare const defaultOption: optionType;
17
+ /**
18
+ * @title: 商品商品类型
19
+ * @description:
20
+ * @return {*}
21
+ * @Author: WangHan
22
+ * @Date: 2025-01-02 22:48
23
+ */
24
+ export declare const defaultProduct: productType;
25
+ /**
26
+ * @title: 默认数据
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-12 16:49
31
+ */
32
+ export declare const defaultValue: ProductCardTypes;