@pisell/materials 2.2.85 → 2.2.87

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 (179) 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 +7 -7
  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 -35
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +30 -40
  11. package/es/components/batch-editor/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  17. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/index.d.ts +4 -5
  21. package/es/components/date-picker/index.d.ts +0 -1
  22. package/es/components/filter/index.d.ts +0 -1
  23. package/es/components/page/index.d.ts +0 -1
  24. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  25. package/es/components/pisellAdjustPrice/index.js +63 -8
  26. package/es/components/pisellAdjustPrice/index.less +35 -6
  27. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  28. package/es/components/pisellAdjustPrice/status.js +32 -0
  29. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  30. package/es/components/pisellAdjustPrice/type.js +1 -0
  31. package/es/components/pisellInput/index.d.ts +0 -1
  32. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  33. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  34. package/es/components/pisellModal/components/index.d.ts +0 -1
  35. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  36. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  37. package/es/components/productCard/components/Header/index.js +4 -3
  38. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  39. package/es/components/productCard/components/Sales/index.js +1 -1
  40. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  41. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  42. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  43. package/es/components/table/Actions/index.d.ts +0 -1
  44. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  45. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  46. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  47. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  48. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  49. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  50. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  51. package/es/components/table/Table/fields/index.d.ts +2 -3
  52. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  53. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  54. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  55. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  56. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  57. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  58. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  59. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  60. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  61. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  62. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  63. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  64. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  65. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  66. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  67. package/es/components/table/Table/utils.d.ts +1 -1
  68. package/es/components/versionSelect/index.d.ts +0 -1
  69. package/es/components/virtual-keyboard/Amount/index.d.ts +10 -0
  70. package/es/components/virtual-keyboard/Amount/index.js +9 -4
  71. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  72. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  73. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  74. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  75. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  76. package/es/utils/index.d.ts +1 -1
  77. package/lib/components/batch-editor/index.d.ts +0 -1
  78. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  79. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  80. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  81. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  82. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  83. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  84. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  85. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  86. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -5
  87. package/lib/components/date-picker/index.d.ts +0 -1
  88. package/lib/components/filter/index.d.ts +0 -1
  89. package/lib/components/page/index.d.ts +0 -1
  90. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  91. package/lib/components/pisellAdjustPrice/index.js +118 -57
  92. package/lib/components/pisellAdjustPrice/index.less +35 -6
  93. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  94. package/lib/components/pisellAdjustPrice/status.js +60 -0
  95. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  96. package/lib/components/pisellAdjustPrice/type.js +17 -0
  97. package/lib/components/pisellInput/index.d.ts +0 -1
  98. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  99. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  100. package/lib/components/pisellModal/components/index.d.ts +0 -1
  101. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  102. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  103. package/lib/components/productCard/components/Header/index.js +4 -3
  104. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  105. package/lib/components/productCard/components/Sales/index.js +1 -1
  106. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  107. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  108. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  109. package/lib/components/table/Actions/index.d.ts +0 -1
  110. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  111. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  112. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  113. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  114. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  115. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  116. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  117. package/lib/components/table/Table/fields/index.d.ts +2 -3
  118. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  119. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  120. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  121. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  122. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  123. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  124. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  125. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  126. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  127. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  128. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  129. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  130. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  131. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  132. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  133. package/lib/components/table/Table/utils.d.ts +1 -1
  134. package/lib/components/versionSelect/index.d.ts +0 -1
  135. package/lib/components/virtual-keyboard/Amount/index.d.ts +10 -0
  136. package/lib/components/virtual-keyboard/Amount/index.js +8 -3
  137. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  138. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  139. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  140. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  141. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -27
  142. package/lib/utils/index.d.ts +1 -1
  143. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  144. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  145. package/package.json +3 -3
  146. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  147. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  148. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  149. package/es/components/drag-sort-tree/index.d.ts +0 -4
  150. package/es/components/iconfont/index.d.ts +0 -8
  151. package/es/components/login-and-register/index.d.ts +0 -82
  152. package/es/components/pisell-config-provider/index.d.ts +0 -12
  153. package/es/components/pisellEmpty/index.d.ts +0 -19
  154. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -93
  155. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  156. package/es/components/productCard/locales.d.ts +0 -84
  157. package/es/components/productCard/status.d.ts +0 -32
  158. package/es/components/productCard/types.d.ts +0 -84
  159. package/es/components/table/types.d.ts +0 -251
  160. package/es/locales/en-US.d.ts +0 -278
  161. package/es/locales/zh-CN.d.ts +0 -273
  162. package/es/locales/zh-TW.d.ts +0 -273
  163. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  164. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  165. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  166. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  167. package/lib/components/iconfont/index.d.ts +0 -8
  168. package/lib/components/login-and-register/index.d.ts +0 -82
  169. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  170. package/lib/components/pisellEmpty/index.d.ts +0 -19
  171. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -93
  172. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  173. package/lib/components/productCard/locales.d.ts +0 -84
  174. package/lib/components/productCard/status.d.ts +0 -32
  175. package/lib/components/productCard/types.d.ts +0 -84
  176. package/lib/components/table/types.d.ts +0 -251
  177. package/lib/locales/en-US.d.ts +0 -278
  178. package/lib/locales/zh-CN.d.ts +0 -273
  179. package/lib/locales/zh-TW.d.ts +0 -273
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
3
2
  export default DataSourceImage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceQRCode: (props: any) => JSX.Element;
3
2
  export default DataSourceQRCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | 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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: string | 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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: string | 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;
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "link" | "button";
55
+ type: "button" | "link";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "large" | "middle";
73
+ openContentSize: "large" | "middle" | "small";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -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" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
3
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -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" | "saas" | "xzero";
22
+ rootDomain: "custom" | "xzero" | "saas";
24
23
  customDomain?: string | undefined;
25
24
  value?: string | undefined;
26
25
  tenantId: string;
@@ -60,7 +59,7 @@ 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<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
64
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
64
  } & {
66
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -77,7 +76,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
77
76
  Subdomain: import("react").FC<import("antd").InputProps & {
78
77
  onChange: (value: string) => void;
79
78
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
80
- rootDomain: "custom" | "saas" | "xzero";
79
+ rootDomain: "custom" | "xzero" | "saas";
81
80
  customDomain?: string | undefined;
82
81
  value?: string | undefined;
83
82
  tenantId: string;
@@ -98,5 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
98
97
  dataSource?: any;
99
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 & {
100
99
  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
+ } & 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>;
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -1,9 +1,4 @@
1
1
  import './index.less';
2
- export interface PisellAdjustPriceProps {
3
- value?: number;
4
- originValue: number;
5
- defaultValue?: number;
6
- onChange?: (val: number) => void;
7
- }
2
+ import { PisellAdjustPriceProps } from './type';
8
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
4
  export default PisellAdjustPrice;
@@ -1,9 +1,11 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["value", "onChange", "defaultValue", "originValue"];
2
+ var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
8
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -15,16 +17,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
17
  import React, { useEffect, useMemo, useState } from 'react';
16
18
  import { Segmented } from 'antd';
17
19
  import classNames from 'classnames';
20
+ import { setTheme } from '@pisell/utils';
18
21
  import PisellText from "../pisellText";
19
22
  import Amount from "../virtual-keyboard/Amount";
20
23
  import { getText } from "../../locales";
21
24
  import "./index.less";
22
25
  import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
26
+ import { defaultConfig } from "./status";
23
27
  var PisellAdjustPrice = function PisellAdjustPrice(props) {
24
28
  var value = props.value,
25
29
  onChange = props.onChange,
26
30
  defaultValue = props.defaultValue,
27
31
  originValue = props.originValue,
32
+ _props$selectType = props.selectType,
33
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
28
34
  others = _objectWithoutProperties(props, _excluded);
29
35
  var config = usePisellConfig();
30
36
  var _useState = useState(value || 0),
@@ -47,6 +53,30 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
47
53
  useEffect(function () {
48
54
  document.body.id = 'body';
49
55
  }, []);
56
+
57
+ /**
58
+ * @title: 配置颜色
59
+ * @description: 根据 props 和 selectType 生成最终的配置颜色
60
+ * @param {*} useMemo
61
+ * @return {*}
62
+ * @Author: WangHan
63
+ * @Date: 2025-08-04 18:36
64
+ */
65
+ var configColor = useMemo(function () {
66
+ var currentConfig = defaultConfig[selectType];
67
+
68
+ // 过滤出有效的 props 并合并到默认配置中
69
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
70
+ var _ref2 = _slicedToArray(_ref, 2),
71
+ key = _ref2[0],
72
+ value = _ref2[1];
73
+ if (value !== undefined && key in currentConfig) {
74
+ acc[key] = value;
75
+ }
76
+ return acc;
77
+ }, {});
78
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
79
+ }, [selectType, props]);
50
80
  var handleEnter = function handleEnter() {
51
81
  if (isDiscountError) {
52
82
  return;
@@ -93,8 +123,21 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
93
123
  return "".concat(v, "%");
94
124
  }
95
125
  };
126
+ useEffect(function () {
127
+ setTheme({
128
+ '--pisell-adjust-price-text-color': configColor.textColor,
129
+ '--pisell-adjust-price-background-color': configColor.backgroundColor,
130
+ '--pisell-adjust-price-container-background-color': configColor.containerBackgroundColor,
131
+ '--pisell-adjust-price-button-background-color': configColor.buttonBackgroundColor,
132
+ '--pisell-adjust-price-main-text-color': configColor.mainTextColor,
133
+ '--pisell-adjust-price-sub-text-color': configColor.subTextColor
134
+ });
135
+ }, [configColor]);
96
136
  return /*#__PURE__*/React.createElement("div", {
97
- className: "pisell-lowcode-adjust-price-wrap"
137
+ className: classNames('pisell-lowcode-adjust-price-wrap', {
138
+ 'pisell-lowcode-adjust-price-dark': selectType === 'dark',
139
+ 'pisell-lowcode-adjust-price-light': selectType === 'light'
140
+ })
98
141
  }, /*#__PURE__*/React.createElement(Segmented, {
99
142
  size: "large",
100
143
  options: [{
@@ -132,17 +175,29 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
132
175
  defaultSelect: updateMode === 'priceOverride',
133
176
  onChange: handleChange,
134
177
  onEnter: handleEnter,
135
- placeholder: discountMode === 'amount' ? '0' : '%'
136
- }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
178
+ placeholder: discountMode === 'amount' ? '0' : '%',
179
+ rightItemsStyle: {
180
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
181
+ textColor: configColor.textColor,
182
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
183
+ resetButtonTextColor: configColor.resetButtonTextColor,
184
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
185
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
186
+ doneButtonTextColor: configColor.doneButtonTextColor
187
+ }
188
+ }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, configColor.isShowMainText ? /*#__PURE__*/React.createElement("div", {
137
189
  className: "pisell-low-code-adjust-price-total"
138
190
  }, isDiscountError ? /*#__PURE__*/React.createElement(PisellText.Amount, {
139
191
  value: originValue
140
192
  }) : /*#__PURE__*/React.createElement(React.Fragment, null, newValue && getText('pisell-adjust-price-total-after-discount'), /*#__PURE__*/React.createElement(PisellText.Amount, {
141
193
  value: totalAfterDiscount
142
- }))), /*#__PURE__*/React.createElement("div", {
194
+ }))) : null, configColor.isShowSubText ? /*#__PURE__*/React.createElement("div", {
143
195
  className: classNames('pisell-low-code-adjust-price-amount-desc', _defineProperty({}, 'pisell-low-code-adjust-price-amount-desc-error', isDiscountError))
144
196
  }, getText('pisell-adjust-price-discount-can-be-maximum'), ' ', discountMode === 'amount' ? /*#__PURE__*/React.createElement(PisellText.Amount, {
145
- value: originValue
146
- }) : '100%')));
197
+ value: originValue,
198
+ style: {
199
+ color: configColor.subTextColor
200
+ }
201
+ }) : '100%') : null));
147
202
  };
148
203
  export default PisellAdjustPrice;
@@ -1,30 +1,59 @@
1
1
  .pisell-lowcode-adjust-price-wrap {
2
2
  width: 380px;
3
3
  border-radius: 10px;
4
- background-color: #fff;
4
+ background-color: var(--pisell-adjust-price-background-color);
5
5
  padding: 10px;
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: 10px;
9
+ transition: all 0.3s ease;
10
+
11
+ // 浅色模式样式
12
+ &.pisell-lowcode-adjust-price-light {
13
+ .pisell-lowcode-segmented-item-label {
14
+ color: #667085;
15
+ }
16
+ }
17
+
18
+ // 深色模式样式
19
+ &.pisell-lowcode-adjust-price-dark {
20
+ .pisell-lowcode-segmented-item-label {
21
+ color: #d0d5dd;
22
+ }
23
+ }
24
+
25
+ .pisell-lowcode-segmented {
26
+ background: var(--pisell-adjust-price-container-background-color);
27
+ :hover {
28
+ color: var(--pisell-adjust-price-text-color);
29
+ }
30
+ .pisell-lowcode-segmented-item-selected {
31
+ background: var(--pisell-adjust-price-button-background-color);
32
+ .pisell-lowcode-segmented-item-label {
33
+ color: var(--pisell-adjust-price-text-color) !important;
34
+ }
35
+ }
36
+ }
37
+
9
38
  .pisell-lowcode-adjust-price-amount-wrap {
10
39
  padding: 10px;
11
40
  border-radius: 10px;
12
- background: var(--Gray-300, #D0D5DD);
41
+ background: var(--pisell-adjust-price-container-background-color);
13
42
  }
14
43
  .pisell-low-code-adjust-price-total {
15
- color: var(--Gray-900, #101828);
44
+ color: var(--pisell-adjust-price-main-text-color);
16
45
  font-size: 20px;
17
46
  font-weight: 600;
18
47
  line-height: 30px; /* 150% */
19
48
  }
20
49
  .pisell-low-code-adjust-price-amount-desc {
21
- color: var(--Gray-500, #667085);
50
+ color: var(--pisell-adjust-price-sub-text-color);
22
51
  font-size: 16px;
23
52
  font-style: normal;
24
53
  font-weight: 400;
25
54
  line-height: 24px; /* 150% */
26
55
  }
27
56
  .pisell-low-code-adjust-price-amount-desc-error {
28
- color: var(--Error-600, #D92D20);
57
+ color: var(--Error-600, #d92d20);
29
58
  }
30
- }
59
+ }
@@ -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,32 @@
1
+ export var defaultConfig = {
2
+ dark: {
3
+ backgroundColor: 'rgba(0, 0, 0, 0.70)',
4
+ containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
5
+ buttonBackgroundColor: '#ffffff',
6
+ textColor: '#000000',
7
+ resetButtonBackgroundColor: '#ffffff',
8
+ resetButtonTextColor: '#d92d20',
9
+ isDoneButtonFollowTheme: true,
10
+ doneButtonBackgroundColor: '#4ca30d',
11
+ doneButtonTextColor: '#ffffff',
12
+ isShowMainText: true,
13
+ mainTextColor: '#ffffff',
14
+ isShowSubText: true,
15
+ subTextColor: '#d0d5dd'
16
+ },
17
+ light: {
18
+ backgroundColor: '#ffffff',
19
+ containerBackgroundColor: '#d0d5dd',
20
+ buttonBackgroundColor: '#ffffff',
21
+ textColor: '#000000',
22
+ resetButtonBackgroundColor: '#ffffff',
23
+ resetButtonTextColor: '#d92d20',
24
+ isDoneButtonFollowTheme: true,
25
+ doneButtonBackgroundColor: '#4ca30d',
26
+ doneButtonTextColor: '#ffffff',
27
+ isShowMainText: true,
28
+ mainTextColor: '#101828',
29
+ isShowSubText: true,
30
+ subTextColor: '#667085'
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 @@
1
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  export interface IpadModalProps extends PcModalProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  import './index.less';
4
3
  export interface MobileModalProps extends PcModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import IpadModal from './IpadModal';
3
2
  import MobileModal from './MobileModal';
4
3
  import PcModal from './PcModal';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellWalletPassCardProps {
3
4
  id: number;
@@ -6,7 +6,7 @@
6
6
  * @Author: WangHan
7
7
  * @Date: 2024-11-22 10:01
8
8
  */
9
- export declare const minusSign: (item: any, type?: string) => "-" | "";
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
10
  /**
11
11
  * @title: 金额格式化
12
12
  * @description:
@@ -26,7 +26,8 @@ var Header = function Header(props) {
26
26
  name = item.name,
27
27
  price = item.price,
28
28
  symbol = item.symbol,
29
- disabled = item.disabled;
29
+ disabled = item.disabled,
30
+ relation_products = item.relation_products;
30
31
 
31
32
  /**
32
33
  * @title: 是否显示价格
@@ -39,8 +40,8 @@ var Header = function Header(props) {
39
40
  var showPrice = useMemo(function () {
40
41
  // 如果有报价单则不需要显示价格
41
42
 
42
- return (bundle === null || bundle === void 0 ? void 0 : bundle.length) > 0 || (options === null || options === void 0 ? void 0 : options.length) > 0;
43
- }, [bundle, options]);
43
+ return (bundle === null || bundle === void 0 ? void 0 : bundle.length) > 0 || (options === null || options === void 0 ? void 0 : options.length) > 0 || ((relation_products === null || relation_products === void 0 ? void 0 : relation_products.length) || 0) > 0;
44
+ }, [bundle, options, relation_products]);
44
45
 
45
46
  /**
46
47
  * @title: 样式是否居中
@@ -6,7 +6,7 @@
6
6
  * @Author: WangHan
7
7
  * @Date: 2024-11-22 10:01
8
8
  */
9
- export declare const minusSign: (item: any, type?: string) => "-" | "";
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
10
  /**
11
11
  * @title: 金额格式化
12
12
  * @description:
@@ -23,7 +23,7 @@ var Sales = function Sales(_ref) {
23
23
  price: p === null || p === void 0 ? void 0 : p.selling_price,
24
24
  symbol: item.symbol,
25
25
  num: p === null || p === void 0 ? void 0 : p.product_quantity,
26
- total: p === null || p === void 0 ? void 0 : p.payment_price
26
+ total: p === null || p === void 0 ? void 0 : p.selling_price
27
27
  });
28
28
  });
29
29
  return ((_other_products = other_products) === null || _other_products === void 0 ? void 0 : _other_products.length) > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type ColumnsSettingProps = {
3
2
  value?: Record<string, any>[];
4
3
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, ModeType } from "../../../types";
3
2
  import "./index.less";
4
3
  declare type GallerySettingProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceGroupType } from "../../../types";
3
2
  declare type GroupProps = {
4
3
  setting: DataSourceGroupType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterType } from "../../filter/types";
3
2
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
3
2
  declare type CoverProps = {
4
3
  cover?: GallerySettingType["cover"];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -198,12 +197,12 @@ export declare const fieldList: ({
198
197
  field_icon: string;
199
198
  field_name: string;
200
199
  field_type: string;
201
- default_value: boolean;
200
+ default_value: string;
202
201
  } | {
203
202
  field_icon: string;
204
203
  field_name: string;
205
204
  field_type: string;
206
- default_value: string;
205
+ default_value: boolean;
207
206
  } | {
208
207
  field_icon: string;
209
208
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;