@pisell/materials 1.0.955 → 1.0.957

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 (127) 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 +169 -153
  7. package/build/lowcode/render/default/view.js +22 -17
  8. package/build/lowcode/view.js +32 -27
  9. package/es/components/batch-editor/index.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +11 -1
  16. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +2 -2
  17. package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +25 -3
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  20. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  22. package/es/components/dataSourceComponents/fields/index.d.ts +9 -8
  23. package/es/components/date-picker/index.d.ts +1 -0
  24. package/es/components/filter/index.d.ts +1 -0
  25. package/es/components/page/index.d.ts +1 -0
  26. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  27. package/es/components/pisellInput/index.d.ts +1 -0
  28. package/es/components/pisellLoading/index.d.ts +1 -0
  29. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  30. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  31. package/es/components/pisellModal/components/index.d.ts +1 -0
  32. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
  33. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  34. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  35. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  36. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  37. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  38. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  39. package/es/components/select-time/index.d.ts +1 -0
  40. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  41. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  42. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  43. package/es/components/table/Actions/index.d.ts +1 -0
  44. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  45. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  46. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  50. package/es/components/table/Table/fields/index.d.ts +3 -2
  51. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  53. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  54. package/es/components/table/Table/fields/numberRange/Show/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/index.d.ts +1 -0
  57. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  58. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  59. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  61. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  62. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  66. package/es/components/table/Table/utils.d.ts +1 -1
  67. package/es/components/versionSelect/index.d.ts +1 -0
  68. package/lib/components/batch-editor/index.d.ts +1 -0
  69. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  70. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  71. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  72. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  73. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  74. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +10 -2
  75. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +2 -2
  76. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +29 -7
  77. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  78. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  79. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  80. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  81. package/lib/components/dataSourceComponents/fields/index.d.ts +9 -8
  82. package/lib/components/date-picker/index.d.ts +1 -0
  83. package/lib/components/filter/index.d.ts +1 -0
  84. package/lib/components/page/index.d.ts +1 -0
  85. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  86. package/lib/components/pisellInput/index.d.ts +1 -0
  87. package/lib/components/pisellLoading/index.d.ts +1 -0
  88. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  89. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  90. package/lib/components/pisellModal/components/index.d.ts +1 -0
  91. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
  92. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
  93. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
  94. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
  95. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  96. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  97. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  98. package/lib/components/select-time/index.d.ts +1 -0
  99. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  100. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  101. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  102. package/lib/components/table/Actions/index.d.ts +1 -0
  103. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  104. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  105. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  106. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  107. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  108. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  109. package/lib/components/table/Table/fields/index.d.ts +3 -2
  110. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  111. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  112. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  113. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  114. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  115. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  116. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  117. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  118. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  119. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  120. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  121. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  122. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  123. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  124. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  125. package/lib/components/table/Table/utils.d.ts +1 -1
  126. package/lib/components/versionSelect/index.d.ts +1 -0
  127. package/package.json +3 -3
@@ -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 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;
@@ -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: "button" | "link";
57
+ type: "link" | "button";
58
58
  items: OperationItem[];
59
59
  } | undefined;
60
60
  operationContent?: {
@@ -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;
@@ -82,7 +82,7 @@ export var useCountries = function useCountries() {
82
82
  });
83
83
  });
84
84
  }
85
- } else if (isH5 || isPc) {
85
+ } else if (isPc) {
86
86
  var _appHelper$utils2;
87
87
  var _codeList = appHelper === null || appHelper === void 0 || (_appHelper$utils2 = appHelper.utils) === null || _appHelper$utils2 === void 0 || (_appHelper$utils2 = _appHelper$utils2.store) === null || _appHelper$utils2 === void 0 || (_appHelper$utils2 = _appHelper$utils2.getState()) === null || _appHelper$utils2 === void 0 || (_appHelper$utils2 = _appHelper$utils2.country) === null || _appHelper$utils2 === void 0 ? void 0 : _appHelper$utils2.country;
88
88
  if (_codeList) {
@@ -92,6 +92,16 @@ export var useCountries = function useCountries() {
92
92
  });
93
93
  });
94
94
  }
95
+ } else if (isH5) {
96
+ var _appHelper$utils3;
97
+ var _codeList2 = appHelper === null || appHelper === void 0 || (_appHelper$utils3 = appHelper.utils) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.getStore()) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.getState()) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.country) === null || _appHelper$utils3 === void 0 ? void 0 : _appHelper$utils3.country;
98
+ if (_codeList2) {
99
+ return _codeList2.map(function (item) {
100
+ return _objectSpread(_objectSpread({}, item), {}, {
101
+ prefix: "+".concat(item.calling_code)
102
+ });
103
+ });
104
+ }
95
105
  }
96
106
  return data;
97
107
  }, [isShop, data]);
@@ -7,8 +7,8 @@ export interface Country {
7
7
  id: number;
8
8
  name: {
9
9
  en: string;
10
- "zh-CN": string;
11
- "zh-HK": string;
10
+ 'zh-CN': string;
11
+ 'zh-HK': string;
12
12
  original: string;
13
13
  };
14
14
  code: string;
@@ -10,10 +10,10 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
10
10
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
11
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
12
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
- import { useEffect, useMemo } from "react";
13
+ import { useEffect, useMemo } from 'react';
14
14
  import { useRequest } from 'ahooks';
15
15
  import { request } from "../../../table/utils";
16
- import { useIsShop } from "../../hooks/usePlatform";
16
+ import { useIsShop, useIsH5, useIsPc } from "../../hooks/usePlatform";
17
17
  import useEngineContext from "../../../../hooks/useEngineContext";
18
18
 
19
19
  /**
@@ -30,7 +30,7 @@ export var getCountryDataList = /*#__PURE__*/function () {
30
30
  isNocobase: true,
31
31
  fullResult: true,
32
32
  headers: {
33
- "x-data-source": "pisell2"
33
+ 'x-data-source': 'pisell2'
34
34
  }
35
35
  });
36
36
  case 2:
@@ -81,6 +81,8 @@ export var getShopCountryDataList = /*#__PURE__*/function () {
81
81
  }();
82
82
  export var useCountries = function useCountries() {
83
83
  var isShop = useIsShop();
84
+ var isH5 = useIsH5();
85
+ var isPc = useIsPc();
84
86
  var _useEngineContext = useEngineContext(),
85
87
  appHelper = _useEngineContext.appHelper,
86
88
  others = _objectWithoutProperties(_useEngineContext, _excluded);
@@ -124,6 +126,26 @@ export var useCountries = function useCountries() {
124
126
  prefix: "+".concat(item.calling_code)
125
127
  });
126
128
  });
129
+ } else if (isPc) {
130
+ var _appHelper$utils3;
131
+ var codeList = appHelper === null || appHelper === void 0 || (_appHelper$utils3 = appHelper.utils) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.store) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.getState()) === null || _appHelper$utils3 === void 0 || (_appHelper$utils3 = _appHelper$utils3.country) === null || _appHelper$utils3 === void 0 ? void 0 : _appHelper$utils3.country;
132
+ if (codeList) {
133
+ return codeList.map(function (item) {
134
+ return _objectSpread(_objectSpread({}, item), {}, {
135
+ prefix: "+".concat(item.calling_code)
136
+ });
137
+ });
138
+ }
139
+ } else if (isH5) {
140
+ var _appHelper$utils4;
141
+ var _codeList = appHelper === null || appHelper === void 0 || (_appHelper$utils4 = appHelper.utils) === null || _appHelper$utils4 === void 0 || (_appHelper$utils4 = _appHelper$utils4.getStore()) === null || _appHelper$utils4 === void 0 || (_appHelper$utils4 = _appHelper$utils4.getState()) === null || _appHelper$utils4 === void 0 || (_appHelper$utils4 = _appHelper$utils4.country) === null || _appHelper$utils4 === void 0 ? void 0 : _appHelper$utils4.country;
142
+ if (_codeList) {
143
+ return _codeList.map(function (item) {
144
+ return _objectSpread(_objectSpread({}, item), {}, {
145
+ prefix: "+".concat(item.calling_code)
146
+ });
147
+ });
148
+ }
127
149
  }
128
150
  return data;
129
151
  }, [isShop, data, shopData]);
@@ -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
  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
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CameraPopover: (props: {
2
3
  onLocalFileClick: () => void;
3
4
  onCameraChange: (file: any) => void;
@@ -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) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -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,11 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | 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
+ }) | 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> & {
69
68
  JSON: import("react").FC<any>;
70
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
70
  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 +77,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
78
77
  Subdomain: import("react").FC<import("antd").InputProps & {
79
78
  onChange: (value: string) => void;
80
79
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
81
- rootDomain: "custom" | "saas" | "xzero";
80
+ rootDomain: "custom" | "xzero" | "saas";
82
81
  customDomain?: string | undefined;
83
82
  value?: string | undefined;
84
83
  tenantId: string;
85
84
  name?: string | undefined;
86
85
  fieldKey?: string | undefined;
87
86
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
88
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
87
+ }) | (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<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
+ onChange: (value: string) => void;
101
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
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 { 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 { 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 { 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
  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 Holders: (props: any) => JSX.Element | null;
3
4
  export default Holders;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Resources: (props: any) => JSX.Element | null;
3
4
  export default Resources;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import 'dayjs/locale/zh-cn';
2
3
  import 'dayjs/locale/en';
3
4
  import 'dayjs/locale/zh-tw';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -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 { 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
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -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 { 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 { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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,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: {
@@ -197,12 +198,12 @@ export declare const fieldList: ({
197
198
  field_icon: string;
198
199
  field_name: string;
199
200
  field_type: string;
200
- default_value: string;
201
+ default_value: boolean;
201
202
  } | {
202
203
  field_icon: string;
203
204
  field_name: string;
204
205
  field_type: string;
205
- default_value: boolean;
206
+ default_value: string;
206
207
  } | {
207
208
  field_icon: string;
208
209
  field_name: string;
@@ -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
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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,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
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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" | "column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_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
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -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 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;
@@ -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: "button" | "link";
57
+ type: "link" | "button";
58
58
  items: OperationItem[];
59
59
  } | undefined;
60
60
  operationContent?: {
@@ -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;
@@ -75,7 +75,7 @@ var useCountries = () => {
75
75
  }
76
76
  }, [isShop]);
77
77
  const currentData = (0, import_react.useMemo)(() => {
78
- var _a, _b, _c, _d, _e, _f, _g, _h;
78
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
79
79
  debugger;
80
80
  if (isShop) {
81
81
  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;
@@ -85,7 +85,7 @@ var useCountries = () => {
85
85
  prefix: `+${item.calling_code}`
86
86
  }));
87
87
  }
88
- } else if (isH5 || isPc) {
88
+ } else if (isPc) {
89
89
  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;
90
90
  if (codeList) {
91
91
  return codeList.map((item) => ({
@@ -93,6 +93,14 @@ var useCountries = () => {
93
93
  prefix: `+${item.calling_code}`
94
94
  }));
95
95
  }
96
+ } else if (isH5) {
97
+ const codeList = (_l = (_k = (_j = (_i = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _i.getStore()) == null ? void 0 : _j.getState()) == null ? void 0 : _k.country) == null ? void 0 : _l.country;
98
+ if (codeList) {
99
+ return codeList.map((item) => ({
100
+ ...item,
101
+ prefix: `+${item.calling_code}`
102
+ }));
103
+ }
96
104
  }
97
105
  return data;
98
106
  }, [isShop, data]);