@pisell/materials 1.0.952 → 1.0.953

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 (185) 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 +9 -9
  7. package/build/lowcode/render/default/view.js +21 -21
  8. package/build/lowcode/view.js +22 -22
  9. package/es/components/auto-complete-number/index.d.ts +0 -1
  10. package/es/components/badge/index.d.ts +0 -1
  11. package/es/components/batch-editor/fields/index.d.ts +0 -1
  12. package/es/components/calendar/index.d.ts +0 -1
  13. package/es/components/checkbox/index.d.ts +0 -1
  14. package/es/components/classicLayout/index.d.ts +0 -1
  15. package/es/components/colorPicker/index.d.ts +0 -1
  16. package/es/components/config-provider/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  19. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  22. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +2 -2
  24. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +14 -2
  25. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  27. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  28. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/Upload/index.js +4 -3
  32. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  33. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  34. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -1
  35. package/es/components/dataSourceComponents/hooks/usePlatform.js +9 -1
  36. package/es/components/dropdown/index.d.ts +0 -1
  37. package/es/components/filter/components/items/index.d.ts +0 -1
  38. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  39. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  40. package/es/components/filter/components/items/text/index.d.ts +0 -1
  41. package/es/components/iconfont/index.d.ts +8 -0
  42. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  43. package/es/components/pisellCard/index.d.ts +0 -1
  44. package/es/components/pisellDatePicker/index.d.ts +0 -1
  45. package/es/components/pisellInput/index.d.ts +0 -1
  46. package/es/components/pisellUpload/index.d.ts +0 -1
  47. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  48. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  49. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  50. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  51. package/es/components/radio/index.d.ts +0 -1
  52. package/es/components/segmented/index.d.ts +0 -1
  53. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  54. package/es/components/select-time/index.d.ts +0 -1
  55. package/es/components/skeleton/index.d.ts +0 -1
  56. package/es/components/slider/index.d.ts +0 -1
  57. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  58. package/es/components/table/Summary/index.d.ts +0 -1
  59. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  60. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  61. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  62. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  63. package/es/components/table/Table/fields/index.d.ts +2 -2
  64. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  65. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  66. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  67. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  68. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  69. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  70. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  71. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  72. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  73. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  74. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  75. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  76. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  77. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  78. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  79. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  80. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  81. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  82. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  83. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  84. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  88. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  89. package/es/components/table/Table/utils.d.ts +1 -1
  90. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  91. package/es/components/time-picker/index.d.ts +0 -1
  92. package/es/components/upload/index.d.ts +0 -1
  93. package/es/components/versionSelect/index.d.ts +0 -1
  94. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  95. package/es/components/walletCard/Guest/index.d.ts +0 -1
  96. package/es/components/walletCard/Guide/index.d.ts +0 -1
  97. package/lib/components/auto-complete-number/index.d.ts +0 -1
  98. package/lib/components/badge/index.d.ts +0 -1
  99. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  100. package/lib/components/calendar/index.d.ts +0 -1
  101. package/lib/components/checkbox/index.d.ts +0 -1
  102. package/lib/components/classicLayout/index.d.ts +0 -1
  103. package/lib/components/colorPicker/index.d.ts +0 -1
  104. package/lib/components/config-provider/index.d.ts +0 -1
  105. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  106. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  107. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  108. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  109. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  110. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  111. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +2 -2
  112. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +21 -7
  113. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  114. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  115. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  116. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  117. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  118. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  119. package/lib/components/dataSourceComponents/fields/Upload/index.js +2 -1
  120. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  121. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  122. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -1
  123. package/lib/components/dataSourceComponents/hooks/usePlatform.js +12 -0
  124. package/lib/components/dropdown/index.d.ts +0 -1
  125. package/lib/components/filter/components/items/index.d.ts +0 -1
  126. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  127. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  128. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  129. package/lib/components/iconfont/index.d.ts +8 -0
  130. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  131. package/lib/components/pisellCard/index.d.ts +0 -1
  132. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  133. package/lib/components/pisellInput/index.d.ts +0 -1
  134. package/lib/components/pisellUpload/index.d.ts +0 -1
  135. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  136. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  137. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  138. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  139. package/lib/components/radio/index.d.ts +0 -1
  140. package/lib/components/segmented/index.d.ts +0 -1
  141. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  142. package/lib/components/select-time/index.d.ts +0 -1
  143. package/lib/components/skeleton/index.d.ts +0 -1
  144. package/lib/components/slider/index.d.ts +0 -1
  145. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  146. package/lib/components/table/Summary/index.d.ts +0 -1
  147. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  148. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  149. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  150. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  151. package/lib/components/table/Table/fields/index.d.ts +2 -2
  152. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  153. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  154. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  155. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  156. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  157. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  158. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  159. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  160. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  161. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  162. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  163. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  164. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  165. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  166. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  167. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  168. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  169. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  170. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  171. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  172. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  173. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  174. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  175. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  176. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  177. package/lib/components/table/Table/utils.d.ts +1 -1
  178. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  179. package/lib/components/time-picker/index.d.ts +0 -1
  180. package/lib/components/upload/index.d.ts +0 -1
  181. package/lib/components/versionSelect/index.d.ts +0 -1
  182. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  183. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  184. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  185. package/package.json +3 -3
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const summary: (props: any) => JSX.Element;
3
2
  export default summary;
@@ -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" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
164
+ }) => ("filters" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SortIconProps {
3
2
  sortOrder: null | "ascend" | "descend";
4
3
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TimePicker: (props: any) => JSX.Element;
3
2
  export default TimePicker;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Upload: (props: any) => JSX.Element;
3
2
  export default Upload;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const formatStringToTime: (value: string) => {
3
2
  valueArray: string[];
4
3
  valueString: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Guest: (props: any) => JSX.Element;
4
3
  export default Guest;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Guide: (props: any) => JSX.Element;
4
3
  export default Guide;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AutoCompleteProps, InputNumberProps } from "antd";
3
2
  interface AutoCompleteNumberProps {
4
3
  autoCompleteProps: AutoCompleteProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BadgeProps as OriginalBadgeprops } from 'antd';
3
2
  import './index.less';
4
3
  export interface Badgeprops extends OriginalBadgeprops {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  price: import("react").FC<import("./Price").PriceProps>;
4
3
  image: (props: import("./Image").ImageProps) => JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Calendar: (props: any) => JSX.Element;
3
2
  export default Calendar;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Checkbox: (props: any) => JSX.Element;
3
2
  export default Checkbox;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ClassicLayout: (props: any) => JSX.Element;
4
3
  export default ClassicLayout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from 'antd';
3
2
  declare const ColorPicker: (props: ColorPickerProps) => JSX.Element;
4
3
  export default ColorPicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
3
2
  import "dayjs/locale/zh-cn";
4
3
  export interface ConfigProviderProps extends OriginalConfigProviderProps {
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
54
54
  width: number;
55
55
  align: "center" | "left" | "right";
56
56
  fixed: false | "left" | "right";
57
- type: "link" | "button";
57
+ type: "button" | "link";
58
58
  items: OperationItem[];
59
59
  } | undefined;
60
60
  operationContent?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const ColorPickerReadPretty: (props: ColorPickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DateRangePickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconSelectProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const IconSelectReadPretty: (props: IconSelectProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -6,8 +6,8 @@ export interface Country {
6
6
  id: number;
7
7
  name: {
8
8
  en: string;
9
- "zh-CN": string;
10
- "zh-HK": string;
9
+ 'zh-CN': string;
10
+ 'zh-HK': string;
11
11
  original: string;
12
12
  };
13
13
  code: string;
@@ -39,13 +39,17 @@ var import_utils = require("../../../table/utils");
39
39
  var import_usePlatform = require("../../hooks/usePlatform");
40
40
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
41
41
  var getCountryDataList = async () => {
42
- const { data } = await import_utils.request.getRequest().get(`/country:list`, {}, {
43
- isNocobase: true,
44
- fullResult: true,
45
- headers: {
46
- "x-data-source": "pisell2"
42
+ const { data } = await import_utils.request.getRequest().get(
43
+ `/country:list`,
44
+ {},
45
+ {
46
+ isNocobase: true,
47
+ fullResult: true,
48
+ headers: {
49
+ "x-data-source": "pisell2"
50
+ }
47
51
  }
48
- });
52
+ );
49
53
  return data.map((item) => ({
50
54
  ...item,
51
55
  prefix: `+${item.calling_code}`
@@ -53,6 +57,8 @@ var getCountryDataList = async () => {
53
57
  };
54
58
  var useCountries = () => {
55
59
  const isShop = (0, import_usePlatform.useIsShop)();
60
+ const isH5 = (0, import_usePlatform.useIsH5)();
61
+ const isPc = (0, import_usePlatform.useIsPc)();
56
62
  const { appHelper } = (0, import_useEngineContext.default)();
57
63
  const { data, run } = (0, import_ahooks.useRequest)(getCountryDataList, {
58
64
  cacheKey: "phone-countries",
@@ -68,7 +74,7 @@ var useCountries = () => {
68
74
  }
69
75
  }, [isShop]);
70
76
  const currentData = (0, import_react.useMemo)(() => {
71
- var _a, _b, _c, _d;
77
+ var _a, _b, _c, _d, _e, _f, _g, _h;
72
78
  if (isShop) {
73
79
  const codeList = (_d = (_c = (_b = (_a = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a.store) == null ? void 0 : _b.getState()) == null ? void 0 : _c.global) == null ? void 0 : _d.codeList;
74
80
  if (codeList) {
@@ -77,6 +83,14 @@ var useCountries = () => {
77
83
  prefix: `+${item.calling_code}`
78
84
  }));
79
85
  }
86
+ } else if (isH5 || isPc) {
87
+ const codeList = (_h = (_g = (_f = (_e = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _e.store) == null ? void 0 : _f.getState()) == null ? void 0 : _g.country) == null ? void 0 : _h.country;
88
+ if (codeList) {
89
+ return codeList.map((item) => ({
90
+ ...item,
91
+ prefix: `+${item.calling_code}`
92
+ }));
93
+ }
80
94
  }
81
95
  return data;
82
96
  }, [isShop, data]);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  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" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextAreaProps } from "./type";
3
2
  import "./ReadPretty.less";
4
3
  declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UrlProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  export declare const formatUrl: (url: string) => string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TimePickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TranslationProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
@@ -55,8 +55,9 @@ var Upload = (0, import_utils.withFormItem)(import_WithMode.default, {
55
55
  }
56
56
  }
57
57
  };
58
+ return { rules: [...(others == null ? void 0 : others.rules) || [], rule] };
58
59
  }
59
- return { rules: [...(others == null ? void 0 : others.rules) || [], rule] };
60
+ return {};
60
61
  }
61
62
  });
62
63
  var Upload_default = Upload;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -19,7 +19,7 @@ declare const formFieldMap: {
19
19
  Subdomain: import("react").FC<import("antd").InputProps & {
20
20
  onChange: (value: string) => void;
21
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
23
23
  customDomain?: string | undefined;
24
24
  value?: string | undefined;
25
25
  tenantId: string;
@@ -59,11 +59,13 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
69
  JSON: import("react").FC<any>;
68
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
69
71
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -76,14 +78,14 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
76
78
  Subdomain: import("react").FC<import("antd").InputProps & {
77
79
  onChange: (value: string) => void;
78
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
80
82
  customDomain?: string | undefined;
81
83
  value?: string | undefined;
82
84
  tenantId: string;
83
85
  name?: string | undefined;
84
86
  fieldKey?: string | undefined;
85
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
86
- }) | (import("react").FC<{}> & {
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
90
  } & {
89
91
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -95,7 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
95
97
  extraParams?: Record<string, any> | undefined;
96
98
  } & {
97
99
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
- onChange: (value: string) => void;
100
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./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
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,5 @@
1
1
  declare const usePlatform: () => any;
2
2
  declare const useIsShop: () => boolean;
3
- export { usePlatform, useIsShop };
3
+ declare const useIsH5: () => boolean;
4
+ declare const useIsPc: () => boolean;
5
+ export { usePlatform, useIsShop, useIsH5, useIsPc };
@@ -29,6 +29,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/dataSourceComponents/hooks/usePlatform.ts
30
30
  var usePlatform_exports = {};
31
31
  __export(usePlatform_exports, {
32
+ useIsH5: () => useIsH5,
33
+ useIsPc: () => useIsPc,
32
34
  useIsShop: () => useIsShop,
33
35
  usePlatform: () => usePlatform
34
36
  });
@@ -44,8 +46,18 @@ var useIsShop = () => {
44
46
  const platform = usePlatform();
45
47
  return platform === "shop";
46
48
  };
49
+ var useIsH5 = () => {
50
+ const platform = usePlatform();
51
+ return platform === "h5";
52
+ };
53
+ var useIsPc = () => {
54
+ const platform = usePlatform();
55
+ return platform === "pc";
56
+ };
47
57
  // Annotate the CommonJS export names for ESM import in node:
48
58
  0 && (module.exports = {
59
+ useIsH5,
60
+ useIsPc,
49
61
  useIsShop,
50
62
  usePlatform
51
63
  });
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Dropdown: (props: any) => JSX.Element;
3
2
  export default Dropdown;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: () => JSX.Element;
3
2
  export default Text;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: (props: any) => JSX.Element;
3
2
  export default Text;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -0,0 +1,8 @@
1
+ import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
+ import React from 'react';
3
+ interface IconFontProps extends IconComponentProps {
4
+ type: string;
5
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
+ }
7
+ declare const IconFont: React.FC<IconFontProps>;
8
+ export default IconFont;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellCardProps extends CardProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PisellDatePicker: (props: any) => JSX.Element;
3
2
  export default PisellDatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { UploadProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellUploadProps extends UploadProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Holders: (props: any) => JSX.Element | null;
4
3
  export default Holders;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: (props: any) => JSX.Element | null;
4
3
  export default Resources;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Divider: ({ type }: any) => JSX.Element;
4
3
  export default Divider;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
3
  style?: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Radio: (props: any) => JSX.Element;
3
2
  export default Radio;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SegmentedProps } from "antd";
3
2
  import "./index.less";
4
3
  declare const Segmented: (props: SegmentedProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Skeleton: (props: any) => JSX.Element;
3
2
  export default Skeleton;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SliderOuter: (props: any) => JSX.Element;
3
2
  export default SliderOuter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
  import "./index.less";
4
3
  interface InlineMenuProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Summary: ({ summary }: any) => JSX.Element | null;
4
3
  export default Summary;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -197,12 +197,12 @@ export declare const fieldList: ({
197
197
  field_icon: string;
198
198
  field_name: string;
199
199
  field_type: string;
200
- default_value: boolean;
200
+ default_value: string;
201
201
  } | {
202
202
  field_icon: string;
203
203
  field_name: string;
204
204
  field_type: string;
205
- default_value: string;
205
+ default_value: boolean;
206
206
  } | {
207
207
  field_icon: string;
208
208
  field_name: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;