@pisell/materials 6.4.18 → 6.4.19

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 (186) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +3 -3
  3. package/build/lowcode/preview.js +8 -8
  4. package/build/lowcode/render/default/view.css +1 -1
  5. package/build/lowcode/render/default/view.js +15 -15
  6. package/build/lowcode/view.css +1 -1
  7. package/build/lowcode/view.js +15 -15
  8. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  9. package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -1
  10. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  11. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  12. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  13. package/es/components/dataSourceComponents/fields/Upload/index.js +4 -3
  14. package/es/components/iconfont/index.d.ts +8 -0
  15. package/es/components/iconfont/index.js +1 -1
  16. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  17. package/es/components/pisellCardList/index.d.ts +103 -0
  18. package/es/components/pisellText/components/Editable/index.d.ts +29 -0
  19. package/es/components/pisellText/components/Editable/index.js +130 -0
  20. package/es/components/pisellText/components/Editable/index.less +40 -0
  21. package/es/components/pisellText/index.d.ts +9 -0
  22. package/es/components/pisellText/index.js +2 -0
  23. package/es/components/pisellWalletPassCard/index.d.ts +136 -0
  24. package/es/components/productCard/index.d.ts +7 -0
  25. package/es/components/productCard/utils.d.ts +31 -0
  26. package/es/components/productCard/utils.js +1 -8
  27. package/es/components/select/index.d.ts +9 -0
  28. package/es/components/select/index.js +4 -2
  29. package/es/components/sortableList/index.d.ts +11 -0
  30. package/es/components/sortableList/index.js +2 -1
  31. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  32. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +9 -1
  33. package/es/components/table/Actions/component/ExportImport/index.js +55 -27
  34. package/es/components/table/Table/index.d.ts +4 -0
  35. package/es/components/table/Table/index.js +7 -3
  36. package/es/components/table/hooks/useTransColumns.d.ts +14 -0
  37. package/es/components/table/hooks/useTransColumns.js +1 -1
  38. package/es/components/table/index.d.ts +4 -0
  39. package/es/components/table/index.js +3 -1
  40. package/es/components/table/serve.d.ts +13 -0
  41. package/es/components/table/serve.js +8 -0
  42. package/es/components/tabs/index.d.ts +17 -0
  43. package/es/components/tabs/index.js +9 -0
  44. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
  45. package/es/components/walletCard/index.d.ts +11 -11
  46. package/es/components/walletCard/index.js +51 -40
  47. package/es/index.d.ts +145 -0
  48. package/es/locales/en-US.d.ts +307 -0
  49. package/es/locales/en-US.js +2 -2
  50. package/es/locales/zh-CN.d.ts +302 -0
  51. package/es/locales/zh-CN.js +1 -1
  52. package/es/locales/zh-TW.d.ts +302 -0
  53. package/es/locales/zh-TW.js +1 -1
  54. package/es/typings.d.ts +7 -1
  55. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  56. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  57. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  58. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  59. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  60. package/lib/components/dataSourceComponents/fields/Upload/index.js +2 -1
  61. package/lib/components/iconfont/index.d.ts +8 -0
  62. package/lib/components/iconfont/index.js +1 -1
  63. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  64. package/lib/components/pisellCardList/index.d.ts +103 -0
  65. package/lib/components/pisellText/components/Editable/index.d.ts +29 -0
  66. package/lib/components/pisellText/components/Editable/index.js +139 -0
  67. package/lib/components/pisellText/components/Editable/index.less +40 -0
  68. package/lib/components/pisellText/index.d.ts +9 -0
  69. package/lib/components/pisellText/index.js +2 -0
  70. package/lib/components/pisellWalletPassCard/index.d.ts +136 -0
  71. package/lib/components/productCard/index.d.ts +7 -0
  72. package/lib/components/productCard/utils.d.ts +31 -0
  73. package/lib/components/productCard/utils.js +1 -8
  74. package/lib/components/select/index.d.ts +9 -0
  75. package/lib/components/select/index.js +7 -2
  76. package/lib/components/sortableList/index.d.ts +11 -0
  77. package/lib/components/sortableList/index.js +2 -2
  78. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  79. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +7 -1
  80. package/lib/components/table/Actions/component/ExportImport/index.js +37 -25
  81. package/lib/components/table/Table/index.d.ts +4 -0
  82. package/lib/components/table/Table/index.js +8 -4
  83. package/lib/components/table/hooks/useTransColumns.d.ts +14 -0
  84. package/lib/components/table/hooks/useTransColumns.js +1 -1
  85. package/lib/components/table/index.d.ts +4 -0
  86. package/lib/components/table/index.js +3 -1
  87. package/lib/components/table/serve.d.ts +13 -0
  88. package/lib/components/table/serve.js +8 -0
  89. package/lib/components/tabs/index.d.ts +17 -0
  90. package/lib/components/tabs/index.js +5 -0
  91. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
  92. package/lib/components/walletCard/index.d.ts +11 -11
  93. package/lib/components/walletCard/index.js +47 -29
  94. package/lib/index.d.ts +145 -0
  95. package/lib/locales/en-US.d.ts +307 -0
  96. package/lib/locales/en-US.js +2 -2
  97. package/lib/locales/zh-CN.d.ts +302 -0
  98. package/lib/locales/zh-CN.js +1 -1
  99. package/lib/locales/zh-TW.d.ts +302 -0
  100. package/lib/locales/zh-TW.js +1 -1
  101. package/lib/typings.d.ts +7 -1
  102. package/lowcode/pisell-text.editable/meta.ts +115 -0
  103. package/lowcode/pisell-text.editable/snippets.ts +15 -0
  104. package/lowcode/sortable-list/meta.ts +1 -1
  105. package/lowcode/wallet-card/meta.ts +16 -14
  106. package/package.json +2 -2
  107. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  108. package/es/components/auto-resize-text/index.d.ts +0 -6
  109. package/es/components/cardPro/index.d.ts +0 -4
  110. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  111. package/es/components/keyboard/index.d.ts +0 -22
  112. package/es/components/pisell-config-provider/context.d.ts +0 -22
  113. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  114. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  115. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  116. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  117. package/es/components/pisellToast/index.d.ts +0 -17
  118. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  119. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  120. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  121. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  122. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  123. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  124. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  125. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  126. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  127. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  128. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  129. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  130. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -4
  131. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  132. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  133. package/es/components/productCard/components/Action/index.d.ts +0 -4
  134. package/es/components/productCard/components/Header/index.d.ts +0 -4
  135. package/es/components/productCard/components/Sales/index.d.ts +0 -4
  136. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  137. package/es/components/productCard/locales.d.ts +0 -84
  138. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
  139. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  140. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  141. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  142. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  143. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  144. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  145. package/es/components/virtual-keyboard/index.d.ts +0 -25
  146. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  147. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  148. package/lib/components/auto-resize-text/index.d.ts +0 -6
  149. package/lib/components/cardPro/index.d.ts +0 -4
  150. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  151. package/lib/components/keyboard/index.d.ts +0 -22
  152. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  153. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  154. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  155. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  156. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  157. package/lib/components/pisellToast/index.d.ts +0 -17
  158. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  159. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  160. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  161. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  162. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
  163. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  164. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
  165. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
  166. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  167. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  168. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  169. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
  170. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -4
  171. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  172. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  173. package/lib/components/productCard/components/Action/index.d.ts +0 -4
  174. package/lib/components/productCard/components/Header/index.d.ts +0 -4
  175. package/lib/components/productCard/components/Sales/index.d.ts +0 -4
  176. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
  177. package/lib/components/productCard/locales.d.ts +0 -84
  178. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
  179. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  180. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  181. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  182. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  183. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  184. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  185. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  186. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
- export default Footer;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
- export default MultiDay;
@@ -1,14 +0,0 @@
1
- interface InputItem {
2
- start_date: string;
3
- end_date: string;
4
- total: number;
5
- num: number;
6
- }
7
- interface OutputItem {
8
- start_date: string;
9
- end_date: string;
10
- total: number;
11
- num: number;
12
- }
13
- export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
- export {};
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Note: (props: any) => JSX.Element | null;
4
- export default Note;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const DiscountReason: (props: any) => JSX.Element;
3
- export default DiscountReason;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface IProps {
4
- isShowImage?: boolean;
5
- dataSource: {
6
- bundle?: any[];
7
- symbol?: string;
8
- };
9
- }
10
- declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
11
- export default Packages;
@@ -1,20 +0,0 @@
1
- /**
2
- * @title: 金额是否是负
3
- * @description:
4
- * @param {string} type
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2024-11-22 10:01
8
- */
9
- export declare const minusSign: (item: any, type?: string) => "" | "-";
10
- /**
11
- * @title: 金额格式化
12
- * @description:
13
- * @param {number} price
14
- * @param {string} amountSymbol
15
- * @param {number} digit
16
- * @return {*}
17
- * @Author: WangHan
18
- * @Date: 2024-11-22 10:58
19
- */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Resources: (props: any) => JSX.Element | null;
4
- export default Resources;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface IProps {
4
- hideDivider?: boolean;
5
- dataSource: {
6
- symbol?: string;
7
- relation_products?: any[];
8
- bundle?: any[];
9
- };
10
- isShowImage?: boolean;
11
- }
12
- declare const Sales: ({ hideDivider, dataSource, isShowImage }: IProps) => JSX.Element | null;
13
- export default Sales;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Specs: (props: any) => JSX.Element | null;
4
- export default Specs;
@@ -1,46 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- declare type NativeProps<S extends string = never> = {
4
- className?: string;
5
- style?: React.CSSProperties & Partial<Record<S, string>>;
6
- };
7
- declare type PropagationEvent = 'click';
8
- import './index.less';
9
- declare type SideType = 'left' | 'right';
10
- export declare type SwipeActionRef = {
11
- close: () => void;
12
- show: (side?: SideType) => void;
13
- };
14
- declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
- export declare type Action = {
16
- key: string | number;
17
- text: ReactNode;
18
- color?: ActionColor | string;
19
- onClick?: (e: React.MouseEvent) => void;
20
- style?: React.CSSProperties;
21
- };
22
- export declare type SwipeActionProps = {
23
- rightActions?: Action[];
24
- leftActions?: Action[];
25
- onAction?: (action: Action, e: React.MouseEvent) => void;
26
- closeOnTouchOutside?: boolean;
27
- closeOnAction?: boolean;
28
- children: ReactNode;
29
- stopPropagation?: PropagationEvent[];
30
- onActionsReveal?: (side: SideType) => void;
31
- onClose?: () => void;
32
- escapeDom?: string;
33
- } & NativeProps<'--background'>;
34
- export declare const SwipeAction: React.ForwardRefExoticComponent<{
35
- rightActions?: Action[] | undefined;
36
- leftActions?: Action[] | undefined;
37
- onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
38
- closeOnTouchOutside?: boolean | undefined;
39
- closeOnAction?: boolean | undefined;
40
- children: ReactNode;
41
- stopPropagation?: "click"[] | undefined;
42
- onActionsReveal?: ((side: SideType) => void) | undefined;
43
- onClose?: (() => void) | undefined;
44
- escapeDom?: string | undefined;
45
- } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
46
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import 'dayjs/locale/zh-cn';
3
- import 'dayjs/locale/en';
4
- import 'dayjs/locale/zh-tw';
5
- import './index.less';
6
- declare const TimeRange: (props: any) => JSX.Element | null;
7
- export default TimeRange;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Action: ({ item, onAction }: any) => JSX.Element;
4
- export default Action;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Header: (props: any) => JSX.Element;
4
- export default Header;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
4
- export default Sales;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface SelectHolderModalProps {
4
- visible: boolean;
5
- onClose: () => void;
6
- onConfirm: (value: any) => void;
7
- lists: any[];
8
- value: any[];
9
- holderMaxCount: number;
10
- addHolderButtonText: string;
11
- onAdd: () => void;
12
- }
13
- declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
14
- export default SelectHolderModal;
@@ -1,84 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.product.card.day': (val: number) => string;
4
- 'pisell2.product.card.day.event': (val: number) => string;
5
- 'pisell2.product.card.minute': (val: number) => string;
6
- 'pisell2.product.card.discount.reason': string;
7
- 'pisell2.product.card.discount.note': string;
8
- 'pisell2.product.card.edit': string;
9
- 'pisell2.product.card.discount.add.note': string;
10
- 'pisell2.product.card.discount.edit.note': string;
11
- 'pisell2.product.card.confirm': string;
12
- 'pisell2.product.card.cancel': string;
13
- 'pisell2.product.card.note.pla': string;
14
- 'pisell2.product.card.items.package': string;
15
- 'pisell2.product.card.view-all': string;
16
- 'pisell2.product.card.view-less': string;
17
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
18
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
19
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
20
- 'pisell2.product.card.add.holder.modal.title.1': string;
21
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
22
- 'pisell2.product.card.sales': string;
23
- 'pisell2.product.card.add.holder.modal.cancel': string;
24
- 'pisell2.product.card.add.holder.modal.clear': string;
25
- 'pisell2.product.card.add.holder.modal.apply': string;
26
- 'pisell2.product.card.add.holder.modal.add': string;
27
- 'pisell2.product.card.closing-soon.warning': string;
28
- };
29
- 'zh-CN': {
30
- 'pisell2.product.card.edit': string;
31
- 'pisell2.product.card.day': (val: number) => string;
32
- 'pisell2.product.card.day.event': (val: number) => string;
33
- 'pisell2.product.card.minute': (val: number) => string;
34
- 'pisell2.product.card.discount.reason': string;
35
- 'pisell2.product.card.discount.note': string;
36
- 'pisell2.product.card.discount.add.note': string;
37
- 'pisell2.product.card.discount.edit.note': string;
38
- 'pisell2.product.card.confirm': string;
39
- 'pisell2.product.card.cancel': string;
40
- 'pisell2.product.card.note.pla': string;
41
- 'pisell2.product.card.items.package': string;
42
- 'pisell2.product.card.view-all': string;
43
- 'pisell2.product.card.view-less': string;
44
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
45
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
46
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
47
- 'pisell2.product.card.add.holder.modal.title.1': string;
48
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
49
- 'pisell2.product.card.sales': string;
50
- 'pisell2.product.card.add.holder.modal.cancel': string;
51
- 'pisell2.product.card.add.holder.modal.clear': string;
52
- 'pisell2.product.card.add.holder.modal.apply': string;
53
- 'pisell2.product.card.add.holder.modal.add': string;
54
- 'pisell2.product.card.closing-soon.warning': string;
55
- };
56
- 'zh-HK': {
57
- 'pisell2.product.card.edit': string;
58
- 'pisell2.product.card.day': (val: number) => string;
59
- 'pisell2.product.card.day.event': (val: number) => string;
60
- 'pisell2.product.card.minute': (val: number) => string;
61
- 'pisell2.product.card.discount.reason': string;
62
- 'pisell2.product.card.discount.note': string;
63
- 'pisell2.product.card.discount.add.note': string;
64
- 'pisell2.product.card.discount.edit.note': string;
65
- 'pisell2.product.card.confirm': string;
66
- 'pisell2.product.card.cancel': string;
67
- 'pisell2.product.card.note.pla': string;
68
- 'pisell2.product.card.items.package': string;
69
- 'pisell2.product.card.view-all': string;
70
- 'pisell2.product.card.view-less': string;
71
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
72
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
73
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
74
- 'pisell2.product.card.add.holder.modal.title.1': string;
75
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
76
- 'pisell2.product.card.sales': string;
77
- 'pisell2.product.card.add.holder.modal.cancel': string;
78
- 'pisell2.product.card.add.holder.modal.clear': string;
79
- 'pisell2.product.card.add.holder.modal.apply': string;
80
- 'pisell2.product.card.add.holder.modal.add': string;
81
- 'pisell2.product.card.closing-soon.warning': string;
82
- };
83
- };
84
- export default _default;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import "./index.less";
3
- declare const AddFieldModal: React.FC;
4
- export default AddFieldModal;
@@ -1,32 +0,0 @@
1
- export declare const amountThemeConfig: {
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
- };
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './Presets.less';
3
- export declare type PresetsItem = {
4
- label: string;
5
- value: number | string;
6
- style?: React.CSSProperties;
7
- onClick?: (item: PresetsItem, _next: () => void) => void;
8
- render?: (item: PresetsItem) => React.ReactNode;
9
- };
10
- export interface PresetsProps {
11
- presets?: PresetsItem[];
12
- onChange: (val: string) => void;
13
- }
14
- declare const Presets: (props: PresetsProps) => JSX.Element | null;
15
- export default Presets;
@@ -1,21 +0,0 @@
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;
@@ -1,32 +0,0 @@
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
- };
@@ -1,26 +0,0 @@
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
- defaultSelect?: boolean;
12
- selectType?: 'light' | 'dark';
13
- backgroundColor?: string;
14
- containerBackgroundColor?: string;
15
- buttonBackgroundColor?: string;
16
- textColor?: string;
17
- resetButtonBackgroundColor?: string;
18
- resetButtonTextColor?: string;
19
- isDoneButtonFollowTheme?: boolean;
20
- doneButtonBackgroundColor?: string;
21
- doneButtonTextColor?: string;
22
- keyboardBackgroundColor?: string;
23
- keyboardButtonBackgroundColor?: string;
24
- keyboardButtonTextColor?: string;
25
- keyboardButtonHoverColor?: string;
26
- }
@@ -1,13 +0,0 @@
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;
@@ -1,25 +0,0 @@
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;
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface BaseVirtualInputProps {
4
- /** 输入值 */
5
- value?: string | React.ReactNode;
6
- /** 占位符 */
7
- placeholder?: string;
8
- /** 是否自动聚焦 */
9
- autoFocus?: boolean;
10
- /** 是否禁用 */
11
- disabled?: boolean;
12
- /** 组件高度,默认60px */
13
- height?: number | string;
14
- /** 字体大小,默认48px,如果不设置会根据高度自动计算 */
15
- fontSize?: number | string;
16
- /** 聚焦回调 */
17
- onFocus?: () => void;
18
- /** 失焦回调 */
19
- onBlur?: () => void;
20
- /** 文字位置 */
21
- textAlign?: 'start' | 'center' | 'end';
22
- /** 自定义样式 */
23
- style?: React.CSSProperties;
24
- /** 自定义类名 */
25
- className?: string;
26
- /** showCursor */
27
- showCursor?: boolean;
28
- /** 防止失焦的元素选择器或ref */
29
- preventBlurElements?: Array<string | React.RefObject<HTMLElement>>;
30
- /** 是否聚焦(受控模式) */
31
- focused?: boolean;
32
- }
33
- export interface BaseVirtualInputRef {
34
- /** 手动聚焦 */
35
- focus: () => void;
36
- /** 手动失焦 */
37
- blur: () => void;
38
- }
39
- declare const BaseVirtualInput: React.ForwardRefExoticComponent<BaseVirtualInputProps & React.RefAttributes<BaseVirtualInputRef>>;
40
- export default BaseVirtualInput;