@pisell/materials 1.0.857 → 1.0.858

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 (167) 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 +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +27 -36
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +32 -41
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/index.d.ts +5 -4
  18. package/es/components/filter/index.d.ts +1 -0
  19. package/es/components/list/index.d.ts +1 -0
  20. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  21. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  22. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  23. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  24. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  25. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  26. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  27. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  28. package/es/components/productCard/cartSkuCard/index.js +10 -5
  29. package/es/components/select-time/index.d.ts +1 -0
  30. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  31. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  32. package/es/components/table/Table/fields/index.d.ts +3 -2
  33. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  34. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  35. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  36. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  37. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +2 -4
  38. package/es/utils/index.d.ts +1 -1
  39. package/lib/components/batch-editor/index.d.ts +1 -0
  40. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  41. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  42. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  43. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  44. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  45. package/lib/components/dataSourceComponents/fields/index.d.ts +5 -4
  46. package/lib/components/filter/index.d.ts +1 -0
  47. package/lib/components/list/index.d.ts +1 -0
  48. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  49. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  50. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  51. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  52. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  53. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  54. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  55. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  56. package/lib/components/productCard/cartSkuCard/index.js +22 -19
  57. package/lib/components/select-time/index.d.ts +1 -0
  58. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  59. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  60. package/lib/components/table/Table/fields/index.d.ts +3 -2
  61. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  62. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  63. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  64. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  65. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +2 -4
  66. package/lib/utils/index.d.ts +1 -1
  67. package/package.json +3 -3
  68. package/es/components/appVersionControl/index.d.ts +0 -4
  69. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  70. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  71. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  72. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  73. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  74. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  75. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  76. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  77. package/es/components/drag-sort-tree/index.d.ts +0 -3
  78. package/es/components/hardwareErrorTip/demo.d.ts +0 -3
  79. package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
  80. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
  81. package/es/components/hardwareErrorTip/index.d.ts +0 -19
  82. package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -27
  83. package/es/components/hardwareErrorTip/types.d.ts +0 -44
  84. package/es/components/login-and-register/index.d.ts +0 -82
  85. package/es/components/pisell-config-provider/index.d.ts +0 -12
  86. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  87. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  88. package/es/components/pisellEmpty/index.d.ts +0 -19
  89. package/es/components/productCard/components/Header/Actions/index.d.ts +0 -3
  90. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  91. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  92. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  93. package/es/components/productCard/components/Time/index.d.ts +0 -3
  94. package/es/components/productCard/components/Warning/index.d.ts +0 -7
  95. package/es/components/productCard/index.d.ts +0 -7
  96. package/es/components/productCard/locales.d.ts +0 -84
  97. package/es/components/productCard/status.d.ts +0 -32
  98. package/es/components/productCard/types.d.ts +0 -84
  99. package/es/components/productCard/utils.d.ts +0 -31
  100. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  101. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  102. package/es/components/table/Gallery/index.d.ts +0 -5
  103. package/es/components/table/Table/index.d.ts +0 -4
  104. package/es/components/table/Table/utils.d.ts +0 -173
  105. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  106. package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
  107. package/es/components/table/types.d.ts +0 -253
  108. package/es/components/versionModal/index.d.ts +0 -24
  109. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -32
  110. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  111. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  112. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  113. package/es/components/walletCard/index.d.ts +0 -71
  114. package/es/index.d.ts +0 -142
  115. package/es/locales/en-US.d.ts +0 -313
  116. package/es/locales/zh-CN.d.ts +0 -308
  117. package/es/locales/zh-TW.d.ts +0 -308
  118. package/lib/components/appVersionControl/index.d.ts +0 -4
  119. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  120. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  121. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  122. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  123. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  124. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  125. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  126. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  127. package/lib/components/drag-sort-tree/index.d.ts +0 -3
  128. package/lib/components/hardwareErrorTip/demo.d.ts +0 -3
  129. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
  130. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
  131. package/lib/components/hardwareErrorTip/index.d.ts +0 -19
  132. package/lib/components/hardwareErrorTip/logCard/index.d.ts +0 -27
  133. package/lib/components/hardwareErrorTip/types.d.ts +0 -44
  134. package/lib/components/login-and-register/index.d.ts +0 -82
  135. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  136. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  137. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  138. package/lib/components/pisellEmpty/index.d.ts +0 -19
  139. package/lib/components/productCard/components/Header/Actions/index.d.ts +0 -3
  140. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  141. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  142. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  143. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  144. package/lib/components/productCard/components/Warning/index.d.ts +0 -7
  145. package/lib/components/productCard/index.d.ts +0 -7
  146. package/lib/components/productCard/locales.d.ts +0 -84
  147. package/lib/components/productCard/status.d.ts +0 -32
  148. package/lib/components/productCard/types.d.ts +0 -84
  149. package/lib/components/productCard/utils.d.ts +0 -31
  150. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  151. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  152. package/lib/components/table/Gallery/index.d.ts +0 -5
  153. package/lib/components/table/Table/index.d.ts +0 -4
  154. package/lib/components/table/Table/utils.d.ts +0 -173
  155. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  156. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
  157. package/lib/components/table/types.d.ts +0 -253
  158. package/lib/components/versionModal/index.d.ts +0 -24
  159. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -32
  160. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  161. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  162. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  163. package/lib/components/walletCard/index.d.ts +0 -71
  164. package/lib/index.d.ts +0 -142
  165. package/lib/locales/en-US.d.ts +0 -313
  166. package/lib/locales/zh-CN.d.ts +0 -308
  167. package/lib/locales/zh-TW.d.ts +0 -308
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
3
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -34,7 +35,7 @@ declare const formFieldMap: {
34
35
  };
35
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
37
  options?: any;
37
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
38
39
  labelField: string;
39
40
  valueField: string;
40
41
  extraParams?: Record<string, any> | undefined;
@@ -59,13 +60,13 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
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
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & 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("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
67
  }) | 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
68
  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> & {
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
69
70
  JSON: import("react").FC<any>;
70
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
72
  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>;
@@ -91,7 +92,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
91
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
92
93
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
93
94
  options?: any;
94
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ optionSourceType?: "custom" | "default" | "api" | undefined;
95
96
  labelField: string;
96
97
  valueField: string;
97
98
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DiscountReason: (props: any) => JSX.Element;
2
3
  export default DiscountReason;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Holders: (props: any) => JSX.Element | null;
3
4
  export default Holders;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  isShowImage?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resources: (props: any) => JSX.Element;
3
4
  export default Resources;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  hideDivider?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Specs: (props: any) => JSX.Element | null;
3
4
  export default Specs;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'dayjs/locale/zh-cn';
2
3
  import 'dayjs/locale/en';
3
4
  import 'dayjs/locale/zh-tw';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ProductCardTypes } from '../types';
3
4
  interface ISKUCardProps extends ProductCardTypes {
@@ -63,7 +63,7 @@ var CartSkuCard = function CartSkuCard(props) {
63
63
  var isShowAction = dataSource.isShowAction,
64
64
  actionText = dataSource.actionText;
65
65
  var rightActions = useMemo(function () {
66
- return [{
66
+ var deleteAction = {
67
67
  key: 'delete',
68
68
  text: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Iconfont, {
69
69
  type: "pisell2-trash-01",
@@ -82,8 +82,13 @@ var CartSkuCard = function CartSkuCard(props) {
82
82
  e.stopPropagation();
83
83
  onDelete === null || onDelete === void 0 || onDelete(dataSource);
84
84
  }
85
- }];
86
- }, [dataSource, onDelete]);
85
+ };
86
+ var actions = [];
87
+ if (isShowDelete) {
88
+ actions.push(deleteAction);
89
+ }
90
+ return actions;
91
+ }, [dataSource, onDelete, isShowDelete]);
87
92
  var hideDivider = useMemo(function () {
88
93
  var bundle = dataSource.bundle,
89
94
  relation_products = dataSource.relation_products;
@@ -108,7 +113,7 @@ var CartSkuCard = function CartSkuCard(props) {
108
113
  var _dataSource$bundle, _dataSource$items;
109
114
  var image = dataSource.image,
110
115
  name = dataSource.name;
111
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
116
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isShowDelete ? /*#__PURE__*/React.createElement("div", {
112
117
  className: "".concat(PREFIX, "__delete-btn"),
113
118
  onClick: function onClick(e) {
114
119
  e.preventDefault();
@@ -117,7 +122,7 @@ var CartSkuCard = function CartSkuCard(props) {
117
122
  }
118
123
  }, /*#__PURE__*/React.createElement(Iconfont, {
119
124
  type: "pisell2-trash-01"
120
- })), /*#__PURE__*/React.createElement("div", {
125
+ })) : null, /*#__PURE__*/React.createElement("div", {
121
126
  className: "".concat(PREFIX, "__content")
122
127
  }, isShowImage && image && /*#__PURE__*/React.createElement("img", {
123
128
  src: imageAli.ali(image, 64),
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
2
3
  import { PopoverProps, TimePickerProps } from "antd";
3
4
  import "./index.less";
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -197,12 +198,12 @@ export declare const fieldList: ({
197
198
  field_icon: string;
198
199
  field_name: string;
199
200
  field_type: string;
200
- default_value: string;
201
+ default_value: boolean;
201
202
  } | {
202
203
  field_icon: string;
203
204
  field_name: string;
204
205
  field_type: string;
205
- default_value: boolean;
206
+ default_value: string;
206
207
  } | {
207
208
  field_icon: string;
208
209
  field_name: string;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -62,8 +62,7 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
62
62
  style: {
63
63
  backgroundColor: (style === null || style === void 0 ? void 0 : style.backgroundColor) || '#ffffff'
64
64
  }
65
- }, props.renderInput ? /*#__PURE__*/React.createElement("button", {
66
- type: "button",
65
+ }, props.renderInput ? /*#__PURE__*/React.createElement("div", {
67
66
  className: classNames('virtual-keyboard-input', {
68
67
  'virtual-keyboard-input-select': select
69
68
  }),
@@ -81,8 +80,7 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
81
80
  }, props, {
82
81
  readOnly: true,
83
82
  value: previewValue
84
- })), (_ref = "".concat(value !== null && value !== void 0 ? value : "")) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("button", {
85
- type: "button",
83
+ })), (_ref = "".concat(value !== null && value !== void 0 ? value : "")) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("div", {
86
84
  className: "virtual-keyboard-input-delete",
87
85
  onClick: _onDelete
88
86
  }, /*#__PURE__*/React.createElement(Delete, {
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
3
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -34,7 +35,7 @@ declare const formFieldMap: {
34
35
  };
35
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
37
  options?: any;
37
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
38
39
  labelField: string;
39
40
  valueField: string;
40
41
  extraParams?: Record<string, any> | undefined;
@@ -59,13 +60,13 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
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
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & 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("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
67
  }) | 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
68
  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> & {
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
69
70
  JSON: import("react").FC<any>;
70
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
72
  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>;
@@ -91,7 +92,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
91
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
92
93
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
93
94
  options?: any;
94
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ optionSourceType?: "custom" | "default" | "api" | undefined;
95
96
  labelField: string;
96
97
  valueField: string;
97
98
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DiscountReason: (props: any) => JSX.Element;
2
3
  export default DiscountReason;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Holders: (props: any) => JSX.Element | null;
3
4
  export default Holders;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  isShowImage?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resources: (props: any) => JSX.Element;
3
4
  export default Resources;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  hideDivider?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Specs: (props: any) => JSX.Element | null;
3
4
  export default Specs;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'dayjs/locale/zh-cn';
2
3
  import 'dayjs/locale/en';
3
4
  import 'dayjs/locale/zh-tw';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ProductCardTypes } from '../types';
3
4
  interface ISKUCardProps extends ProductCardTypes {
@@ -85,25 +85,28 @@ var CartSkuCard = (props) => {
85
85
  console.log("prodcut props", props);
86
86
  const { isShowAction, actionText } = dataSource;
87
87
  const rightActions = (0, import_react.useMemo)(() => {
88
- return [
89
- {
90
- key: "delete",
91
- text: /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
92
- import_iconfont.default,
93
- {
94
- type: "pisell2-trash-01",
95
- style: { fontSize: 20, marginRight: 4 }
96
- }
97
- ), /* @__PURE__ */ import_react.default.createElement("span", { style: { fontSize: 12 } }, "删除")),
98
- color: "danger",
99
- onClick: (e) => {
100
- e.preventDefault();
101
- e.stopPropagation();
102
- onDelete == null ? void 0 : onDelete(dataSource);
88
+ const deleteAction = {
89
+ key: "delete",
90
+ text: /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
91
+ import_iconfont.default,
92
+ {
93
+ type: "pisell2-trash-01",
94
+ style: { fontSize: 20, marginRight: 4 }
103
95
  }
96
+ ), /* @__PURE__ */ import_react.default.createElement("span", { style: { fontSize: 12 } }, "删除")),
97
+ color: "danger",
98
+ onClick: (e) => {
99
+ e.preventDefault();
100
+ e.stopPropagation();
101
+ onDelete == null ? void 0 : onDelete(dataSource);
104
102
  }
105
- ];
106
- }, [dataSource, onDelete]);
103
+ };
104
+ const actions = [];
105
+ if (isShowDelete) {
106
+ actions.push(deleteAction);
107
+ }
108
+ return actions;
109
+ }, [dataSource, onDelete, isShowDelete]);
107
110
  const hideDivider = (0, import_react.useMemo)(() => {
108
111
  const { bundle, relation_products } = dataSource;
109
112
  return (bundle == null ? void 0 : bundle.length) || (relation_products == null ? void 0 : relation_products.length);
@@ -125,7 +128,7 @@ var CartSkuCard = (props) => {
125
128
  const renderA5 = () => {
126
129
  var _a2, _b2;
127
130
  const { image, name } = dataSource;
128
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
131
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, isShowDelete ? /* @__PURE__ */ import_react.default.createElement(
129
132
  "div",
130
133
  {
131
134
  className: `${PREFIX}__delete-btn`,
@@ -136,7 +139,7 @@ var CartSkuCard = (props) => {
136
139
  }
137
140
  },
138
141
  /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-trash-01" })
139
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__content` }, isShowImage && image && /* @__PURE__ */ import_react.default.createElement("img", { src: import_utils.image.ali(image, 64), className: `product-cover` }), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), /* @__PURE__ */ import_react.default.createElement(import_holders.default, { dataSource }))), /* @__PURE__ */ import_react.default.createElement(import_timeRange.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_resources.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_packages.default, { dataSource, isShowImage }), /* @__PURE__ */ import_react.default.createElement(
142
+ ) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__content` }, isShowImage && image && /* @__PURE__ */ import_react.default.createElement("img", { src: import_utils.image.ali(image, 64), className: `product-cover` }), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), /* @__PURE__ */ import_react.default.createElement(import_holders.default, { dataSource }))), /* @__PURE__ */ import_react.default.createElement(import_timeRange.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_resources.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_packages.default, { dataSource, isShowImage }), /* @__PURE__ */ import_react.default.createElement(
140
143
  import_sales.default,
141
144
  {
142
145
  dataSource,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
2
3
  import { PopoverProps, TimePickerProps } from "antd";
3
4
  import "./index.less";
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -197,12 +198,12 @@ export declare const fieldList: ({
197
198
  field_icon: string;
198
199
  field_name: string;
199
200
  field_type: string;
200
- default_value: string;
201
+ default_value: boolean;
201
202
  } | {
202
203
  field_icon: string;
203
204
  field_name: string;
204
205
  field_type: string;
205
- default_value: boolean;
206
+ default_value: string;
206
207
  } | {
207
208
  field_icon: string;
208
209
  field_name: string;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -82,9 +82,8 @@ var VirtualKeyInput = (props) => {
82
82
  }
83
83
  },
84
84
  props.renderInput ? /* @__PURE__ */ import_react.default.createElement(
85
- "button",
85
+ "div",
86
86
  {
87
- type: "button",
88
87
  className: (0, import_classnames.default)("virtual-keyboard-input", {
89
88
  "virtual-keyboard-input-select": select
90
89
  }),
@@ -109,9 +108,8 @@ var VirtualKeyInput = (props) => {
109
108
  }
110
109
  ),
111
110
  ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement(
112
- "button",
111
+ "div",
113
112
  {
114
- type: "button",
115
113
  className: "virtual-keyboard-input-delete",
116
114
  onClick: _onDelete
117
115
  },
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';