@pisell/materials 6.2.26 → 6.2.28

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 (105) 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 +144 -160
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +25 -44
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +30 -49
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  13. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  14. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  16. package/es/components/iconfont/index.d.ts +8 -0
  17. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  18. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  19. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  20. package/es/components/pisellToast/index.d.ts +16 -0
  21. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  22. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +1 -1
  23. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  24. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  25. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  26. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  27. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  28. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  29. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  30. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +43 -0
  31. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +282 -0
  32. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  33. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  34. package/es/components/productCard/cartSkuCard/index.d.ts +9 -0
  35. package/es/components/productCard/cartSkuCard/index.js +28 -9
  36. package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
  37. package/es/components/productCard/components/Header/index.d.ts +3 -0
  38. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  39. package/es/components/productCard/index.d.ts +7 -0
  40. package/es/components/productCard/locales.d.ts +84 -0
  41. package/es/components/productCard/status.d.ts +32 -0
  42. package/es/components/productCard/types.d.ts +84 -0
  43. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  44. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  45. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  46. package/es/components/table/Table/utils.d.ts +1 -1
  47. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  48. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  49. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  50. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
  51. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  52. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  53. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  54. package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
  55. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  56. package/es/components/virtual-keyboard/index.d.ts +25 -0
  57. package/es/utils/index.d.ts +1 -1
  58. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  59. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  60. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  61. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  62. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  63. package/lib/components/iconfont/index.d.ts +8 -0
  64. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  65. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  66. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  67. package/lib/components/pisellToast/index.d.ts +16 -0
  68. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  69. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +1 -1
  70. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  71. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  72. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  73. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  74. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  75. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  76. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  77. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +43 -0
  78. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +330 -0
  79. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  80. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  81. package/lib/components/productCard/cartSkuCard/index.d.ts +9 -0
  82. package/lib/components/productCard/cartSkuCard/index.js +29 -13
  83. package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
  84. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  85. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  86. package/lib/components/productCard/index.d.ts +7 -0
  87. package/lib/components/productCard/locales.d.ts +84 -0
  88. package/lib/components/productCard/status.d.ts +32 -0
  89. package/lib/components/productCard/types.d.ts +84 -0
  90. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  91. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  92. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  93. package/lib/components/table/Table/utils.d.ts +1 -1
  94. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  95. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  96. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  97. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +21 -0
  98. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  99. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  100. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  101. package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
  102. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  103. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  104. package/lib/utils/index.d.ts +1 -1
  105. package/package.json +4 -2
@@ -0,0 +1,32 @@
1
+ export declare const numberThemeConfig: {
2
+ dark: {
3
+ backgroundColor: string;
4
+ containerBackgroundColor: string;
5
+ buttonBackgroundColor: string;
6
+ textColor: string;
7
+ resetButtonBackgroundColor: string;
8
+ resetButtonTextColor: string;
9
+ isDoneButtonFollowTheme: boolean;
10
+ doneButtonBackgroundColor: string;
11
+ doneButtonTextColor: string;
12
+ keyboardBackgroundColor: string;
13
+ keyboardButtonBackgroundColor: string;
14
+ keyboardButtonTextColor: string;
15
+ keyboardButtonHoverColor: string;
16
+ };
17
+ light: {
18
+ backgroundColor: string;
19
+ containerBackgroundColor: string;
20
+ buttonBackgroundColor: string;
21
+ textColor: string;
22
+ resetButtonBackgroundColor: string;
23
+ resetButtonTextColor: string;
24
+ isDoneButtonFollowTheme: boolean;
25
+ doneButtonBackgroundColor: string;
26
+ doneButtonTextColor: string;
27
+ keyboardBackgroundColor: string;
28
+ keyboardButtonBackgroundColor: string;
29
+ keyboardButtonTextColor: string;
30
+ keyboardButtonHoverColor: string;
31
+ };
32
+ };
@@ -0,0 +1,25 @@
1
+ export interface NumberProps {
2
+ max?: number;
3
+ min?: number;
4
+ doneText?: string;
5
+ resetText: string;
6
+ defaultValue?: string | number;
7
+ placeholder?: string;
8
+ value?: string | number;
9
+ onChange?: (val: string | number) => void;
10
+ onEnter?: (val: string | number) => void;
11
+ selectType?: 'light' | 'dark';
12
+ backgroundColor?: string;
13
+ containerBackgroundColor?: string;
14
+ buttonBackgroundColor?: string;
15
+ textColor?: string;
16
+ resetButtonBackgroundColor?: string;
17
+ resetButtonTextColor?: string;
18
+ isDoneButtonFollowTheme?: boolean;
19
+ doneButtonBackgroundColor?: string;
20
+ doneButtonTextColor?: string;
21
+ keyboardBackgroundColor?: string;
22
+ keyboardButtonBackgroundColor?: string;
23
+ keyboardButtonTextColor?: string;
24
+ keyboardButtonHoverColor?: string;
25
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import './index.less';
4
+ export interface VirtualKeyInputProps extends InputProps {
5
+ previewValue?: string;
6
+ renderInput?: (props: any) => any;
7
+ showDelete?: boolean;
8
+ onValueSelect?: (selected: boolean) => void;
9
+ defaultSelect?: boolean;
10
+ style?: React.CSSProperties;
11
+ }
12
+ declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
+ export default VirtualKeyInput;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { KeyboardProps } from "./Keyboard";
3
+ import { VirtualKeyInputProps } from "./VirtualKeyInput";
4
+ import "./index.less";
5
+ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ keyboardProps?: KeyboardProps;
7
+ virtualKeyInputProps?: VirtualKeyInputProps;
8
+ rightPanel?: React.ReactNode;
9
+ style?: React.CSSProperties;
10
+ onChange?: (value?: any) => void;
11
+ value?: string;
12
+ selectType?: 'light' | 'dark';
13
+ backgroundColor?: string;
14
+ containerBackgroundColor?: string;
15
+ buttonBackgroundColor?: string;
16
+ textColor?: string;
17
+ keyboardBackgroundColor?: string;
18
+ keyboardButtonBackgroundColor?: string;
19
+ keyboardButtonTextColor?: string;
20
+ keyboardButtonHoverColor?: string;
21
+ primaryButtonBackgroundColor?: string;
22
+ primaryButtonTextColor?: string;
23
+ }
24
+ declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
25
+ export default VirtualKeyboard;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string | number;
2
+ export declare const getCssNumber: (val: string | number) => string;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1,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;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "large" | "middle" | "small";
73
+ openContentSize: "small" | "middle" | "large";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -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;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -59,11 +59,13 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
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
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
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("./Input/type").InputProps> & {
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> & {
67
69
  JSON: import("react").FC<any>;
68
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
69
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>;
@@ -76,14 +78,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
76
78
  Subdomain: import("react").FC<import("antd").InputProps & {
77
79
  onChange: (value: string) => void;
78
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
80
82
  customDomain?: string | undefined;
81
83
  value?: string | undefined;
82
84
  tenantId: string;
83
85
  name?: string | undefined;
84
86
  fieldKey?: string | undefined;
85
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
86
- }) | (import("react").FC<{}> & {
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
90
  } & {
89
91
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -95,7 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
95
97
  extraParams?: Record<string, any> | undefined;
96
98
  } & {
97
99
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<any> | 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 & {
99
- onChange: (value: string) => void;
100
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
100
+ }) => 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>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -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,4 @@
1
+ import './index.less';
2
+ import { PisellAdjustPriceProps } from './type';
3
+ declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
4
+ export default PisellAdjustPrice;
@@ -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,20 @@
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
+ }
@@ -0,0 +1,16 @@
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;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface IProps {
4
+ isShowImage?: boolean;
5
+ dataSource: {
6
+ image?: string;
7
+ bundle?: any[];
8
+ options?: any[];
9
+ product_option_string?: string;
10
+ name?: string;
11
+ symbol?: string;
12
+ price?: string | number;
13
+ total?: number;
14
+ origin_total?: number;
15
+ num?: number;
16
+ };
17
+ style?: React.CSSProperties;
18
+ isMainProduct?: boolean;
19
+ }
20
+ declare const BasicInfo: (props: IProps) => JSX.Element;
21
+ export default BasicInfo;
@@ -61,7 +61,7 @@ var BasicInfo = (props) => {
61
61
  "is-main": isMainProduct
62
62
  })
63
63
  },
64
- num < 99 ? num : "99+"
64
+ num < 100 ? num : "99+"
65
65
  );
66
66
  return null;
67
67
  };
@@ -0,0 +1,2 @@
1
+ declare const DiscountReason: (props: any) => JSX.Element;
2
+ export default DiscountReason;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Holders: (props: any) => JSX.Element | null;
3
+ export default Holders;
@@ -0,0 +1,10 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ isShowImage?: boolean;
4
+ dataSource: {
5
+ bundle?: any[];
6
+ symbol?: string;
7
+ };
8
+ }
9
+ declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
+ export default Packages;
@@ -0,0 +1,20 @@
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;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Resources: (props: any) => JSX.Element;
3
+ export default Resources;
@@ -0,0 +1,11 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ hideDivider?: boolean;
4
+ dataSource: {
5
+ symbol?: string;
6
+ relation_products?: any[];
7
+ bundle?: any[];
8
+ };
9
+ }
10
+ declare const Sales: ({ hideDivider, dataSource }: IProps) => JSX.Element | null;
11
+ export default Sales;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Specs: (props: any) => JSX.Element | null;
3
+ export default Specs;
@@ -0,0 +1,43 @@
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
+ };
21
+ export declare type SwipeActionProps = {
22
+ rightActions?: Action[];
23
+ leftActions?: Action[];
24
+ onAction?: (action: Action, e: React.MouseEvent) => void;
25
+ closeOnTouchOutside?: boolean;
26
+ closeOnAction?: boolean;
27
+ children: ReactNode;
28
+ stopPropagation?: PropagationEvent[];
29
+ onActionsReveal?: (side: SideType) => void;
30
+ onClose?: () => void;
31
+ } & NativeProps<'--background'>;
32
+ export declare const SwipeAction: React.ForwardRefExoticComponent<{
33
+ rightActions?: Action[] | undefined;
34
+ leftActions?: Action[] | undefined;
35
+ onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
36
+ closeOnTouchOutside?: boolean | undefined;
37
+ closeOnAction?: boolean | undefined;
38
+ children: ReactNode;
39
+ stopPropagation?: "click"[] | undefined;
40
+ onActionsReveal?: ((side: SideType) => void) | undefined;
41
+ onClose?: (() => void) | undefined;
42
+ } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
43
+ export {};