@pisell/materials 6.4.8 → 6.4.9

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 (184) 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 +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -23
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -24
  11. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  12. package/es/components/auto-resize-text/auto-text-size-standalone.js +258 -0
  13. package/es/components/auto-resize-text/index.d.ts +6 -0
  14. package/es/components/auto-resize-text/index.js +40 -0
  15. package/es/components/batch-editor/index.d.ts +0 -1
  16. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +1 -1
  21. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  22. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  23. package/es/components/dataSourceComponents/fields/index.d.ts +11 -12
  24. package/es/components/date-picker/index.d.ts +0 -1
  25. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  26. package/es/components/filter/types.d.ts +1 -0
  27. package/es/components/iconfont/index.d.ts +8 -0
  28. package/es/components/keyboard/index.d.ts +22 -0
  29. package/es/components/keyboard/index.js +159 -0
  30. package/es/components/keyboard/index.less +44 -0
  31. package/es/components/page/index.d.ts +0 -1
  32. package/es/components/pisell-config-provider/context.d.ts +22 -0
  33. package/es/components/pisell-config-provider/index.d.ts +13 -0
  34. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  35. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  36. package/es/components/pisellQRScanner/index.d.ts +0 -13
  37. package/es/components/pisellQRScanner/index.js +0 -8
  38. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  39. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  40. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  41. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  42. package/es/components/pisellWalletPassCard/index.d.ts +1 -1
  43. package/es/components/pisellWalletPassCard/index.js +2 -1
  44. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  45. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  46. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  47. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  48. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  49. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  50. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  51. package/es/components/productCard/components/Action/index.d.ts +3 -0
  52. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  53. package/es/components/productCard/locales.d.ts +84 -0
  54. package/es/components/productCard/status.d.ts +32 -0
  55. package/es/components/productCard/types.d.ts +84 -0
  56. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  57. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  58. package/es/components/table/Table/fields/index.d.ts +0 -1
  59. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  60. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  61. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  62. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  63. package/es/components/table/Table/utils.d.ts +1 -1
  64. package/es/components/table/hooks/useTableSetting.js +1 -1
  65. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  66. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  67. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
  68. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +21 -7
  69. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
  70. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
  71. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +44 -25
  72. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  73. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  74. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  75. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  76. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  77. package/es/components/virtualInput/BaseVirtualInput/index.js +163 -0
  78. package/es/components/virtualInput/BaseVirtualInput/index.less +78 -0
  79. package/es/components/virtualInput/index.d.ts +24 -0
  80. package/es/components/virtualInput/index.js +60 -0
  81. package/es/components/virtualInput/index.less +42 -0
  82. package/es/components/walletCard/Guide/index.d.ts +3 -0
  83. package/es/components/walletCard/index.d.ts +67 -0
  84. package/es/index.d.ts +2 -0
  85. package/es/index.js +3 -1
  86. package/es/locales/en-US.d.ts +286 -0
  87. package/es/locales/en-US.js +1 -0
  88. package/es/locales/zh-CN.d.ts +281 -0
  89. package/es/locales/zh-CN.js +1 -0
  90. package/es/locales/zh-TW.d.ts +281 -0
  91. package/es/locales/zh-TW.js +1 -0
  92. package/es/utils/index.d.ts +1 -1
  93. package/es/utils/platform.d.ts +1 -1
  94. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  95. package/lib/components/auto-resize-text/auto-text-size-standalone.js +273 -0
  96. package/lib/components/auto-resize-text/index.d.ts +6 -0
  97. package/lib/components/auto-resize-text/index.js +71 -0
  98. package/lib/components/batch-editor/index.d.ts +0 -1
  99. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  100. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  101. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  102. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  103. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +1 -1
  104. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  105. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  106. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -12
  107. package/lib/components/date-picker/index.d.ts +0 -1
  108. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  109. package/lib/components/filter/types.d.ts +1 -0
  110. package/lib/components/iconfont/index.d.ts +8 -0
  111. package/lib/components/keyboard/index.d.ts +22 -0
  112. package/lib/components/keyboard/index.js +223 -0
  113. package/lib/components/keyboard/index.less +44 -0
  114. package/lib/components/page/index.d.ts +0 -1
  115. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  116. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  117. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  118. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  119. package/lib/components/pisellQRScanner/index.d.ts +0 -13
  120. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  121. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  122. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  123. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  124. package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
  125. package/lib/components/pisellWalletPassCard/index.js +2 -1
  126. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  127. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  128. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  129. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  130. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  131. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  132. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  133. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  134. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  135. package/lib/components/productCard/locales.d.ts +84 -0
  136. package/lib/components/productCard/status.d.ts +32 -0
  137. package/lib/components/productCard/types.d.ts +84 -0
  138. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  139. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  140. package/lib/components/table/Table/fields/index.d.ts +0 -1
  141. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  142. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  143. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  144. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  145. package/lib/components/table/Table/utils.d.ts +1 -1
  146. package/lib/components/table/hooks/useTableSetting.js +1 -1
  147. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  148. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  149. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +5 -1
  150. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +19 -2
  151. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +9 -5
  152. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +4 -0
  153. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +45 -27
  154. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  155. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  156. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  157. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  158. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  159. package/lib/components/virtualInput/BaseVirtualInput/index.js +179 -0
  160. package/lib/components/virtualInput/BaseVirtualInput/index.less +78 -0
  161. package/lib/components/virtualInput/index.d.ts +24 -0
  162. package/lib/components/virtualInput/index.js +102 -0
  163. package/lib/components/virtualInput/index.less +42 -0
  164. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  165. package/lib/components/walletCard/index.d.ts +67 -0
  166. package/lib/index.d.ts +2 -0
  167. package/lib/index.js +6 -0
  168. package/lib/locales/en-US.d.ts +286 -0
  169. package/lib/locales/en-US.js +1 -0
  170. package/lib/locales/zh-CN.d.ts +281 -0
  171. package/lib/locales/zh-CN.js +1 -0
  172. package/lib/locales/zh-TW.d.ts +281 -0
  173. package/lib/locales/zh-TW.js +1 -0
  174. package/lib/utils/index.d.ts +1 -1
  175. package/lib/utils/platform.d.ts +1 -1
  176. package/package.json +3 -3
  177. package/dist/umd/materials.min.css +0 -1
  178. package/dist/umd/materials.min.js +0 -1
  179. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  180. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  181. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  182. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  183. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  184. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: any;
3
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
2
+ dataSourceKey: string | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
4
4
  };
5
5
  export default useDataSourceKey;
@@ -8,7 +8,7 @@ declare const useDrawerState: (operationContent?: {
8
8
  openDrawer: (item: OperationItem) => void;
9
9
  closeDrawer: () => void;
10
10
  drawerContent: import("react").ReactNode;
11
- Container: typeof Drawer | {
11
+ Container: {
12
12
  (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
13
13
  confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
14
14
  destroy: () => void;
@@ -32,7 +32,7 @@ declare const useDrawerState: (operationContent?: {
32
32
  update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
33
  };
34
34
  Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
35
- };
35
+ } | typeof Drawer;
36
36
  containerProps: {};
37
37
  };
38
38
  export default useDrawerState;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
22
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
31
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: any;
34
34
  onRow: (record: any) => any;
@@ -69,7 +69,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
69
69
  useCustomAction: boolean;
70
70
  actionType: string;
71
71
  openMode: "modal" | "drawer";
72
- openContentSize: "large" | "middle" | "small";
72
+ openContentSize: "small" | "middle" | "large";
73
73
  openTitle: string;
74
74
  key: string;
75
75
  } | undefined;
@@ -274,7 +274,7 @@ var useTableProps = (props) => {
274
274
  getInitialValues
275
275
  }
276
276
  );
277
- dom.__proto__.items = propsFilter == null ? void 0 : propsFilter.items;
277
+ dom.__proto__.__items = propsFilter == null ? void 0 : propsFilter.items;
278
278
  return dom;
279
279
  }, [propsFilter, search]);
280
280
  const onRow = (0, import_ahooks.useMemoizedFn)((record) => {
@@ -0,0 +1,37 @@
1
+ import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
2
+ import type { UploadValue, UploadChangeHandler } from './types';
3
+ export interface UploadFile extends AntdUploadFile {
4
+ metadata?: {
5
+ width?: number;
6
+ height?: number;
7
+ duration?: number;
8
+ bitrate?: number;
9
+ };
10
+ }
11
+ export interface UploadProps {
12
+ renderMode?: string;
13
+ fieldKey: string;
14
+ maxSize?: number;
15
+ minCount?: number;
16
+ maxCount?: number;
17
+ multiple?: boolean;
18
+ presetType?: string[];
19
+ presetTypeString?: string[];
20
+ customType?: string[];
21
+ enablePresetType?: boolean;
22
+ enableCustomType?: boolean;
23
+ allowPreview?: boolean;
24
+ value?: UploadValue;
25
+ typeMaxSizeMap?: Record<string, number>;
26
+ enableMultilingual?: boolean;
27
+ onChange?: UploadChangeHandler;
28
+ disabled?: boolean;
29
+ mediaUploadUrl?: string;
30
+ getHeaders?: () => Record<string, string>;
31
+ mediaConfig?: {
32
+ data: {
33
+ upload_onetime_limit: number;
34
+ upload_maxsize: number;
35
+ };
36
+ };
37
+ }
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -20,7 +19,7 @@ declare const formFieldMap: {
20
19
  Subdomain: import("react").FC<import("antd").InputProps & {
21
20
  onChange: (value: string) => void;
22
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
24
23
  customDomain?: string | undefined;
25
24
  value?: string | undefined;
26
25
  tenantId: string;
@@ -60,7 +59,13 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
+ } & {
65
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
64
69
  JSON: import("react").FC<any>;
65
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
66
71
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -73,18 +78,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
73
78
  Subdomain: import("react").FC<import("antd").InputProps & {
74
79
  onChange: (value: string) => void;
75
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
76
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
77
82
  customDomain?: string | undefined;
78
83
  value?: string | undefined;
79
84
  tenantId: string;
80
85
  name?: string | undefined;
81
86
  fieldKey?: string | undefined;
82
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
83
- }) | (import("react").FC<{}> & {
84
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
85
- } & {
86
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
87
- }) | 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<{}> & {
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
88
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
90
  } & {
90
91
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -96,7 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
96
97
  extraParams?: Record<string, any> | undefined;
97
98
  } & {
98
99
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
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("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
100
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
101
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => JSX.Element;
3
2
  export default DatePicker;
@@ -0,0 +1,18 @@
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;
@@ -10,6 +10,7 @@ export declare type FilterType = {
10
10
  /** 筛选列表 */
11
11
  list: FilterItemProps[];
12
12
  items?: string[];
13
+ __items: string[];
13
14
  /** 快速筛选最大长度 */
14
15
  quickFilterMaxLength: number;
15
16
  /** 配置存储模式 */
@@ -0,0 +1,8 @@
1
+ import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
+ import React from 'react';
3
+ interface IconFontProps extends IconComponentProps {
4
+ type: string;
5
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
+ }
7
+ declare const IconFont: React.FC<IconFontProps>;
8
+ export default IconFont;
@@ -0,0 +1,22 @@
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
+ id?: string;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ onChange?: (value?: ItemValue) => void;
17
+ items?: Item[];
18
+ rightItems?: Item[];
19
+ keydown?: boolean;
20
+ }
21
+ declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
22
+ export default _default;
@@ -0,0 +1,223 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/keyboard/index.tsx
30
+ var keyboard_exports = {};
31
+ __export(keyboard_exports, {
32
+ default: () => keyboard_default
33
+ });
34
+ module.exports = __toCommonJS(keyboard_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_index = require("./index.less");
38
+ var import_classnames = __toESM(require("classnames"));
39
+ var import_ahooks = require("ahooks");
40
+ var list = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "+", "ok"];
41
+ var defaultArr = [
42
+ {
43
+ value: 1,
44
+ label: "1",
45
+ disabled: false,
46
+ type: "text"
47
+ },
48
+ {
49
+ value: 2,
50
+ label: "2",
51
+ disabled: false,
52
+ type: "text"
53
+ },
54
+ {
55
+ value: 3,
56
+ label: "3",
57
+ disabled: false,
58
+ type: "text"
59
+ },
60
+ {
61
+ value: 4,
62
+ label: "4",
63
+ disabled: false,
64
+ type: "text"
65
+ },
66
+ {
67
+ value: 5,
68
+ label: "5",
69
+ disabled: false,
70
+ type: "text"
71
+ },
72
+ {
73
+ value: 6,
74
+ label: "6",
75
+ disabled: false,
76
+ type: "text"
77
+ },
78
+ {
79
+ value: 7,
80
+ label: "7",
81
+ disabled: false,
82
+ type: "text"
83
+ },
84
+ {
85
+ value: 8,
86
+ label: "8",
87
+ disabled: false,
88
+ type: "text"
89
+ },
90
+ {
91
+ value: 9,
92
+ label: "9",
93
+ disabled: false,
94
+ type: "text"
95
+ },
96
+ {
97
+ value: "0",
98
+ label: "0",
99
+ disabled: false,
100
+ type: "text"
101
+ },
102
+ {
103
+ value: "00",
104
+ label: "00",
105
+ disabled: false,
106
+ type: "text"
107
+ },
108
+ {
109
+ value: ".",
110
+ label: ".",
111
+ disabled: false,
112
+ type: "text"
113
+ }
114
+ ];
115
+ var Keyboard = (props) => {
116
+ const {
117
+ items = defaultArr,
118
+ className,
119
+ style,
120
+ onChange,
121
+ rightItems,
122
+ keydown = true
123
+ } = props;
124
+ const contentRef = (0, import_react.useRef)(null);
125
+ const size = (0, import_ahooks.useSize)(contentRef);
126
+ (0, import_ahooks.useEventListener)("keydown", (ev) => {
127
+ console.log("ev", ev);
128
+ if (!keydown) {
129
+ return;
130
+ }
131
+ let key = ev.key;
132
+ if (key === "Enter") {
133
+ key = "ok";
134
+ }
135
+ if (key === "keydown") {
136
+ key = "+";
137
+ }
138
+ if (list.includes(key)) {
139
+ onChange == null ? void 0 : onChange(key);
140
+ }
141
+ });
142
+ const getHeight = (0, import_ahooks.useMemoizedFn)((itemSize = 1) => {
143
+ return ((size == null ? void 0 : size.width) || 0) / 4 * itemSize + (itemSize - 1) * 7;
144
+ });
145
+ return /* @__PURE__ */ import_react.default.createElement(
146
+ "div",
147
+ {
148
+ id: props.id || "",
149
+ className: (0, import_classnames.default)("pisell-virtual-keyboard-wrap", className),
150
+ style
151
+ },
152
+ /* @__PURE__ */ import_react.default.createElement(
153
+ "div",
154
+ {
155
+ className: (0, import_classnames.default)("pisell-virtual-keyboard-content"),
156
+ ref: contentRef
157
+ },
158
+ items.map((item) => {
159
+ var _a;
160
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-keyboard-item", style: item.style }, /* @__PURE__ */ import_react.default.createElement(
161
+ import_antd.Button,
162
+ {
163
+ id: `pisell-virtual-keyboard-${item.value}`,
164
+ key: item.value,
165
+ type: item.type,
166
+ className: "pisell-virtual-keyboard-item-button",
167
+ style: {
168
+ color: item.type === "primary" ? "#fff" : ((_a = item.style) == null ? void 0 : _a.color) || void 0
169
+ },
170
+ disabled: item.disabled,
171
+ onClick: (e) => {
172
+ onChange == null ? void 0 : onChange(item.value);
173
+ }
174
+ },
175
+ item.label
176
+ ));
177
+ })
178
+ ),
179
+ rightItems && /* @__PURE__ */ import_react.default.createElement(
180
+ "div",
181
+ {
182
+ className: (0, import_classnames.default)(
183
+ "pisell-virtual-keyboard-content",
184
+ "pisell-virtual-keyboard-right"
185
+ ),
186
+ style: { flex: `0 0 calc((100% - 21px) / 4 * 1)` }
187
+ },
188
+ rightItems == null ? void 0 : rightItems.map((item) => {
189
+ var _a, _b;
190
+ return /* @__PURE__ */ import_react.default.createElement(
191
+ "div",
192
+ {
193
+ className: "pisell-virtual-keyboard-item",
194
+ style: {
195
+ ...item.style || {},
196
+ height: getHeight(item.size)
197
+ }
198
+ },
199
+ /* @__PURE__ */ import_react.default.createElement(
200
+ import_antd.Button,
201
+ {
202
+ id: `pisell-virtual-keyboard-${item.value}`,
203
+ key: item.value,
204
+ type: item.type,
205
+ className: "pisell-virtual-keyboard-item-button",
206
+ style: {
207
+ fontSize: ((_a = item.style) == null ? void 0 : _a.fontSize) || 25,
208
+ color: item.type === "primary" ? "#fff" : ((_b = item.style) == null ? void 0 : _b.color) || void 0,
209
+ ...item.type === "primary" ? item.style || {} : {}
210
+ },
211
+ disabled: item.disabled,
212
+ onClick: (e) => {
213
+ onChange == null ? void 0 : onChange(item.value);
214
+ }
215
+ },
216
+ item.label
217
+ )
218
+ );
219
+ })
220
+ )
221
+ );
222
+ };
223
+ var keyboard_default = import_react.default.memo(Keyboard);
@@ -0,0 +1,44 @@
1
+ .pisell-virtual-keyboard-wrap {
2
+ display: flex;
3
+ gap: 7px;
4
+ .pisell-virtual-keyboard-content {
5
+ width: 100%;
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ justify-content: flex-end;
10
+ gap: 7px;
11
+
12
+ .pisell-virtual-keyboard-item {
13
+ border-radius: 5px;
14
+ background: var(--Base-White, #fff);
15
+ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.06);;
16
+ overflow: hidden;
17
+ width: calc((100% - 14px) / 3 * 1);
18
+ padding-top: 25%;
19
+ position: relative;
20
+
21
+ .pisell-virtual-keyboard-item-button {
22
+ position: absolute;
23
+ left: 0;
24
+ top: 0;
25
+ width: 100%;
26
+ height: 100%;
27
+ border-radius: 5px;
28
+ color: var(--Base-Black, #000);
29
+ font-size: 25px;
30
+ font-style: normal;
31
+ font-weight: 400;
32
+ box-shadow: none;
33
+ padding: 0 !important;
34
+ }
35
+ }
36
+ }
37
+ .pisell-virtual-keyboard-right {
38
+ flex-direction: column;
39
+ justify-content: start;
40
+ .pisell-virtual-keyboard-item{
41
+ width: 100%;
42
+ }
43
+ }
44
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export interface PisellContextType {
3
+ platform: 'h5' | 'pc' | 'ipad';
4
+ /** 货币符号 */
5
+ symbol?: string;
6
+ /** 当前语言环境 */
7
+ locale?: string;
8
+ /** 获取货币符号 */
9
+ getSymbolic?: () => string;
10
+ }
11
+ export declare const PisellContext: import("react").Context<PisellContextType>;
12
+ /**
13
+ * provider外获取当前全局配置
14
+ */
15
+ declare class GlobalConfig {
16
+ private config;
17
+ constructor();
18
+ setConfig(config: PisellContextType): void;
19
+ getConfig(): PisellContextType;
20
+ }
21
+ export declare const globalConfig: GlobalConfig;
22
+ export default PisellContext;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from './context';
3
+ interface PisellConfigProviderType {
4
+ platform?: PisellContextType['platform'];
5
+ children: React.ReactNode;
6
+ /** 货币符号 */
7
+ symbol?: string;
8
+ /** 当前语言环境 */
9
+ locale?: string;
10
+ getSymbolic?: () => string;
11
+ }
12
+ declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
13
+ export default PisellConfigProvider;
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
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
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: 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
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -0,0 +1,22 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ resetText?: string;
21
+ doneText?: string;
22
+ }
@@ -1,18 +1,5 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
- import type { DetailedHTMLProps, HTMLAttributes, VideoHTMLAttributes, InputHTMLAttributes } from 'react';
4
- declare type ExtendedDetailedHTMLProps<T extends HTMLAttributes<E>, E extends HTMLElement> = DetailedHTMLProps<T, E> & {
5
- children?: React.ReactNode;
6
- };
7
- declare global {
8
- namespace JSX {
9
- interface IntrinsicElements {
10
- div: ExtendedDetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
11
- video: DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
12
- input: DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
13
- }
14
- }
15
- }
16
3
  export interface PisellQRScannerProps {
17
4
  /** 是否可见 */
18
5
  visible: boolean;
@@ -0,0 +1,15 @@
1
+ import { clear, show, success, info, loading, fail, hide } from './methods';
2
+ import './index.less';
3
+ interface ToastInstance {
4
+ show: typeof show;
5
+ clear: typeof clear;
6
+ success: typeof success;
7
+ info: typeof info;
8
+ loading: typeof loading;
9
+ fail: typeof fail;
10
+ error: typeof fail;
11
+ hide: typeof hide;
12
+ }
13
+ declare const Toast: ToastInstance;
14
+ export declare const useToast: () => ToastInstance;
15
+ export default Toast;