@pisell/materials 6.4.15 → 6.4.16

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 (197) 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 +22 -22
  6. package/build/lowcode/view.js +23 -23
  7. package/es/components/Pagination/index.d.ts +1 -1
  8. package/es/components/cardPro/index.js +10 -3
  9. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  10. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  11. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  17. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  18. package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +158 -22
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/index.d.ts +17 -18
  21. package/es/components/filter/index.d.ts +0 -1
  22. package/es/components/iconfont/index.js +1 -1
  23. package/es/components/list/index.d.ts +0 -1
  24. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  25. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  26. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  27. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  28. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  29. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  30. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  31. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  32. package/es/components/table/Actions/index.d.ts +0 -1
  33. package/es/components/table/BasicTable/index.d.ts +0 -1
  34. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  35. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  36. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  37. package/es/components/table/Table/fields/index.d.ts +2 -3
  38. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  39. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  40. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  41. package/es/components/table/Table/utils.d.ts +1 -1
  42. package/es/components/table/View/index.d.ts +0 -1
  43. package/es/locales/en-US.js +16 -1
  44. package/es/locales/zh-CN.js +16 -1
  45. package/es/locales/zh-TW.js +16 -1
  46. package/lib/components/Pagination/index.d.ts +1 -1
  47. package/lib/components/cardPro/index.js +3 -2
  48. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  49. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  50. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  51. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  52. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  53. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  54. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  55. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  56. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  57. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +182 -18
  58. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  59. package/lib/components/dataSourceComponents/fields/index.d.ts +17 -18
  60. package/lib/components/filter/index.d.ts +0 -1
  61. package/lib/components/iconfont/index.js +1 -1
  62. package/lib/components/list/index.d.ts +0 -1
  63. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  64. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  65. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  66. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  67. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  68. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  69. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  70. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  71. package/lib/components/table/Actions/index.d.ts +0 -1
  72. package/lib/components/table/BasicTable/index.d.ts +0 -1
  73. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  74. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  75. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  76. package/lib/components/table/Table/fields/index.d.ts +2 -3
  77. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  78. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  79. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  80. package/lib/components/table/Table/utils.d.ts +1 -1
  81. package/lib/components/table/View/index.d.ts +0 -1
  82. package/lib/locales/en-US.js +12 -1
  83. package/lib/locales/zh-CN.js +12 -1
  84. package/lib/locales/zh-TW.js +12 -1
  85. package/package.json +1 -1
  86. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  87. package/es/components/auto-resize-text/index.d.ts +0 -6
  88. package/es/components/cardPro/index.d.ts +0 -4
  89. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  90. package/es/components/iconfont/index.d.ts +0 -8
  91. package/es/components/keyboard/index.d.ts +0 -22
  92. package/es/components/pisell-config-provider/context.d.ts +0 -22
  93. package/es/components/pisell-config-provider/index.d.ts +0 -13
  94. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  95. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  96. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  97. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  98. package/es/components/pisellQRScanner/index.d.ts +0 -24
  99. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  100. package/es/components/pisellToast/index.d.ts +0 -17
  101. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  102. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  103. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  104. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  105. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  106. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  107. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  108. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  109. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  110. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  111. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  112. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  113. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  114. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  115. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  116. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  117. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  118. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  119. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  120. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  121. package/es/components/productCard/components/Action/index.d.ts +0 -3
  122. package/es/components/productCard/components/Header/index.d.ts +0 -3
  123. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  124. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  125. package/es/components/productCard/locales.d.ts +0 -84
  126. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
  127. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  128. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  129. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  130. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  131. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  132. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  133. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  134. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  135. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  136. package/es/components/virtual-keyboard/index.d.ts +0 -25
  137. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  138. package/es/components/virtualInput/index.d.ts +0 -24
  139. package/es/locales/en-US.d.ts +0 -297
  140. package/es/locales/zh-CN.d.ts +0 -292
  141. package/es/locales/zh-TW.d.ts +0 -292
  142. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  143. package/lib/components/auto-resize-text/index.d.ts +0 -6
  144. package/lib/components/cardPro/index.d.ts +0 -4
  145. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  146. package/lib/components/iconfont/index.d.ts +0 -8
  147. package/lib/components/keyboard/index.d.ts +0 -22
  148. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  149. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  150. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  151. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  152. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  153. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  154. package/lib/components/pisellQRScanner/index.d.ts +0 -24
  155. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  156. package/lib/components/pisellToast/index.d.ts +0 -17
  157. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  158. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  159. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  160. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  161. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  162. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  163. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  164. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  165. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  166. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  167. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  168. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  169. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  170. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  171. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  172. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  173. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  174. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  175. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  176. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  177. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  178. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  179. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  180. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  181. package/lib/components/productCard/locales.d.ts +0 -84
  182. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
  183. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  184. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  185. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  186. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  187. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  188. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  189. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  190. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  191. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  192. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  193. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  194. package/lib/components/virtualInput/index.d.ts +0 -24
  195. package/lib/locales/en-US.d.ts +0 -297
  196. package/lib/locales/zh-CN.d.ts +0 -292
  197. package/lib/locales/zh-TW.d.ts +0 -292
@@ -51,13 +51,14 @@ var CardPro = (props) => {
51
51
  isShowHead,
52
52
  className,
53
53
  coverHeight,
54
- badge
54
+ badge,
55
+ style
55
56
  } = props;
56
57
  return /* @__PURE__ */ import_react.default.createElement(
57
58
  import_antd.Card,
58
59
  {
59
60
  title: null,
60
- style: { padding: 0 },
61
+ style: { padding: 0, ...style },
61
62
  className: (0, import_classnames.default)(
62
63
  "pisell-cardPro-wrap",
63
64
  className,
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItem: (props: any) => JSX.Element;
3
2
  export default FormItem;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
3
2
  export default DataSourceImage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceQRCode: (props: any) => JSX.Element;
3
2
  export default DataSourceQRCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Drawer } from 'antd';
3
2
  import { OperationItem } from '../type';
4
3
  declare const useDrawerState: (operationContent?: {
@@ -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: number | boolean | JSX.Element | React.ReactFragment | (() => 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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: {
34
34
  dom: any;
@@ -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?: {
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
72
72
  useCustomAction: boolean;
73
73
  actionType: string;
74
74
  openMode: "modal" | "drawer";
75
- openContentSize: "small" | "middle" | "large";
75
+ openContentSize: "large" | "small" | "middle";
76
76
  openTitle: string;
77
77
  key: string;
78
78
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceTableProps } from '../type';
3
2
  declare type Params = {
4
3
  pagination?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -97,32 +97,196 @@ var useCountries = () => {
97
97
  }, [isShop]);
98
98
  const currentData = (0, import_react.useMemo)(() => {
99
99
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
100
+ let codeList = null;
100
101
  if (isShop) {
101
- return (((_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) || shopData).map((item) => ({
102
+ 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) || shopData;
103
+ } else if (isPc) {
104
+ 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;
105
+ } else if (isH5) {
106
+ 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;
107
+ }
108
+ if (isShop || isPc || isH5) {
109
+ codeList = (codeList == null ? void 0 : codeList.length) > 0 ? codeList : defaultData;
110
+ console.log("codeList", codeList);
111
+ return codeList.map((item) => ({
102
112
  ...item,
103
113
  prefix: `+${item.calling_code}`
104
114
  }));
105
- } else if (isPc) {
106
- 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;
107
- if (codeList) {
108
- return codeList.map((item) => ({
109
- ...item,
110
- prefix: `+${item.calling_code}`
111
- }));
112
- }
113
- } else if (isH5) {
114
- 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;
115
- if (codeList) {
116
- return codeList.map((item) => ({
117
- ...item,
118
- prefix: `+${item.calling_code}`
119
- }));
120
- }
121
115
  }
122
116
  return data;
123
- }, [isShop, data, shopData]);
117
+ }, [isShop, isPc, isH5, data, shopData]);
124
118
  return { data: currentData };
125
119
  };
120
+ var defaultData = [
121
+ {
122
+ name: "Mexico",
123
+ code: "MX",
124
+ calling_code: "52",
125
+ currency_code: "MXN"
126
+ },
127
+ {
128
+ name: "美国",
129
+ code: "US",
130
+ calling_code: "1",
131
+ currency_code: "USD"
132
+ },
133
+ {
134
+ name: "加拿大",
135
+ code: "CA",
136
+ calling_code: "1",
137
+ currency_code: "CAD"
138
+ },
139
+ {
140
+ name: "澳大利亚",
141
+ code: "AU",
142
+ calling_code: "61",
143
+ currency_code: "AUD"
144
+ },
145
+ {
146
+ name: "新西兰",
147
+ code: "NZ",
148
+ calling_code: "64",
149
+ currency_code: "NZD"
150
+ },
151
+ {
152
+ name: "新加坡",
153
+ code: "SG",
154
+ calling_code: "65",
155
+ currency_code: "SGD"
156
+ },
157
+ {
158
+ name: "香港特别行政区",
159
+ code: "HK",
160
+ calling_code: "852",
161
+ currency_code: "HKD"
162
+ },
163
+ {
164
+ name: "台湾",
165
+ code: "TW",
166
+ calling_code: "886",
167
+ currency_code: "TWD"
168
+ },
169
+ {
170
+ name: "中国",
171
+ code: "CN",
172
+ calling_code: "86",
173
+ currency_code: "AUD"
174
+ },
175
+ {
176
+ name: "日本",
177
+ code: "JP",
178
+ calling_code: "81",
179
+ currency_code: "JPY"
180
+ },
181
+ {
182
+ name: "韩国",
183
+ code: "KR",
184
+ calling_code: "82",
185
+ currency_code: "KRW"
186
+ },
187
+ {
188
+ name: "马来西亚",
189
+ code: "MY",
190
+ calling_code: "60",
191
+ currency_code: "USD"
192
+ },
193
+ {
194
+ name: "英国",
195
+ code: "GB",
196
+ calling_code: "44",
197
+ currency_code: "GBP"
198
+ },
199
+ {
200
+ name: "法国",
201
+ code: "FR",
202
+ calling_code: "33",
203
+ currency_code: "EUR"
204
+ },
205
+ {
206
+ name: "意大利",
207
+ code: "IT",
208
+ calling_code: "39",
209
+ currency_code: "EUR"
210
+ },
211
+ {
212
+ name: "Ireland",
213
+ code: "IE",
214
+ calling_code: "353",
215
+ currency_code: "EUR"
216
+ },
217
+ {
218
+ name: "Netherlands",
219
+ code: "NL",
220
+ calling_code: "31",
221
+ currency_code: "EUR"
222
+ },
223
+ {
224
+ name: "Germany",
225
+ code: "DE",
226
+ calling_code: "49",
227
+ currency_code: "EUR"
228
+ },
229
+ {
230
+ name: "Spain",
231
+ code: "ES",
232
+ calling_code: "34",
233
+ currency_code: "EUR"
234
+ },
235
+ {
236
+ name: "Finland",
237
+ code: "FI",
238
+ calling_code: "358",
239
+ currency_code: "EUR"
240
+ },
241
+ {
242
+ name: "Hungary",
243
+ code: "HU",
244
+ calling_code: "36",
245
+ currency_code: "HUF"
246
+ },
247
+ {
248
+ name: "Indonesia",
249
+ code: "ID",
250
+ calling_code: "62",
251
+ currency_code: "IDR"
252
+ },
253
+ {
254
+ name: "India",
255
+ code: "IND",
256
+ calling_code: "91",
257
+ currency_code: "INR"
258
+ },
259
+ {
260
+ name: "Nigeria",
261
+ code: "NG",
262
+ calling_code: "234",
263
+ currency_code: "NGN"
264
+ },
265
+ {
266
+ name: "Islamic Republic of Pakistan‎",
267
+ code: "PAK",
268
+ calling_code: "92",
269
+ currency_code: "PRK"
270
+ },
271
+ {
272
+ name: "Philippines",
273
+ code: "PH",
274
+ calling_code: "63",
275
+ currency_code: "PHP"
276
+ },
277
+ {
278
+ name: "Thailand",
279
+ code: "TH",
280
+ calling_code: "66",
281
+ currency_code: "THB"
282
+ },
283
+ {
284
+ name: "South Africa",
285
+ code: "ZA",
286
+ calling_code: "27",
287
+ currency_code: "ZAR"
288
+ }
289
+ ];
126
290
  // Annotate the CommonJS export names for ESM import in node:
127
291
  0 && (module.exports = {
128
292
  getCountryDataList,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
3
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -60,21 +59,7 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<any> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
- options?: any;
65
- optionSourceType?: "default" | "custom" | "api" | undefined;
66
- labelField: string;
67
- valueField: string;
68
- extraParams?: Record<string, any> | undefined;
69
- } & {
70
- dataSource?: any;
71
- }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
- } & {
74
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
- }) | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
76
- onChange: (value: string) => void;
77
- } & 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> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
78
63
  JSON: import("react").FC<any>;
79
64
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
80
65
  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>;
@@ -94,9 +79,23 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
94
79
  name?: string | undefined;
95
80
  fieldKey?: string | undefined;
96
81
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
97
- }) | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
82
+ }) | (import("react").FC<{}> & {
98
83
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
99
84
  } & {
100
85
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
101
- });
86
+ }) | 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<{}> & {
87
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
+ } & {
89
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
+ }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
+ options?: any;
92
+ optionSourceType?: "default" | "custom" | "api" | undefined;
93
+ labelField: string;
94
+ valueField: string;
95
+ extraParams?: Record<string, any> | undefined;
96
+ } & {
97
+ 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>;
102
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
35
35
  var import_icons = require("@ant-design/icons");
36
36
  var import_react = __toESM(require("react"));
37
37
  var MyIcon = (0, import_icons.createFromIconfontCN)({
38
- scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.14.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.16.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ExportFile: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare const ExportTable: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ImportLog: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare type ImportTableProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../types';
3
2
  import './index.less';
4
3
  declare type ExportImportProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, ModeType } from "../../../types";
3
2
  import "./index.less";
4
3
  declare type GallerySettingProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceGroupType } from "../../../types";
3
2
  declare type GroupProps = {
4
3
  setting: DataSourceGroupType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewType, ModeType } from "../../../types";
3
2
  declare type ViewModeProps = {
4
3
  view: GridViewType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterType } from "../../filter/types";
3
2
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from 'antd';
3
2
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
4
3
  export default BasicTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
3
2
  declare type CoverProps = {
4
3
  cover?: GallerySettingType["cover"];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -198,12 +197,12 @@ export declare const fieldList: ({
198
197
  field_icon: string;
199
198
  field_name: string;
200
199
  field_type: string;
201
- default_value: string;
200
+ default_value: boolean;
202
201
  } | {
203
202
  field_icon: string;
204
203
  field_name: string;
205
204
  field_type: string;
206
- default_value: boolean;
205
+ default_value: string;
207
206
  } | {
208
207
  field_icon: string;
209
208
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
4
3
  export default SortRow;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filters" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
158
+ }) => ("filters" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from '../types';
3
2
  declare const View: (props: GridViewProps & {
4
3
  setTableSetting: (values: Record<string, any>) => void;
@@ -348,5 +348,16 @@ var en_US_default = {
348
348
  "pisell-upload-camera-local-files": "Local Files",
349
349
  "pisell-upload-camera-capture": "Capture",
350
350
  "pisell-upload-camera-retake": "Retake",
351
- "pisell-upload-camera-use": "Use photo"
351
+ "pisell-upload-camera-use": "Use photo",
352
+ // 列表组件
353
+ "pisell-list-tab-group-default": "Field",
354
+ "pisell-list-empty-text-default": "No data available",
355
+ "pisell-list-load-more": "Load More",
356
+ "pisell-list-view-less": "View Less",
357
+ "pisell-list-pagination-total": (start, end, total) => `Showing ${start}-${end} of ${total} items`,
358
+ "pisell-list-scroll-down": "Scroll Down",
359
+ "pisell-list-scroll-right": "Scroll Right",
360
+ "pisell-list-pagination-page-of": (current, total) => `Page ${current} of ${total}`,
361
+ "pisell-list-pagination-previous": "Previous",
362
+ "pisell-list-pagination-next": "Next"
352
363
  };
@@ -339,5 +339,16 @@ var zh_CN_default = {
339
339
  "pisell-upload-camera-local-files": "本地文件",
340
340
  "pisell-upload-camera-capture": "拍摄/拍照",
341
341
  "pisell-upload-camera-retake": "重拍",
342
- "pisell-upload-camera-use": "使用照片"
342
+ "pisell-upload-camera-use": "使用照片",
343
+ // 列表组件
344
+ "pisell-list-tab-group-default": "字段",
345
+ "pisell-list-empty-text-default": "暂无数据",
346
+ "pisell-list-load-more": "查看更多",
347
+ "pisell-list-view-less": "查看更少",
348
+ "pisell-list-pagination-total": (start, end, total) => `显示第 ${start}-${end} 条,共 ${total} 条`,
349
+ "pisell-list-scroll-down": "向下滚动",
350
+ "pisell-list-scroll-right": "向右滚动",
351
+ "pisell-list-pagination-page-of": (current, total) => `第 ${current} 页 共 ${total} 页`,
352
+ "pisell-list-pagination-previous": "上一页",
353
+ "pisell-list-pagination-next": "下一页"
343
354
  };
@@ -340,5 +340,16 @@ var zh_TW_default = {
340
340
  "pisell-upload-camera-local-files": "本地文件",
341
341
  "pisell-upload-camera-capture": "拍攝/拍照",
342
342
  "pisell-upload-camera-retake": "重拍",
343
- "pisell-upload-camera-use": "使用照片"
343
+ "pisell-upload-camera-use": "使用照片",
344
+ // 列表組件
345
+ "pisell-list-tab-group-default": "字段",
346
+ "pisell-list-empty-text-default": "暫無數據",
347
+ "pisell-list-load-more": "查看更多",
348
+ "pisell-list-view-less": "查看更少",
349
+ "pisell-list-pagination-total": (start, end, total) => `顯示第 ${start}-${end} 條,共 ${total} 條`,
350
+ "pisell-list-scroll-down": "向下滾動",
351
+ "pisell-list-scroll-right": "向右滾動",
352
+ "pisell-list-pagination-page-of": (current, total) => `第 ${current} 頁 共 ${total} 頁`,
353
+ "pisell-list-pagination-previous": "上一頁",
354
+ "pisell-list-pagination-next": "下一頁"
344
355
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.4.15",
3
+ "version": "6.4.16",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",
@@ -1,20 +0,0 @@
1
- export declare type Options = {
2
- mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
3
- minFontSizePx?: number | undefined;
4
- maxFontSizePx?: number | undefined;
5
- fontSizePrecisionPx?: number | undefined;
6
- scrollToEnd?: boolean | undefined;
7
- };
8
- export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
9
- innerEl: HTMLElement;
10
- containerEl: HTMLElement;
11
- }): void;
12
- declare type DisconnectableFunction = {
13
- (): void;
14
- disconnect: () => void;
15
- };
16
- export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
17
- innerEl: HTMLElement;
18
- containerEl: HTMLElement;
19
- }): DisconnectableFunction;
20
- export {};