@pisell/materials 2.2.62 → 2.2.64

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 (177) 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 +150 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -28
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -29
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  20. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  22. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  24. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  25. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  26. package/es/components/dataSourceComponents/fields/index.d.ts +21 -20
  27. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  28. package/es/components/date-picker/index.d.ts +1 -0
  29. package/es/components/filter/index.d.ts +1 -0
  30. package/es/components/list/index.d.ts +1 -0
  31. package/es/components/lowCodePage/index.d.ts +1 -0
  32. package/es/components/page/index.d.ts +1 -0
  33. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  34. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  35. package/es/components/pisellAvatar/index.js +1 -1
  36. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  37. package/es/components/pisellInput/index.d.ts +1 -0
  38. package/es/components/pisellLoading/index.d.ts +1 -0
  39. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  40. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  41. package/es/components/pisellModal/components/index.d.ts +1 -0
  42. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  43. package/es/components/pisellWalletPassCard/index.js +5 -3
  44. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  45. package/es/components/productCard/components/Header/index.d.ts +1 -0
  46. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  47. package/es/components/productCard/components/Note/index.d.ts +1 -0
  48. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  49. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  50. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  51. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  52. package/es/components/productCard/components/Time/components/SelectHolder/index.js +8 -2
  53. package/es/components/productCard/components/Time/components/SelectHolder/index.less +1 -3
  54. package/es/components/productCard/components/Time/components/SelectResource/index.js +3 -1
  55. package/es/components/productCard/components/Time/index.d.ts +1 -0
  56. package/es/components/productCard/index.js +0 -1
  57. package/es/components/productCard/locales.d.ts +3 -0
  58. package/es/components/productCard/locales.js +9 -0
  59. package/es/components/productCard/utils.js +12 -2
  60. package/es/components/qrcode/index.d.ts +1 -0
  61. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  62. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  63. package/es/components/table/Actions/index.d.ts +1 -0
  64. package/es/components/table/BasicTable/index.d.ts +1 -0
  65. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  66. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  67. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  68. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/index.d.ts +3 -2
  73. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  74. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  75. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  76. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  77. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  78. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  79. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  80. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  81. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  85. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  87. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  88. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  89. package/es/components/table/Table/utils.d.ts +1 -1
  90. package/es/components/table/View/index.d.ts +1 -0
  91. package/es/components/versionSelect/index.d.ts +1 -0
  92. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  93. package/lib/components/batch-editor/index.d.ts +1 -0
  94. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  95. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  96. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  97. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  98. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  99. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  100. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  101. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  102. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  103. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  104. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  105. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  106. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  107. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  108. package/lib/components/dataSourceComponents/fields/index.d.ts +21 -20
  109. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  110. package/lib/components/date-picker/index.d.ts +1 -0
  111. package/lib/components/filter/index.d.ts +1 -0
  112. package/lib/components/list/index.d.ts +1 -0
  113. package/lib/components/lowCodePage/index.d.ts +1 -0
  114. package/lib/components/page/index.d.ts +1 -0
  115. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  116. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  117. package/lib/components/pisellAvatar/index.js +1 -1
  118. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  119. package/lib/components/pisellInput/index.d.ts +1 -0
  120. package/lib/components/pisellLoading/index.d.ts +1 -0
  121. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  122. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  123. package/lib/components/pisellModal/components/index.d.ts +1 -0
  124. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  125. package/lib/components/pisellWalletPassCard/index.js +5 -3
  126. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  127. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  128. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  129. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  130. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  131. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  132. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  133. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  134. package/lib/components/productCard/components/Time/components/SelectHolder/index.js +5 -7
  135. package/lib/components/productCard/components/Time/components/SelectHolder/index.less +1 -3
  136. package/lib/components/productCard/components/Time/components/SelectResource/index.js +25 -18
  137. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  138. package/lib/components/productCard/index.js +0 -1
  139. package/lib/components/productCard/locales.d.ts +3 -0
  140. package/lib/components/productCard/locales.js +6 -3
  141. package/lib/components/productCard/utils.js +12 -3
  142. package/lib/components/qrcode/index.d.ts +1 -0
  143. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  144. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  145. package/lib/components/table/Actions/index.d.ts +1 -0
  146. package/lib/components/table/BasicTable/index.d.ts +1 -0
  147. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  148. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  149. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  150. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  151. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  152. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  153. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  154. package/lib/components/table/Table/fields/index.d.ts +3 -2
  155. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  156. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  157. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  158. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  159. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  160. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  161. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  162. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  163. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  164. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  165. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  166. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  167. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  168. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  169. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  170. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  171. package/lib/components/table/Table/utils.d.ts +1 -1
  172. package/lib/components/table/View/index.d.ts +1 -0
  173. package/lib/components/versionSelect/index.d.ts +1 -0
  174. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  175. package/package.json +1 -1
  176. package/es/components/iconfont/index.d.ts +0 -8
  177. package/lib/components/iconfont/index.d.ts +0 -8
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
3
  export default DataSourceImage;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => 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 | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => 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: "small" | "middle" | "large";
73
+ openContentSize: "small" | "large" | "middle";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -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,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
5
  labelField: string;
5
6
  valueField: string;
6
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -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>;
@@ -19,7 +20,7 @@ declare const formFieldMap: {
19
20
  Subdomain: import("react").FC<import("antd").InputProps & {
20
21
  onChange: (value: string) => void;
21
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "saas" | "xzero";
23
+ rootDomain: "custom" | "xzero" | "saas";
23
24
  customDomain?: string | undefined;
24
25
  value?: string | undefined;
25
26
  tenantId: string;
@@ -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,21 @@ 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
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | 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("./IconSelect/type").IconSelectProps & 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("./Upload/type").UploadProps & 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("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
+ options?: any;
65
+ optionSourceType?: "custom" | "default" | "api" | undefined;
66
+ labelField: string;
67
+ valueField: string;
68
+ extraParams?: Record<string, any> | undefined;
64
69
  } & {
65
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
70
+ dataSource?: any;
71
+ }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
+ } & {
74
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
+ }) | 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
76
  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> & {
77
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
69
78
  JSON: import("react").FC<any>;
70
79
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
80
  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>;
@@ -78,24 +87,16 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
87
  Subdomain: import("react").FC<import("antd").InputProps & {
79
88
  onChange: (value: string) => void;
80
89
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
81
- rootDomain: "custom" | "saas" | "xzero";
90
+ rootDomain: "custom" | "xzero" | "saas";
82
91
  customDomain?: string | undefined;
83
92
  value?: string | undefined;
84
93
  tenantId: string;
85
94
  name?: string | undefined;
86
95
  fieldKey?: string | undefined;
87
96
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
89
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
- } & {
91
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
92
- }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
93
- options?: any;
94
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
- labelField: string;
96
- valueField: string;
97
- extraParams?: Record<string, any> | undefined;
97
+ }) | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
98
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
98
99
  } & {
99
- dataSource?: any;
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>;
100
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
101
+ });
101
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputNumberProps } from 'antd/es/input-number';
2
3
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
3
4
  value?: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellAdjustPriceProps {
3
4
  value?: number;
@@ -54,7 +54,7 @@ var PisellAvatar = function PisellAvatar(_ref) {
54
54
  var mergedStyle = _objectSpread(_objectSpread({}, style), {}, {
55
55
  width: sizeMap[size],
56
56
  height: sizeMap[size],
57
- fontSize: children || icon ? fontSizeMap[size] : undefined,
57
+ fontSize: fontSizeMap[size],
58
58
  lineHeight: "".concat(sizeMap[size], "px"),
59
59
  borderRadius: shape === 'square' ? "".concat(borderRadius, "px") : '50%'
60
60
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  export interface IpadModalProps extends PcModalProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  import './index.less';
3
4
  export interface MobileModalProps extends PcModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  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;
@@ -318,7 +318,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
318
318
  style: {
319
319
  width: '100%'
320
320
  },
321
- max: 'redeem' === name ? originData.available_max_amount : undefined
321
+ max: 'redeem' === name ? originData === null || originData === void 0 ? void 0 : originData.available_max_amount : undefined
322
322
  });
323
323
  }
324
324
  return /*#__PURE__*/React.createElement(Input, {
@@ -339,7 +339,8 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
339
339
  width: 480,
340
340
  onOk: _onConfirmEdit,
341
341
  okText: getText('pisell-wallet-pass-card-confirm'),
342
- cancelText: getText('pisell-wallet-pass-card-cancel')
342
+ cancelText: getText('pisell-wallet-pass-card-cancel'),
343
+ platform: "pc"
343
344
  }, /*#__PURE__*/React.createElement(Form, {
344
345
  form: form,
345
346
  layout: 'vertical',
@@ -367,7 +368,8 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
367
368
  },
368
369
  width: 480,
369
370
  className: "pisell-wallet-pass-card-detail-modal",
370
- footer: null
371
+ footer: null,
372
+ platform: "pc"
371
373
  }, /*#__PURE__*/React.createElement(Form, {
372
374
  form: form2,
373
375
  disabled: true,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: (props: any) => JSX.Element;
3
4
  export default Header;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Note: (props: any) => JSX.Element | null;
3
4
  export default Note;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
4
  export default Packages;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
4
  export default Sales;
@@ -25,6 +25,10 @@ var SelectHolder = function SelectHolder(_ref) {
25
25
  _useState2 = _slicedToArray(_useState, 2),
26
26
  selectedValue = _useState2[0],
27
27
  setSelectedValue = _useState2[1];
28
+ var _useState3 = useState(false),
29
+ _useState4 = _slicedToArray(_useState3, 2),
30
+ open = _useState4[0],
31
+ setOpen = _useState4[1];
28
32
  useEffect(function () {
29
33
  setSelectedValue(value);
30
34
  }, [value]);
@@ -41,14 +45,16 @@ var SelectHolder = function SelectHolder(_ref) {
41
45
  e.preventDefault();
42
46
  e.stopPropagation();
43
47
  onAddHolder();
48
+ setOpen(false);
44
49
  };
45
- console.log(lists, isShowAddHolderButton, addHolderButtonText, 'select-holder');
46
50
  var isError = useMemo(function () {
47
51
  if (!selectedValue && isErrorHolder) return true;
48
52
  }, [selectedValue, isErrorHolder]);
49
53
  return /*#__PURE__*/React.createElement("div", {
50
54
  className: "pisell-lowcode-product-card-select-holder ".concat(isError ? 'pisell-lowcode-product-card-select-holder-error' : '')
51
55
  }, /*#__PURE__*/React.createElement(Select, {
56
+ open: open,
57
+ onDropdownVisibleChange: setOpen,
52
58
  onClick: function onClick(e) {
53
59
  return e.stopPropagation();
54
60
  },
@@ -60,7 +66,7 @@ var SelectHolder = function SelectHolder(_ref) {
60
66
  return _onChange('');
61
67
  },
62
68
  value: selectedValue,
63
- placeholder: locales.getText('pisell2.product.card.add.holder.placeholder')(''),
69
+ placeholder: locales.getText('pisell2.product.card.add.holder.placeholder')(addHolderButtonText),
64
70
  onChange: function onChange(val) {
65
71
  setSelectedValue(val);
66
72
  var item = lists.find(function (d) {
@@ -1,8 +1,6 @@
1
1
  .pisell-lowcode-product-card-select-holder {
2
2
  .pisell-lowcode-select {
3
- min-width: 140px;
4
- max-width: 100%;
5
- width: auto;
3
+ width: 100%;
6
4
  .pisell-lowcode-select-selector {
7
5
  border-radius: 50px;
8
6
  }
@@ -12,7 +12,7 @@ import React, { useCallback, useEffect, useState, useMemo } from 'react';
12
12
  import AlertTriangle from '@pisell/icon/es/AlertTriangle';
13
13
  import { locales } from '@pisell/utils';
14
14
  import { Select } from 'antd';
15
- import { isArr } from "@pisell/utils";
15
+ import { isArr } from '@pisell/utils';
16
16
  import "./index.less";
17
17
  var SelectResource = function SelectResource(_ref) {
18
18
  var lists = _ref.lists,
@@ -95,6 +95,7 @@ var SelectResource = function SelectResource(_ref) {
95
95
  return /*#__PURE__*/React.createElement("div", {
96
96
  className: "pisell-lowcode-product-card-select-resource ".concat(isError ? 'pisell-lowcode-product-card-select-resource-error' : '')
97
97
  }, /*#__PURE__*/React.createElement(Select, {
98
+ disabled: props.disabled,
98
99
  mode: resourceMode,
99
100
  size: "large",
100
101
  showSearch: true,
@@ -109,6 +110,7 @@ var SelectResource = function SelectResource(_ref) {
109
110
  flex: 1
110
111
  },
111
112
  value: selectedValue,
113
+ placeholder: locales.getText('pisell2.product.card.add.holder.placeholder')(''),
112
114
  onChange: handleChange
113
115
  }, renderOptions()), isError ? /*#__PURE__*/React.createElement("div", {
114
116
  className: "pisell-lowcode-product-select-resource-error"
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
3
4
  export default Time;
@@ -54,7 +54,6 @@ var ProductCard = function ProductCard(props) {
54
54
  var useOpenNoteRef = useRef();
55
55
  var locale = (utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('umi_locale')) || localStorage.getItem('umi_locale');
56
56
  locales.init(localeTexts, locale || 'en');
57
- console.log(dataSource, isShowImage, isShowNote, 'dataSource');
58
57
  var image = dataSource.image,
59
58
  bundle = dataSource.bundle,
60
59
  relation_products = dataSource.relation_products,
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  'pisell2.product.card.view-less': string;
16
16
  'pisell2.product.card.add.holder.button.text': (val: string) => string;
17
17
  'pisell2.product.card.add.holder.placeholder': (val: string) => string;
18
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
18
19
  };
19
20
  'zh-CN': {
20
21
  'pisell2.product.card.day': (val: number) => string;
@@ -32,6 +33,7 @@ declare const _default: {
32
33
  'pisell2.product.card.view-less': string;
33
34
  'pisell2.product.card.add.holder.button.text': (val: string) => string;
34
35
  'pisell2.product.card.add.holder.placeholder': (val: string) => string;
36
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
35
37
  };
36
38
  'zh-HK': {
37
39
  'pisell2.product.card.day': (val: number) => string;
@@ -49,6 +51,7 @@ declare const _default: {
49
51
  'pisell2.product.card.view-less': string;
50
52
  'pisell2.product.card.add.holder.button.text': (val: string) => string;
51
53
  'pisell2.product.card.add.holder.placeholder': (val: string) => string;
54
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
52
55
  };
53
56
  };
54
57
  export default _default;
@@ -24,6 +24,9 @@ export default {
24
24
  },
25
25
  'pisell2.product.card.add.holder.placeholder': function pisell2ProductCardAddHolderPlaceholder(val) {
26
26
  return "Please select ".concat(val || '');
27
+ },
28
+ 'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
29
+ return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
27
30
  }
28
31
  },
29
32
  'zh-CN': {
@@ -51,6 +54,9 @@ export default {
51
54
  },
52
55
  'pisell2.product.card.add.holder.placeholder': function pisell2ProductCardAddHolderPlaceholder(val) {
53
56
  return "\u8BF7\u9009\u62E9".concat(val || '');
57
+ },
58
+ 'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
59
+ return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u65F6") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u949F") : '');
54
60
  }
55
61
  },
56
62
  'zh-HK': {
@@ -78,6 +84,9 @@ export default {
78
84
  },
79
85
  'pisell2.product.card.add.holder.placeholder': function pisell2ProductCardAddHolderPlaceholder(val) {
80
86
  return "\u8ACB\u9078\u64C7".concat(val || '');
87
+ },
88
+ 'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
89
+ return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u6642") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u9418") : '');
81
90
  }
82
91
  }
83
92
  };
@@ -99,8 +99,18 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
99
99
  var startDateTime = "".concat(startDate.format('YYYY-MM-DD'), " ").concat(startTime);
100
100
  var endDateTime = "".concat(endDate.format('YYYY-MM-DD'), " ").concat(endTime);
101
101
  var _duration = dayjs(endDateTime).diff(dayjs(startDateTime), item === null || item === void 0 ? void 0 : item.duration_type);
102
- var _text = (item === null || item === void 0 ? void 0 : item.duration_type) === 'days' ? locales.getText('pisell2.product.card.day')(_duration) : locales.getText('pisell2.product.card.minute')(_duration);
103
- return "".concat(dateTime, " (").concat(_duration).concat(_text, ")");
102
+ var durationText = '';
103
+ if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'minutes') {
104
+ // 转为小时+分钟
105
+ var hours = Math.floor(_duration / 60);
106
+ var minutes = _duration % 60;
107
+ durationText = locales.getText('pisell2.product.card.hour.minute')(hours, minutes);
108
+ } else if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'days') {
109
+ durationText = locales.getText('pisell2.product.card.day')(_duration);
110
+ } else {
111
+ durationText = "".concat(_duration);
112
+ }
113
+ return "".concat(dateTime, " (").concat(durationText, ")");
104
114
  }
105
115
  var _format = isEn ? 'ddd, DD/MM/YYYY' : 'YYYY-MM-DD,ddd';
106
116
 
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const QRCode: (props: any) => JSX.Element;
2
3
  export default QRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from 'antd';
2
3
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
3
4
  export default BasicTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type RenderFieldsProps = {
3
4
  fields: string[];