@pisell/materials 1.0.895 → 1.0.897

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 (223) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +4 -4
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +5 -5
  6. package/build/lowcode/preview.js +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +27 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +33 -33
  11. package/es/components/batch-editor/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  19. package/es/components/dataSourceComponents/fields/index.d.ts +11 -12
  20. package/es/components/date-picker/index.d.ts +0 -1
  21. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  22. package/es/components/filter/index.d.ts +0 -1
  23. package/es/components/iconfont/index.d.ts +8 -0
  24. package/es/components/iconfont/index.js +1 -1
  25. package/es/components/page/index.d.ts +0 -1
  26. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  27. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  28. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  29. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  30. package/es/components/pisellCardList/index.js +25 -1
  31. package/es/components/pisellCheckboxGroup/index.js +2 -2
  32. package/es/components/pisellCheckboxGroup/index.less +13 -1
  33. package/es/components/pisellGoodPassCard/index.d.ts +50 -0
  34. package/es/components/pisellInput/index.d.ts +0 -1
  35. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  36. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  37. package/es/components/pisellModal/components/index.d.ts +0 -1
  38. package/es/components/pisellToast/index.d.ts +16 -0
  39. package/es/components/pisellWalletPassCard/index.d.ts +128 -0
  40. package/es/components/pisellWalletPassCard/index.js +235 -68
  41. package/es/components/pisellWalletPassCard/index.less +37 -7
  42. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  43. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  44. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  45. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  46. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  47. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  48. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  49. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  50. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  51. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  52. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  53. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  54. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  55. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  56. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  57. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  58. package/es/components/productCard/components/Action/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 +0 -1
  61. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  62. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  63. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  64. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  65. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  66. package/es/components/productCard/index.d.ts +7 -0
  67. package/es/components/productCard/locales.d.ts +84 -0
  68. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  69. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  70. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  71. package/es/components/table/Actions/index.d.ts +0 -1
  72. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  73. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  74. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  75. package/es/components/table/Table/AddFieldModal/index.d.ts +4 -0
  76. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  77. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  78. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  79. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  80. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  81. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  82. package/es/components/table/Table/fields/index.d.ts +2 -3
  83. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  84. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  88. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  89. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  90. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  91. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  92. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  95. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  96. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  97. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  98. package/es/components/table/View/index.d.ts +0 -1
  99. package/es/components/versionSelect/index.d.ts +0 -1
  100. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  101. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  102. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  103. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
  104. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  105. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  106. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  107. package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
  108. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  109. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +1 -1
  110. package/es/components/virtual-keyboard/index.d.ts +25 -0
  111. package/es/locales/en-US.js +6 -2
  112. package/es/locales/zh-CN.js +6 -2
  113. package/es/locales/zh-TW.js +6 -2
  114. package/es/utils/index.d.ts +1 -1
  115. package/es/utils/platform.d.ts +1 -1
  116. package/lib/components/batch-editor/index.d.ts +0 -1
  117. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  118. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  119. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  120. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  121. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  122. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  123. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  124. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -12
  125. package/lib/components/date-picker/index.d.ts +0 -1
  126. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  127. package/lib/components/filter/index.d.ts +0 -1
  128. package/lib/components/iconfont/index.d.ts +8 -0
  129. package/lib/components/iconfont/index.js +1 -1
  130. package/lib/components/page/index.d.ts +0 -1
  131. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  132. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  133. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  134. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  135. package/lib/components/pisellCardList/index.js +25 -1
  136. package/lib/components/pisellCheckboxGroup/index.js +2 -1
  137. package/lib/components/pisellCheckboxGroup/index.less +13 -1
  138. package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
  139. package/lib/components/pisellInput/index.d.ts +0 -1
  140. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  141. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  142. package/lib/components/pisellModal/components/index.d.ts +0 -1
  143. package/lib/components/pisellToast/index.d.ts +16 -0
  144. package/lib/components/pisellWalletPassCard/index.d.ts +128 -0
  145. package/lib/components/pisellWalletPassCard/index.js +187 -48
  146. package/lib/components/pisellWalletPassCard/index.less +37 -7
  147. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  148. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  149. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  150. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  151. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +27 -0
  152. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  153. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  154. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  155. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  156. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  157. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  158. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  159. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +45 -0
  160. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  161. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  162. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  163. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  164. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  165. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  166. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  167. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  168. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  169. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  170. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  171. package/lib/components/productCard/index.d.ts +7 -0
  172. package/lib/components/productCard/locales.d.ts +84 -0
  173. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  174. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  175. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  176. package/lib/components/table/Actions/index.d.ts +0 -1
  177. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  178. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  179. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  180. package/lib/components/table/Table/AddFieldModal/index.d.ts +4 -0
  181. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  182. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  183. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  184. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  185. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  186. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  187. package/lib/components/table/Table/fields/index.d.ts +2 -3
  188. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  189. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  190. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  191. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  192. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  193. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  194. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  195. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  196. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  197. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  198. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  199. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  200. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  201. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  202. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  203. package/lib/components/table/View/index.d.ts +0 -1
  204. package/lib/components/versionSelect/index.d.ts +0 -1
  205. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  206. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  207. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  208. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
  209. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  210. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  211. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  212. package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
  213. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  214. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +1 -8
  215. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  216. package/lib/locales/en-US.js +6 -2
  217. package/lib/locales/zh-CN.js +6 -2
  218. package/lib/locales/zh-TW.js +6 -2
  219. package/lib/utils/index.d.ts +1 -1
  220. package/lib/utils/platform.d.ts +1 -1
  221. package/lowcode/pisell-card-list/meta.ts +50 -1
  222. package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +7 -0
  223. package/package.json +4 -3
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
+ export interface RightItemsStyleProps {
4
+ buttonBackgroundColor?: string;
5
+ textColor?: string;
6
+ resetButtonBackgroundColor?: string;
7
+ resetButtonTextColor?: string;
8
+ isDoneButtonFollowTheme?: boolean;
9
+ doneButtonBackgroundColor?: string;
10
+ doneButtonTextColor?: string;
11
+ }
12
+ export interface AmountProps {
13
+ max?: number;
14
+ min?: number;
15
+ doneText?: string;
16
+ resetText?: string;
17
+ defaultValue?: string | number;
18
+ placeholder?: string;
19
+ amountProps?: {
20
+ showCurrencySymbol: boolean;
21
+ useThousandsSeparator: boolean;
22
+ };
23
+ presets?: BaseNumberKeyboardProps['presets'];
24
+ value?: string | number;
25
+ onChange?: (val: string | number) => void;
26
+ onEnter?: (val: string | number) => void;
27
+ defaultSelect?: boolean;
28
+ inputFormat?: (_v: string) => React.ReactNode | null;
29
+ rightItemsStyle?: RightItemsStyleProps;
30
+ selectType?: 'light' | 'dark';
31
+ backgroundColor?: string;
32
+ containerBackgroundColor?: string;
33
+ buttonBackgroundColor?: string;
34
+ textColor?: string;
35
+ resetButtonBackgroundColor?: string;
36
+ resetButtonTextColor?: string;
37
+ isDoneButtonFollowTheme?: boolean;
38
+ doneButtonBackgroundColor?: string;
39
+ doneButtonTextColor?: string;
40
+ keyboardBackgroundColor?: string;
41
+ keyboardButtonBackgroundColor?: string;
42
+ keyboardButtonTextColor?: string;
43
+ keyboardButtonHoverColor?: string;
44
+ }
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { PresetsProps } from './Presets';
3
+ import { RightItemsStyleProps } from '../Amount';
4
+ import './index.less';
5
+ export interface BaseNumberKeyboardProps {
6
+ placeholder?: string;
7
+ format?: (val: string) => React.ReactNode;
8
+ defaultValue?: string | number;
9
+ doneText?: string;
10
+ resetText?: string;
11
+ onChange?: (val: string) => void;
12
+ onEnter?: (val: string) => void;
13
+ value?: string | number;
14
+ max?: number;
15
+ min?: number;
16
+ presets?: PresetsProps['presets'];
17
+ defaultSelect?: boolean;
18
+ rightItemsStyle?: RightItemsStyleProps;
19
+ }
20
+ declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
21
+ export default BaseNumberKeyboard;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type ItemValue = string | number;
4
+ export interface Item {
5
+ value: ItemValue;
6
+ label: React.ReactNode;
7
+ disabled: boolean;
8
+ type: 'text' | 'primary';
9
+ style?: React.CSSProperties;
10
+ size?: number;
11
+ }
12
+ export interface KeyboardProps {
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ onChange?: (value?: ItemValue) => void;
16
+ items?: Item[];
17
+ rightItems?: Item[];
18
+ keydown?: boolean;
19
+ }
20
+ declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { NumberProps } from './types';
2
+ import './index.less';
3
+ export type { NumberProps };
4
+ declare const Number: (props: NumberProps) => JSX.Element;
5
+ export default Number;
@@ -0,0 +1,32 @@
1
+ export declare const numberThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,25 @@
1
+ export interface NumberProps {
2
+ max?: number;
3
+ min?: number;
4
+ doneText?: string;
5
+ resetText: string;
6
+ defaultValue?: string | number;
7
+ placeholder?: string;
8
+ value?: string | number;
9
+ onChange?: (val: string | number) => void;
10
+ onEnter?: (val: string | number) => void;
11
+ selectType?: 'light' | 'dark';
12
+ backgroundColor?: string;
13
+ containerBackgroundColor?: string;
14
+ buttonBackgroundColor?: string;
15
+ textColor?: string;
16
+ resetButtonBackgroundColor?: string;
17
+ resetButtonTextColor?: string;
18
+ isDoneButtonFollowTheme?: boolean;
19
+ doneButtonBackgroundColor?: string;
20
+ doneButtonTextColor?: string;
21
+ keyboardBackgroundColor?: string;
22
+ keyboardButtonBackgroundColor?: string;
23
+ keyboardButtonTextColor?: string;
24
+ keyboardButtonHoverColor?: string;
25
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import './index.less';
4
+ export interface VirtualKeyInputProps extends InputProps {
5
+ previewValue?: string;
6
+ renderInput?: (props: any) => any;
7
+ showDelete?: boolean;
8
+ onValueSelect?: (selected: boolean) => void;
9
+ defaultSelect?: boolean;
10
+ style?: React.CSSProperties;
11
+ }
12
+ declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
+ export default VirtualKeyInput;
@@ -107,14 +107,7 @@ var VirtualKeyInput = (props) => {
107
107
  value: previewValue
108
108
  }
109
109
  ),
110
- ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement(
111
- "div",
112
- {
113
- className: "virtual-keyboard-input-delete",
114
- onClick: _onDelete
115
- },
116
- /* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon" })
117
- ) : null
110
+ ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement("div", { className: "virtual-keyboard-input-delete", onClick: _onDelete }, /* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon" })) : null
118
111
  );
119
112
  };
120
113
  var VirtualKeyInput_default = VirtualKeyInput;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { KeyboardProps } from "./Keyboard";
3
+ import { VirtualKeyInputProps } from "./VirtualKeyInput";
4
+ import "./index.less";
5
+ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ keyboardProps?: KeyboardProps;
7
+ virtualKeyInputProps?: VirtualKeyInputProps;
8
+ rightPanel?: React.ReactNode;
9
+ style?: React.CSSProperties;
10
+ onChange?: (value?: any) => void;
11
+ value?: string;
12
+ selectType?: 'light' | 'dark';
13
+ backgroundColor?: string;
14
+ containerBackgroundColor?: string;
15
+ buttonBackgroundColor?: string;
16
+ textColor?: string;
17
+ keyboardBackgroundColor?: string;
18
+ keyboardButtonBackgroundColor?: string;
19
+ keyboardButtonTextColor?: string;
20
+ keyboardButtonHoverColor?: string;
21
+ primaryButtonBackgroundColor?: string;
22
+ primaryButtonTextColor?: string;
23
+ }
24
+ declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
25
+ export default VirtualKeyboard;
@@ -153,7 +153,7 @@ var en_US_default = {
153
153
  "pisell-wallet-pass-card-name": "Name",
154
154
  "pisell-wallet-pass-card-store-name": "StoreName",
155
155
  "pisell-wallet-pass-card-balance": "Balance",
156
- "pisell-wallet-pass-card-redeem": "Redeem",
156
+ "pisell-wallet-pass-card-redeem": "use",
157
157
  "pisell-wallet-pass-card-code": "Code",
158
158
  "pisell-wallet-pass-card-valid-to": "Valid to",
159
159
  "pisell-wallet-pass-card-confirm": "Confirm",
@@ -365,5 +365,9 @@ var en_US_default = {
365
365
  "pisell2.text.hardware-error.search-logs": "Search logs...",
366
366
  "pisell2.text.hardware-error.export-logs": "Export Logs",
367
367
  "pisell2.text.hardware-error.no-errors": "No error information",
368
- "pisell2.text.hardware-error.no-logs": "No log records"
368
+ "pisell2.text.hardware-error.no-logs": "No log records",
369
+ // 钱包卡片组件
370
+ "pisell-wallet-pass-card-status-used": "Used",
371
+ "pisell-wallet-pass-card-status-expired": "Expired",
372
+ "pisell-wallet-pass-card-status-disabled": "Disabled"
369
373
  };
@@ -153,7 +153,7 @@ var zh_CN_default = {
153
153
  "pisell-wallet-pass-card-name": "商品名称",
154
154
  "pisell-wallet-pass-card-store-name": "共享店铺名称",
155
155
  "pisell-wallet-pass-card-balance": "余额",
156
- "pisell-wallet-pass-card-redeem": "兑换",
156
+ "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "识别码编号",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
159
  "pisell-wallet-pass-card-confirm": "确认",
@@ -356,5 +356,9 @@ var zh_CN_default = {
356
356
  "pisell2.text.hardware-error.search-logs": "搜索日志...",
357
357
  "pisell2.text.hardware-error.export-logs": "导出日志",
358
358
  "pisell2.text.hardware-error.no-errors": "暂无错误信息",
359
- "pisell2.text.hardware-error.no-logs": "暂无日志记录"
359
+ "pisell2.text.hardware-error.no-logs": "暂无日志记录",
360
+ // 钱包卡片组件
361
+ "pisell-wallet-pass-card-status-used": "已使用",
362
+ "pisell-wallet-pass-card-status-expired": "已过期",
363
+ "pisell-wallet-pass-card-status-disabled": "已禁用"
360
364
  };
@@ -153,7 +153,7 @@ var zh_TW_default = {
153
153
  "pisell-wallet-pass-card-name": "商品名稱",
154
154
  "pisell-wallet-pass-card-store-name": "共享店鋪名稱",
155
155
  "pisell-wallet-pass-card-balance": "餘額",
156
- "pisell-wallet-pass-card-redeem": "兌換",
156
+ "pisell-wallet-pass-card-redeem": "使用",
157
157
  "pisell-wallet-pass-card-code": "識別碼編號",
158
158
  "pisell-wallet-pass-card-valid-to": "有效期至",
159
159
  "pisell-wallet-pass-card-confirm": "確認",
@@ -357,5 +357,9 @@ var zh_TW_default = {
357
357
  "pisell2.text.hardware-error.search-logs": "搜索日誌...",
358
358
  "pisell2.text.hardware-error.export-logs": "導出日誌",
359
359
  "pisell2.text.hardware-error.no-errors": "暫無錯誤信息",
360
- "pisell2.text.hardware-error.no-logs": "暫無日誌記錄"
360
+ "pisell2.text.hardware-error.no-logs": "暫無日誌記錄",
361
+ // 钱包卡片组件
362
+ "pisell-wallet-pass-card-status-used": "已使用",
363
+ "pisell-wallet-pass-card-status-expired": "已過期",
364
+ "pisell-wallet-pass-card-status-disabled": "已禁用"
361
365
  };
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string | number;
2
+ export declare const getCssNumber: (val: string | number) => string;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => any;
1
+ export declare const isMobile: () => boolean;
@@ -167,6 +167,50 @@ export default {
167
167
  setter: 'BoolSetter',
168
168
  defaultValue: true,
169
169
  },
170
+ {
171
+ type: 'group',
172
+ title: '商品名称样式',
173
+ display: 'entry',
174
+ condition: (target: IPublicModelSettingField) => {
175
+ return target.parent.getPropValue('showName') === true;
176
+ },
177
+ items: [
178
+ {
179
+ name: 'nameTitleStyle.fontSize',
180
+ title: {
181
+ type: 'i18n',
182
+ 'en-US': 'Font Size',
183
+ 'zh-CN': '字号',
184
+ },
185
+ setter: 'NumberSetter'
186
+ },
187
+ {
188
+ name: 'nameTitleStyle.fontWeight',
189
+ title: {
190
+ type: 'i18n',
191
+ 'en-US': 'Font Weight',
192
+ 'zh-CN': '字重',
193
+ },
194
+ setter: 'NumberSetter'
195
+ },
196
+ {
197
+ name: 'nameTitleStyle.color',
198
+ title: {
199
+ type: 'i18n',
200
+ 'en-US': 'Color',
201
+ 'zh-CN': '颜色',
202
+ },
203
+ setter: 'ColorSetter'
204
+ },
205
+ ]
206
+ },
207
+ {
208
+ name: 'showStatus',
209
+ title: { label: '显示状态标识', tip: '显示状态标识' },
210
+ propType: 'bool',
211
+ setter: 'BoolSetter',
212
+ defaultValue: true,
213
+ },
170
214
  {
171
215
  name: 'showStoreName',
172
216
  title: { label: '显示共享店铺名称', tip: '显示共享店铺名称' },
@@ -258,9 +302,14 @@ export default {
258
302
  },
259
303
  {
260
304
  name: 'onConfirmEdit',
261
- templete:
305
+ template:
262
306
  "onConfirmEdit(value, index){\n// 编辑弹窗点击确认\nconsole.log('onConfirmEdit');}",
263
307
  },
308
+ {
309
+ name: 'onConfirmEditAmount',
310
+ template:
311
+ "onConfirmEditAmount(value, index){\n// 编辑金额点击确认\nconsole.log('onConfirmEditAmount');}",
312
+ },
264
313
  ],
265
314
  },
266
315
  },
@@ -212,5 +212,12 @@ export const actionsMeta = {
212
212
  },
213
213
  ],
214
214
  },
215
+ {
216
+ name: 'enableEditAmount',
217
+ title: { label: '开启编辑金额' },
218
+ propType: 'bool',
219
+ setter: 'BoolSetter',
220
+ defaultValue: false,
221
+ }
215
222
  ],
216
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.895",
3
+ "version": "1.0.897",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -73,9 +73,10 @@
73
73
  "styled-components": "^6.0.0-rc.3",
74
74
  "swiper": "^8.4.7",
75
75
  "vod-js-sdk-v6": "^1.4.11",
76
+ "antd-mobile": "^5.38.1",
77
+ "@pisell/date-picker": "1.0.124",
76
78
  "@pisell/icon": "0.0.10",
77
- "@pisell/utils": "1.0.50",
78
- "@pisell/date-picker": "1.0.122"
79
+ "@pisell/utils": "1.0.52"
79
80
  },
80
81
  "peerDependencies": {
81
82
  "react": "^18.0.0",