@pisell/materials 3.3.53 → 3.3.54

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 (110) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  8. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  9. package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  10. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  12. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  13. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  14. package/es/components/dataSourceComponents/fields/index.d.ts +6 -7
  15. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  16. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  17. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  18. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  19. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  20. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  21. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  22. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  23. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  24. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -7
  25. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  26. package/package.json +3 -3
  27. package/es/components/buttonGroupEdit/index.d.ts +0 -8
  28. package/es/components/cardMetricItem/index.d.ts +0 -12
  29. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  30. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  31. package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +0 -56
  32. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
  33. package/es/components/date-picker/datePickerCpt.d.ts +0 -8
  34. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  35. package/es/components/pisellAdjustPrice/index.d.ts +0 -9
  36. package/es/components/pisellCardList/index.d.ts +0 -73
  37. package/es/components/pisellCheckboxGroup/index.d.ts +0 -36
  38. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  39. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  40. package/es/components/pisellToast/index.d.ts +0 -16
  41. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
  42. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -3
  43. package/es/components/productCard/components/Header/index.d.ts +0 -3
  44. package/es/components/productCard/components/MultiDay/index.d.ts +0 -3
  45. package/es/components/productCard/components/Note/index.d.ts +0 -3
  46. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
  47. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  48. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -3
  49. package/es/components/productCard/components/Packages/index.d.ts +0 -3
  50. package/es/components/productCard/components/Packages/utils.d.ts +0 -20
  51. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  52. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  53. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  54. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
  55. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  56. package/es/components/productCard/components/Warning/index.d.ts +0 -7
  57. package/es/components/productCard/index.d.ts +0 -5
  58. package/es/components/productCard/utils.d.ts +0 -31
  59. package/es/components/record-view/index.d.ts +0 -37
  60. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -3
  61. package/es/components/translation/index.d.ts +0 -14
  62. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
  63. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -19
  64. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  65. package/es/components/virtual-keyboard/Number/index.d.ts +0 -13
  66. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  67. package/es/components/virtual-keyboard/index.d.ts +0 -14
  68. package/es/utils/index.d.ts +0 -4
  69. package/lib/components/buttonGroupEdit/index.d.ts +0 -8
  70. package/lib/components/cardMetricItem/index.d.ts +0 -12
  71. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  72. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +0 -5
  73. package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +0 -56
  74. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
  75. package/lib/components/date-picker/datePickerCpt.d.ts +0 -8
  76. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  77. package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
  78. package/lib/components/pisellCardList/index.d.ts +0 -73
  79. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -36
  80. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  81. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  82. package/lib/components/pisellToast/index.d.ts +0 -16
  83. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
  84. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -3
  85. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  86. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -3
  87. package/lib/components/productCard/components/Note/index.d.ts +0 -3
  88. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +0 -10
  89. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  90. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -3
  91. package/lib/components/productCard/components/Packages/index.d.ts +0 -3
  92. package/lib/components/productCard/components/Packages/utils.d.ts +0 -20
  93. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  94. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  95. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  96. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -2
  97. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  98. package/lib/components/productCard/components/Warning/index.d.ts +0 -7
  99. package/lib/components/productCard/index.d.ts +0 -5
  100. package/lib/components/productCard/utils.d.ts +0 -31
  101. package/lib/components/record-view/index.d.ts +0 -37
  102. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -3
  103. package/lib/components/translation/index.d.ts +0 -14
  104. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
  105. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -19
  106. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  107. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -13
  108. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  109. package/lib/components/virtual-keyboard/index.d.ts +0 -14
  110. package/lib/utils/index.d.ts +0 -4
@@ -1,18 +0,0 @@
1
- import './index.less';
2
- import { ValueProps, SortType } from '../types';
3
- declare type IdType = string | number;
4
- declare type TreeItemProps = {
5
- id: string | number;
6
- key: string | number;
7
- item: ValueProps | any;
8
- depth: number;
9
- lists: any[];
10
- childrenProps?: SortType;
11
- sensors?: any;
12
- expandedKeys?: IdType[];
13
- setExpandedKeys?: any;
14
- onSelectKeys?: (ids: IdType) => void;
15
- onChange?: (value: any[]) => void;
16
- };
17
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
18
- export default TreeItem;
@@ -1,9 +0,0 @@
1
- import './index.less';
2
- export interface PisellAdjustPriceProps {
3
- value?: number;
4
- originValue: number;
5
- defaultValue?: number;
6
- onChange?: (val: number) => void;
7
- }
8
- declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
- export default PisellAdjustPrice;
@@ -1,73 +0,0 @@
1
- import React from 'react';
2
- import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
- import { PisellContextType } from '../pisell-config-provider/context';
4
- import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
5
- import './index.less';
6
- export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
7
- platform?: PisellContextType['platform'];
8
- /** 当用户查看完所有记录时,底部会显示此消息 */
9
- endMessage?: React.ReactNode;
10
- /** 加载下次数据时的加载站位 */
11
- loader?: React.ReactNode;
12
- /** 是否有更多数据 */
13
- hasMore: boolean;
14
- /** 加载更多数据回调 */
15
- loadMoreData?: () => Promise<void>;
16
- /** 当前list数据 */
17
- data: PisellWalletPassCardProps[];
18
- /** list空数据时展示内容 */
19
- empty?: React.ReactNode;
20
- /** 是否展示空状态 */
21
- showEmpty?: boolean;
22
- /** 是否展示卡片名称 */
23
- showName?: boolean;
24
- /** 是否展示店铺名称 */
25
- showStoreName?: boolean;
26
- /** 是否展示核销金额 */
27
- showRedeem?: boolean;
28
- /** 是否展示余额 */
29
- showBalance?: boolean;
30
- /** 是否展示编码 */
31
- showCode?: boolean;
32
- /** 是否展示到期时间 */
33
- showValidDate?: boolean;
34
- /** 是否展示详情按钮 */
35
- showDetail?: boolean;
36
- /** 是否展示二维码 */
37
- showQrCode?: boolean;
38
- /** 是否展示封面图 */
39
- showCover?: boolean;
40
- /** 是否余额货币单位 */
41
- showBalanceSymbol?: boolean;
42
- /** 卡片大小 */
43
- type?: 'default' | 'mini';
44
- /** 展示操作按钮 */
45
- showActions?: boolean;
46
- /** 操作按钮配置 */
47
- actions?: {
48
- /** 按钮展示方式 */
49
- layout: 'expanded' | 'collapsed';
50
- /** detail 按钮配置 */
51
- detail?: {
52
- visible: boolean;
53
- iconColor: string;
54
- };
55
- /** edit按钮配置 */
56
- edit?: {
57
- visible: boolean;
58
- iconColor: string;
59
- dialogTitle: string;
60
- enableDialog: boolean;
61
- fields: {
62
- name: string;
63
- label: string;
64
- };
65
- };
66
- };
67
- /** 编辑编辑按钮后,弹窗展示之前 */
68
- beforeEdit?: (value: any, index: number) => Promise<any> | boolean | void;
69
- /** 编辑弹窗点击提交 */
70
- onConfirmEdit?: (value: any, index: number) => void;
71
- }
72
- declare const _default: React.NamedExoticComponent<PisellCardListProps>;
73
- export default _default;
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../pisell-config-provider/context';
3
- import './index.less';
4
- export interface PisellCheckboxGroupOption {
5
- label: string;
6
- value: string;
7
- disabled?: boolean;
8
- [key: string]: any;
9
- }
10
- declare type PisellCheckboxGroupValue = string | string[] | any;
11
- export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
- platform?: PisellContextType['platform'];
13
- direction?: 'horizontal' | 'vertical';
14
- fullWidth?: boolean;
15
- gap?: number;
16
- padding?: number;
17
- options: PisellCheckboxGroupOption[];
18
- onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
- value?: PisellCheckboxGroupValue;
20
- renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
- rowKey?: string;
22
- mode?: 'multiple' | 'single';
23
- iconPosition?: 'left' | 'right' | 'hide';
24
- optionClassName?: string;
25
- optionActiveClassName?: string;
26
- }
27
- /**
28
- * @title: PisellCheckboxGroup
29
- * @description: 选中组件
30
- * @param {PisellCheckboxGroupProps} props
31
- * @return {*}
32
- * @Author: zhiwei.Wang
33
- * @Date: 2024-08-16 10:34
34
- */
35
- declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
36
- export default PisellCheckboxGroup;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { PisellNavigationMenuProps } from './types';
3
- import './PisellNavigationMenu.less';
4
- declare const PisellNavigationMenu: React.FC<PisellNavigationMenuProps>;
5
- export default PisellNavigationMenu;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../../../pisell-config-provider/context';
3
- export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
- /** 平台 */
5
- platform?: PisellContextType['platform'];
6
- /** 当前数值 */
7
- value?: number | string;
8
- /** 小数点后位数 默认是小数点后2位 */
9
- precision?: number;
10
- /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
- showCurrencySymbol?: boolean;
12
- /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
- useThousandsSeparator?: boolean;
14
- /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
- hideDecimalForWholeNumbers?: boolean;
16
- /** 货币符号 */
17
- symbol?: string;
18
- }
19
- declare const Amount: (props: AmountProps) => JSX.Element;
20
- export default Amount;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellToastProps {
4
- /** 提示内容 */
5
- content: React.ReactNode;
6
- /** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
7
- duration?: number;
8
- /** 是否展示action */
9
- showAction?: boolean;
10
- /** action文案 */
11
- actionText?: string;
12
- /** 关闭时触发的回调函数 */
13
- onClose?: () => void;
14
- }
15
- declare const PisellToast: (props: PisellToastProps) => void;
16
- export default PisellToast;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
- export default Footer;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const EditButton: ({ onEdit }: any) => JSX.Element;
3
- export default EditButton;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Header: (props: any) => JSX.Element;
3
- export default Header;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
- export default MultiDay;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Note: (props: any) => JSX.Element | null;
3
- export default Note;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface CollapsibleListProps<T> {
4
- list: T[];
5
- renderItem: (item: T, index: number) => React.ReactNode;
6
- className?: string;
7
- style?: React.CSSProperties;
8
- }
9
- declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
10
- export default CollapsibleList;
@@ -1 +0,0 @@
1
- export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
- export default Options;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
- 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,3 +0,0 @@
1
- import './index.less';
2
- declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
- export default Sales;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
3
- export default SelectHolder;
@@ -1,13 +0,0 @@
1
- import './index.less';
2
- interface SelectHolderModalProps {
3
- visible: boolean;
4
- onClose: () => void;
5
- onConfirm: (value: any) => void;
6
- lists: any[];
7
- value: any[];
8
- holderMaxCount: number;
9
- addHolderButtonText: string;
10
- onAdd: () => void;
11
- }
12
- declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
13
- export default SelectHolderModal;
@@ -1,2 +0,0 @@
1
- declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
2
- export default SelectHolderMultiple;
@@ -1,18 +0,0 @@
1
- import './index.less';
2
- interface ResourceItem {
3
- id: string | number;
4
- label: string;
5
- isError?: boolean;
6
- [key: string]: any;
7
- }
8
- interface SelectResourceProps {
9
- lists: ResourceItem[];
10
- value: any;
11
- onChange: (val: any) => void;
12
- resourceMode?: 'multiple' | 'tags' | undefined;
13
- maxLength?: number;
14
- isParallelResource?: boolean;
15
- [key: string]: any;
16
- }
17
- declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
- export default SelectResource;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import '../../index.less';
3
- declare const Warning: React.FC<{
4
- errorMessage: string | Array<string>;
5
- osWarnTips: Array<string>;
6
- }>;
7
- export default Warning;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ProductCardTypes } from './types';
3
- import './index.less';
4
- declare const ProductCard: React.FC<ProductCardTypes>;
5
- export default ProductCard;
@@ -1,31 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import 'dayjs/locale/en';
3
- import 'dayjs/locale/zh-tw';
4
- /**
5
- * @title: 是否英文
6
- * @description:
7
- * @param {any} item
8
- * @return {*}
9
- * @Author: WangHan
10
- * @Date: 2024-12-28 22:49
11
- */
12
- export declare const isEn: (item: any) => boolean;
13
- /**
14
- * @title: 跨日预约时间
15
- * @description:
16
- * @param {any} item
17
- * @return {*}
18
- * @Author: WangHan
19
- * @Date: 2024-12-28 22:50
20
- */
21
- export declare const formatMultiDayDate: (item: any) => string;
22
- /**
23
- * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
24
- * @description:
25
- * @param {any} item
26
- * @param {any} currentDate
27
- * @return {*}
28
- * @Author: zhiwei.Wang
29
- * @Date: 2024-04-26 14:04
30
- */
31
- export declare const getServiceTime: (item: any, currentDate: any) => string;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface RecordViewProps {
4
- dataSource: any[];
5
- doubleList: boolean;
6
- header?: React.ReactNode;
7
- footer?: React.ReactNode;
8
- renderItem?: (item: any) => React.ReactNode;
9
- pcDetailModalDisplay?: boolean;
10
- padDetailModalDisplay?: boolean;
11
- mobilePadDetailModalDisplay?: boolean;
12
- detail: React.ReactNode;
13
- leftSpan?: number;
14
- rightSpan?: number;
15
- gutter: number | [number, number];
16
- pagination?: object;
17
- style?: React.CSSProperties;
18
- onRowClick: (item: any) => void;
19
- paginationType?: 'default' | 'scroll';
20
- listGap?: number;
21
- loadMoreData?: () => void;
22
- listHeight?: number;
23
- children: any;
24
- split?: boolean;
25
- doubleListSource?: any[];
26
- locale?: {
27
- emptyText: string;
28
- };
29
- emptyButtons: any[];
30
- isShowClode?: boolean;
31
- modalWrapStyle?: React.CSSProperties;
32
- }
33
- export interface AppearanceEditRef {
34
- closeDetailModal: () => void;
35
- }
36
- declare const _default: React.ForwardRefExoticComponent<RecordViewProps & React.RefAttributes<AppearanceEditRef>>;
37
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const AddFieldModal: React.FC;
3
- export default AddFieldModal;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare type Value = {
4
- en: string;
5
- 'zh-CN': string;
6
- 'zh-HK': string;
7
- };
8
- interface TranslationProps {
9
- value: Value;
10
- onChange: (value: Value) => void;
11
- maxLength?: number;
12
- }
13
- declare const Translation: React.FC<TranslationProps>;
14
- export default Translation;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
- export interface AmountProps {
4
- max?: number;
5
- min?: number;
6
- doneText?: string;
7
- resetText?: string;
8
- defaultValue?: string | number;
9
- placeholder?: string;
10
- amountProps?: {
11
- showCurrencySymbol: boolean;
12
- useThousandsSeparator: boolean;
13
- };
14
- presets?: BaseNumberKeyboardProps['presets'];
15
- value?: string | number;
16
- onChange?: (val: string | number) => void;
17
- onEnter?: (val: string | number) => void;
18
- defaultSelect?: boolean;
19
- inputFormat?: (_v: string) => React.ReactNode | null;
20
- }
21
- declare const Amount: (props: AmountProps) => JSX.Element;
22
- export default Amount;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { PresetsProps } from "./Presets";
3
- import './index.less';
4
- export interface BaseNumberKeyboardProps {
5
- placeholder?: string;
6
- format?: (val: string) => React.ReactNode;
7
- defaultValue?: string | number;
8
- doneText?: string;
9
- resetText?: string;
10
- onChange?: (val: string) => void;
11
- onEnter?: (val: string) => void;
12
- value?: string | number;
13
- max?: number;
14
- min?: number;
15
- presets?: PresetsProps['presets'];
16
- defaultSelect?: boolean;
17
- }
18
- declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
19
- export default BaseNumberKeyboard;
@@ -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,13 +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
- }
12
- declare const Number: (props: NumberProps) => JSX.Element;
13
- export default Number;
@@ -1,11 +0,0 @@
1
- import { InputProps } from 'antd';
2
- import './index.less';
3
- export interface VirtualKeyInputProps extends InputProps {
4
- previewValue?: string;
5
- renderInput?: (props: any) => any;
6
- showDelete?: boolean;
7
- onValueSelect?: (selected: boolean) => void;
8
- defaultSelect?: boolean;
9
- }
10
- declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
11
- export default VirtualKeyInput;
@@ -1,14 +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
- }
13
- declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
14
- export default VirtualKeyboard;
@@ -1,4 +0,0 @@
1
- export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string | number;
3
- export declare function uuid(): string;
4
- export * from './mergeWith';