@pisell/materials 1.0.953 → 1.0.954

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 (169) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/checkbox/index.d.ts +1 -0
  8. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  9. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  10. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  11. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  12. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  13. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  14. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +2 -1
  16. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +35 -23
  17. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  20. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  22. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/index.d.ts +12 -11
  25. package/es/components/date-picker/index.d.ts +1 -0
  26. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  27. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  28. package/es/components/pisellModal/components/index.d.ts +1 -0
  29. package/es/components/pisellUpload/index.d.ts +1 -0
  30. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  31. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  32. package/es/components/radio/index.d.ts +1 -0
  33. package/es/components/select-time/RightPanel/index.d.ts +1 -0
  34. package/es/components/select-time/index.d.ts +1 -0
  35. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  36. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  37. package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
  38. package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  39. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  40. package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
  41. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  42. package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  43. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  44. package/es/components/table/Table/fields/index.d.ts +1 -0
  45. package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  50. package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  51. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  53. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  54. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  55. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  56. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  57. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  58. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  59. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  61. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  62. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  68. package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
  73. package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
  74. package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  75. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  76. package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
  77. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  78. package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  79. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  80. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  81. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  84. package/es/components/table/Table/utils.d.ts +1 -1
  85. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  86. package/es/utils/index.d.ts +1 -1
  87. package/es/utils/platform.d.ts +1 -1
  88. package/lib/components/checkbox/index.d.ts +1 -0
  89. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  90. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  91. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  92. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  93. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  94. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  95. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  96. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +2 -1
  97. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +33 -16
  98. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  99. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  100. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  101. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  102. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  103. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  104. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  105. package/lib/components/dataSourceComponents/fields/index.d.ts +12 -11
  106. package/lib/components/date-picker/index.d.ts +1 -0
  107. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  108. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  109. package/lib/components/pisellModal/components/index.d.ts +1 -0
  110. package/lib/components/pisellUpload/index.d.ts +1 -0
  111. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  112. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  113. package/lib/components/radio/index.d.ts +1 -0
  114. package/lib/components/select-time/RightPanel/index.d.ts +1 -0
  115. package/lib/components/select-time/index.d.ts +1 -0
  116. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  117. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  118. package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
  119. package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  120. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  121. package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
  122. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  123. package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  124. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  125. package/lib/components/table/Table/fields/index.d.ts +1 -0
  126. package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
  127. package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  128. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  129. package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
  130. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  131. package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  132. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  133. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  134. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  135. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  136. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  137. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  138. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  139. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  140. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  141. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  142. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  143. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  144. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  145. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  146. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  147. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  148. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  149. package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
  150. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  151. package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  152. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  153. package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
  154. package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
  155. package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  156. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  157. package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
  158. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  159. package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  160. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  161. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  162. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  163. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  164. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  165. package/lib/components/table/Table/utils.d.ts +1 -1
  166. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  167. package/lib/utils/index.d.ts +1 -1
  168. package/lib/utils/platform.d.ts +1 -1
  169. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -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;
@@ -161,7 +161,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
161
161
  sort?: SortType | undefined;
162
162
  mode: "" | "localStorage" | "remote";
163
163
  currentViewMode: ModeType;
164
- }) => ("filters" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
164
+ }) => ("filters" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
165
165
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
166
166
  export declare const stringify: (obj: Record<string, any>) => string;
167
167
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const formatStringToTime: (value: string) => {
2
3
  valueArray: string[];
3
4
  valueString: string;
@@ -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 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Checkbox: (props: any) => JSX.Element;
2
3
  export default Checkbox;
@@ -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;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
22
+ title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
31
+ subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: {
34
34
  dom: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ColorPickerProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const ColorPickerReadPretty: (props: ColorPickerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DateRangePickerProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconSelectProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const IconSelectReadPretty: (props: IconSelectProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { InputProps } from 'antd';
3
- import { ModeType } from "../../dataSourceForm/type";
3
+ import { ModeType } from '../../dataSourceForm/type';
4
4
  declare type PhoneValue = string | {
5
5
  phone: string;
6
6
  countryCallingCode: string;
7
+ countryCode?: string;
7
8
  };
8
9
  export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
9
10
  renderMode: ModeType;
@@ -42,7 +42,13 @@ var import_utils2 = require("../../dataSourceForm/utils");
42
42
  var import_useTranslationOriginal = __toESM(require("../../../../hooks/useTranslationOriginal"));
43
43
  var import_useSetRequest = __toESM(require("../../../../hooks/useSetRequest"));
44
44
  var { Option } = import_select.default;
45
- var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat = "string", ...props }) => {
45
+ var MobileNumberInput = ({
46
+ value: propsValue,
47
+ onChange,
48
+ disabled,
49
+ returnFormat = "string",
50
+ ...props
51
+ }) => {
46
52
  (0, import_useSetRequest.default)();
47
53
  const { data: countries = [] } = (0, import_serve.useCountries)();
48
54
  const translationOriginal = (0, import_useTranslationOriginal.default)();
@@ -52,14 +58,15 @@ var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
52
58
  }
53
59
  return propsValue;
54
60
  }, [propsValue]);
55
- const handleChange = (prefix, phoneNumber2) => {
61
+ const handleChange = (prefix, phoneNumber2, countryCode2) => {
56
62
  if (returnFormat === "string") {
57
63
  const newValue = phoneNumber2 ? `${prefix}${phoneNumber2}` : "";
58
64
  onChange == null ? void 0 : onChange(newValue);
59
65
  } else {
60
66
  onChange == null ? void 0 : onChange({
61
67
  phone: phoneNumber2,
62
- countryCallingCode: prefix
68
+ countryCallingCode: prefix,
69
+ countryCode: countryCode2
63
70
  });
64
71
  }
65
72
  };
@@ -71,13 +78,21 @@ var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
71
78
  } else if ("phone" in val) {
72
79
  srtValue = `${val.countryCallingCode || ""}${val.phone || ""}`;
73
80
  }
74
- const matchedPrefix = countries.find(
75
- (country) => srtValue.startsWith(country.prefix)
76
- );
77
- if (matchedPrefix) {
81
+ let matchedContry = null;
82
+ if (!(0, import_utils.isString)(val) && (val == null ? void 0 : val.countryCode)) {
83
+ matchedContry = countries.find(
84
+ (country) => (country == null ? void 0 : country.code) === (val == null ? void 0 : val.countryCode)
85
+ );
86
+ }
87
+ if (!matchedContry) {
88
+ matchedContry = countries.find(
89
+ (country) => srtValue.startsWith(country.prefix)
90
+ );
91
+ }
92
+ if (matchedContry) {
78
93
  return {
79
- countryCode: matchedPrefix.code,
80
- phoneNumber: srtValue.slice(matchedPrefix.prefix.length)
94
+ countryCode: matchedContry.code,
95
+ phoneNumber: srtValue.slice(matchedContry.prefix.length)
81
96
  };
82
97
  }
83
98
  return {
@@ -102,11 +117,9 @@ var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
102
117
  }, [value, countries]);
103
118
  const handleCountryChange = (value2) => {
104
119
  setCountryCode(value2);
105
- const selectedCountry = countries.find(
106
- (c) => c.code === value2
107
- );
120
+ const selectedCountry = countries.find((c) => c.code === value2);
108
121
  const prefix = (selectedCountry == null ? void 0 : selectedCountry.prefix) || "";
109
- handleChange(prefix, phoneNumber);
122
+ handleChange(prefix, phoneNumber, selectedCountry == null ? void 0 : selectedCountry.code);
110
123
  setTimeout(() => {
111
124
  const formInstance = props.form;
112
125
  const fieldName = props.fieldKey;
@@ -122,7 +135,7 @@ var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
122
135
  (c) => c.code === countryCode
123
136
  );
124
137
  const prefix = (selectedCountry == null ? void 0 : selectedCountry.prefix) || "";
125
- handleChange(prefix, cleanNumber);
138
+ handleChange(prefix, cleanNumber, selectedCountry == null ? void 0 : selectedCountry.code);
126
139
  if (!cleanNumber) {
127
140
  const formInstance = props.form;
128
141
  const fieldName = props.fieldKey;
@@ -156,7 +169,8 @@ var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
156
169
  const prefix = (selectedCountry == null ? void 0 : selectedCountry.prefix) || "";
157
170
  return {
158
171
  phone: phoneNumber || "",
159
- countryCallingCode: prefix
172
+ countryCallingCode: prefix,
173
+ countryCode
160
174
  };
161
175
  }, [countryCode, phoneNumber, countries]);
162
176
  const handleBlur = () => {
@@ -198,5 +212,8 @@ var MobileNumberInput = ({ value: propsValue, onChange, disabled, returnFormat =
198
212
  }
199
213
  ));
200
214
  };
201
- var MobileNumberInputWithMode = (0, import_utils2.withMode)(MobileNumberInput, import_ReadPretty.default);
215
+ var MobileNumberInputWithMode = (0, import_utils2.withMode)(
216
+ MobileNumberInput,
217
+ import_ReadPretty.default
218
+ );
202
219
  var WithMode_default = MobileNumberInputWithMode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const InputReadPretty: (props: InputProps) => 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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TextAreaProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UrlProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  export declare const formatUrl: (url: string) => string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TimePickerProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TranslationProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CameraPopover: (props: {
2
3
  onLocalFileClick: () => void;
3
4
  onCameraChange: (file: any) => void;
@@ -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;
@@ -59,13 +60,7 @@ 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>;
64
- } & {
65
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
- onChange: (value: string) => void;
68
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
69
64
  JSON: import("react").FC<any>;
70
65
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
66
  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,14 +73,18 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
73
  Subdomain: import("react").FC<import("antd").InputProps & {
79
74
  onChange: (value: string) => void;
80
75
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
81
- rootDomain: "custom" | "saas" | "xzero";
76
+ rootDomain: "custom" | "xzero" | "saas";
82
77
  customDomain?: string | undefined;
83
78
  value?: string | undefined;
84
79
  tenantId: string;
85
80
  name?: string | undefined;
86
81
  fieldKey?: string | undefined;
87
82
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
83
+ }) | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
84
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
85
+ } & {
86
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
87
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
89
88
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
89
  } & {
91
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
96
  extraParams?: Record<string, any> | undefined;
98
97
  } & {
99
98
  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>;
99
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
+ onChange: (value: string) => void;
101
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
102
  export { getFieldComponent, formFieldMap };
@@ -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 { 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 type { UploadProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface PisellUploadProps extends UploadProps {
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Radio: (props: any) => JSX.Element;
2
3
  export default Radio;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: string;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './PopoverContent.less';
2
3
  declare type FieldType = string | number;
3
4
  export declare type GroupValue = {
@@ -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 Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;