@pisell/materials 3.3.64 → 3.3.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +4 -4
  6. package/build/lowcode/preview.js +150 -164
  7. package/build/lowcode/render/default/view.js +27 -40
  8. package/build/lowcode/view.js +32 -45
  9. package/es/components/appVersionControl/index.d.ts +4 -0
  10. package/es/components/cardPro/index.d.ts +3 -0
  11. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  12. package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -1
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  17. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  18. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  19. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  20. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  21. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  22. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  23. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  24. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  25. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  26. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  27. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  28. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  29. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  30. package/es/components/drag-sort-tree/index.d.ts +4 -0
  31. package/es/components/iconfont/index.d.ts +8 -0
  32. package/es/components/iconfont/index.js +1 -1
  33. package/es/components/login-and-register/index.d.ts +82 -0
  34. package/es/components/page/index.d.ts +5 -0
  35. package/es/components/pisell-config-provider/context.d.ts +20 -0
  36. package/es/components/pisell-config-provider/index.d.ts +12 -0
  37. package/es/components/pisellAdjustPrice/index.d.ts +9 -0
  38. package/es/components/pisellCardList/index.d.ts +73 -0
  39. package/es/components/pisellCheckboxGroup/index.d.ts +37 -0
  40. package/es/components/pisellEmpty/index.d.ts +19 -0
  41. package/es/components/pisellGoodPassCard/index.d.ts +49 -0
  42. package/es/components/pisellQRScanner/index.d.ts +37 -0
  43. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  44. package/es/components/pisellText/index.d.ts +8 -0
  45. package/es/components/pisellToast/index.d.ts +16 -0
  46. package/es/components/pisellWalletPassCard/index.d.ts +85 -0
  47. package/es/components/productCard/components/Action/index.d.ts +3 -0
  48. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  49. package/es/components/productCard/components/Header/index.d.ts +3 -0
  50. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  51. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  52. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  53. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  54. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  55. package/es/components/productCard/components/Time/index.d.ts +3 -0
  56. package/es/components/productCard/index.d.ts +5 -0
  57. package/es/components/productCard/locales.d.ts +84 -0
  58. package/es/components/select/index.d.ts +9 -0
  59. package/es/components/sortableList/index.d.ts +11 -0
  60. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  61. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  62. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  63. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  64. package/es/components/table/Gallery/index.d.ts +5 -0
  65. package/es/components/table/Table/AddFieldModal/index.d.ts +3 -0
  66. package/es/components/table/Table/fields/index.d.ts +2 -2
  67. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  68. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  69. package/es/components/table/Table/index.d.ts +4 -0
  70. package/es/components/table/Table/utils.d.ts +161 -0
  71. package/es/components/table/hooks/useTableSetting.d.ts +21 -0
  72. package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
  73. package/es/components/table/index.d.ts +4 -0
  74. package/es/components/table/serve.d.ts +13 -0
  75. package/es/components/table/types.d.ts +268 -0
  76. package/es/components/tabs/index.d.ts +16 -0
  77. package/es/components/translation/index.d.ts +14 -0
  78. package/es/components/versionModal/index.d.ts +23 -0
  79. package/es/components/virtual-keyboard/Amount/index.d.ts +22 -0
  80. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +11 -0
  81. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  82. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  83. package/es/components/virtual-keyboard/Number/index.d.ts +13 -0
  84. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +11 -0
  85. package/es/components/virtual-keyboard/index.d.ts +14 -0
  86. package/es/components/walletCard/index.d.ts +71 -0
  87. package/es/index.d.ts +141 -0
  88. package/es/locales/en-US.d.ts +290 -0
  89. package/es/locales/zh-CN.d.ts +285 -0
  90. package/es/locales/zh-TW.d.ts +285 -0
  91. package/es/utils/index.d.ts +1 -1
  92. package/es/utils/platform.d.ts +1 -1
  93. package/lib/components/appVersionControl/index.d.ts +4 -0
  94. package/lib/components/cardPro/index.d.ts +3 -0
  95. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  96. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  97. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  98. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  99. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  100. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  101. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  102. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  103. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +2 -0
  104. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  105. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  106. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  107. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  108. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  109. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  110. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  111. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  112. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  113. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  114. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  115. package/lib/components/iconfont/index.d.ts +8 -0
  116. package/lib/components/iconfont/index.js +1 -1
  117. package/lib/components/login-and-register/index.d.ts +82 -0
  118. package/lib/components/page/index.d.ts +5 -0
  119. package/lib/components/pisell-config-provider/context.d.ts +20 -0
  120. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  121. package/lib/components/pisellAdjustPrice/index.d.ts +9 -0
  122. package/lib/components/pisellCardList/index.d.ts +73 -0
  123. package/lib/components/pisellCheckboxGroup/index.d.ts +37 -0
  124. package/lib/components/pisellEmpty/index.d.ts +19 -0
  125. package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
  126. package/lib/components/pisellQRScanner/index.d.ts +37 -0
  127. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  128. package/lib/components/pisellText/index.d.ts +8 -0
  129. package/lib/components/pisellToast/index.d.ts +16 -0
  130. package/lib/components/pisellWalletPassCard/index.d.ts +85 -0
  131. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  132. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  133. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  134. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  135. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  136. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  137. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  138. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  139. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  140. package/lib/components/productCard/index.d.ts +5 -0
  141. package/lib/components/productCard/locales.d.ts +84 -0
  142. package/lib/components/select/index.d.ts +9 -0
  143. package/lib/components/sortableList/index.d.ts +11 -0
  144. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  145. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  146. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  147. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  148. package/lib/components/table/Gallery/index.d.ts +5 -0
  149. package/lib/components/table/Table/AddFieldModal/index.d.ts +3 -0
  150. package/lib/components/table/Table/fields/index.d.ts +2 -2
  151. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  152. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  153. package/lib/components/table/Table/index.d.ts +4 -0
  154. package/lib/components/table/Table/utils.d.ts +161 -0
  155. package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
  156. package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
  157. package/lib/components/table/index.d.ts +4 -0
  158. package/lib/components/table/serve.d.ts +13 -0
  159. package/lib/components/table/types.d.ts +268 -0
  160. package/lib/components/tabs/index.d.ts +16 -0
  161. package/lib/components/translation/index.d.ts +14 -0
  162. package/lib/components/versionModal/index.d.ts +23 -0
  163. package/lib/components/virtual-keyboard/Amount/index.d.ts +22 -0
  164. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +11 -0
  165. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  166. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  167. package/lib/components/virtual-keyboard/Number/index.d.ts +13 -0
  168. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +11 -0
  169. package/lib/components/virtual-keyboard/index.d.ts +14 -0
  170. package/lib/components/walletCard/index.d.ts +71 -0
  171. package/lib/index.d.ts +141 -0
  172. package/lib/locales/en-US.d.ts +290 -0
  173. package/lib/locales/zh-CN.d.ts +285 -0
  174. package/lib/locales/zh-TW.d.ts +285 -0
  175. package/lib/utils/index.d.ts +1 -1
  176. package/lib/utils/platform.d.ts +1 -1
  177. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
2
+ dataSourceKey: string | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
4
4
  };
5
5
  export default useDataSourceKey;
@@ -0,0 +1,38 @@
1
+ import { Drawer } from 'antd';
2
+ import { OperationItem } from '../type';
3
+ declare const useDrawerState: (operationContent?: {
4
+ [key: string]: import("react").ReactNode;
5
+ } | undefined) => {
6
+ drawerVisible: boolean;
7
+ setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
8
+ openDrawer: (item: OperationItem) => void;
9
+ closeDrawer: () => void;
10
+ drawerContent: import("react").ReactNode;
11
+ Container: {
12
+ (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
13
+ confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
14
+ destroy: () => void;
15
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
16
+ };
17
+ info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
18
+ destroy: () => void;
19
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ };
21
+ error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
22
+ destroy: () => void;
23
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
24
+ };
25
+ warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
26
+ warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
27
+ destroy: () => void;
28
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
29
+ };
30
+ success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
31
+ destroy: () => void;
32
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
+ };
34
+ Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
35
+ } | typeof Drawer;
36
+ containerProps: {};
37
+ };
38
+ export default useDrawerState;
@@ -0,0 +1,100 @@
1
+ import React from 'react';
2
+ import { DataSourceTableProps } from '../type';
3
+ import { OperationItem } from '../type';
4
+ interface UseTablePropsProps {
5
+ data: any;
6
+ originProps: DataSourceTableProps;
7
+ openDrawer: (type: OperationItem) => void;
8
+ closeDrawer: () => void;
9
+ refreshData: () => void;
10
+ handleFilterChange: (changedFields: any, allFields: any) => void;
11
+ tableRef: any;
12
+ getInitialValues: () => Record<string, any>;
13
+ }
14
+ /**
15
+ * 处理table的props
16
+ * 转换title
17
+ * @param props
18
+ * @returns
19
+ */
20
+ declare const useTableProps: (props: UseTablePropsProps) => {
21
+ currentComponentId: any;
22
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
23
+ pagination: {
24
+ total: number;
25
+ current: number;
26
+ pageSize: number;
27
+ size: string;
28
+ showSizeChanger: boolean;
29
+ };
30
+ columns: import("./useColumns").Column[];
31
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
32
+ buttons: any[] | null;
33
+ filter: {
34
+ dom: any;
35
+ items: any;
36
+ } | null;
37
+ onRow: (record: any) => any;
38
+ actionButtons: any[] | null;
39
+ __id?: string | undefined;
40
+ currentSettingKey?: string | undefined;
41
+ titleButtons?: {
42
+ show: boolean;
43
+ maxCount: number;
44
+ items: OperationItem[];
45
+ } | undefined;
46
+ tableButtons?: {
47
+ show: boolean;
48
+ maxCount: number;
49
+ items: OperationItem[];
50
+ } | undefined;
51
+ operation?: {
52
+ show: boolean;
53
+ title: string;
54
+ width: number;
55
+ align: "center" | "left" | "right";
56
+ fixed: false | "left" | "right";
57
+ type: "link" | "button";
58
+ items: OperationItem[];
59
+ } | undefined;
60
+ operationContent?: {
61
+ [key: string]: React.ReactNode;
62
+ } | undefined;
63
+ dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
64
+ search?: {
65
+ show: boolean;
66
+ placeholder: string;
67
+ } | undefined;
68
+ __designMode: string;
69
+ componentId: string;
70
+ clickToDetail?: {
71
+ show: boolean;
72
+ useCustomAction: boolean;
73
+ actionType: string;
74
+ openMode: "modal" | "drawer";
75
+ openContentSize: "small" | "middle" | "large";
76
+ openTitle: string;
77
+ key: string;
78
+ } | undefined;
79
+ filterBy?: Record<string, any> | undefined;
80
+ sortBy: string;
81
+ tabs?: {
82
+ show: boolean;
83
+ type: string;
84
+ items: {
85
+ name: string;
86
+ filterBy: Record<string, any>;
87
+ sortBy: string;
88
+ }[];
89
+ } | undefined;
90
+ onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
91
+ extraParams?: {
92
+ list?: Record<string, any> | undefined;
93
+ get?: Record<string, any> | undefined;
94
+ update?: Record<string, any> | undefined;
95
+ create?: Record<string, any> | undefined;
96
+ destroy?: Record<string, any> | undefined;
97
+ } | undefined;
98
+ localSettings?: import("../../../table/types").LocalSettingsType | undefined;
99
+ };
100
+ export default useTableProps;
@@ -0,0 +1,84 @@
1
+ /// <reference types="react" />
2
+ import { ColumnType } from 'antd/es/table';
3
+ import { LocalSettingsType } from '../../table/types';
4
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
5
+ export declare type OperationItem = {
6
+ label?: string;
7
+ openMode: 'modal' | 'drawer' | 'custom';
8
+ openContentSize: 'small' | 'middle' | 'large';
9
+ openTitle: string;
10
+ actionType: 'detail' | 'edit' | 'delete' | 'custom';
11
+ key: string;
12
+ buttonProps?: any;
13
+ onClick?: (record: any) => void;
14
+ afterClose?: () => void;
15
+ };
16
+ export interface DataSourceTableProps {
17
+ __id?: string;
18
+ currentComponentId?: string;
19
+ currentSettingKey?: string;
20
+ title?: string | React.ReactNode | (() => React.ReactNode);
21
+ subTitle?: string | React.ReactNode | (() => React.ReactNode);
22
+ titleButtons?: {
23
+ show: boolean;
24
+ maxCount: number;
25
+ items: OperationItem[];
26
+ };
27
+ tableButtons?: {
28
+ show: boolean;
29
+ maxCount: number;
30
+ items: OperationItem[];
31
+ };
32
+ buttons?: any[];
33
+ operation?: {
34
+ show: boolean;
35
+ title: string;
36
+ width: number;
37
+ align: 'left' | 'center' | 'right';
38
+ fixed: 'left' | 'right' | false;
39
+ type: 'link' | 'button';
40
+ items: OperationItem[];
41
+ };
42
+ operationContent?: {
43
+ [key: string]: React.ReactNode;
44
+ };
45
+ dataSource: DataSourceType;
46
+ columns: ColumnType<any>[];
47
+ filter: any;
48
+ search?: {
49
+ show: boolean;
50
+ placeholder: string;
51
+ };
52
+ __designMode: string;
53
+ componentId: string;
54
+ clickToDetail?: {
55
+ show: boolean;
56
+ useCustomAction: boolean;
57
+ actionType: string;
58
+ openMode: 'modal' | 'drawer';
59
+ openContentSize: 'small' | 'middle' | 'large';
60
+ openTitle: string;
61
+ key: string;
62
+ };
63
+ onRow?: any;
64
+ filterBy?: Record<string, any>;
65
+ sortBy: string;
66
+ tabs?: {
67
+ show: boolean;
68
+ type: string;
69
+ items: {
70
+ name: string;
71
+ filterBy: Record<string, any>;
72
+ sortBy: string;
73
+ }[];
74
+ };
75
+ onValuesChange?: (changedValues: any, values: any) => void;
76
+ extraParams?: {
77
+ list?: Record<string, any>;
78
+ get?: Record<string, any>;
79
+ update?: Record<string, any>;
80
+ create?: Record<string, any>;
81
+ destroy?: Record<string, any>;
82
+ };
83
+ localSettings?: LocalSettingsType;
84
+ }
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import { ModeType } from '../../dataSourceForm/type';
4
+ declare type PhoneValue = string | {
5
+ phone: string;
6
+ countryCallingCode: string;
7
+ countryCode?: string;
8
+ };
9
+ export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
10
+ renderMode: ModeType;
11
+ value?: PhoneValue;
12
+ onChange?: (value: PhoneValue) => void;
13
+ returnFormat?: 'string' | 'object';
14
+ inputRef?: any;
15
+ }
16
+ declare const MobileNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
17
+ export default MobileNumberInputWithMode;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 获取nocobase数据列表
3
+ */
4
+ export declare const getCountryDataList: () => Promise<any>;
5
+ export interface Country {
6
+ id: number;
7
+ name: {
8
+ en: string;
9
+ 'zh-CN': string;
10
+ 'zh-HK': string;
11
+ original: string;
12
+ };
13
+ code: string;
14
+ calling_code: string;
15
+ currency_code: string;
16
+ sort: number;
17
+ status: string;
18
+ created_at: string;
19
+ updated_at: string;
20
+ prefix: string;
21
+ }
22
+ export declare const useCountries: () => {
23
+ data: Country[];
24
+ };
@@ -69,12 +69,14 @@ var useCountries = () => {
69
69
  manual: true
70
70
  });
71
71
  (0, import_react.useEffect)(() => {
72
+ debugger;
72
73
  if (!isShop) {
73
74
  run();
74
75
  }
75
76
  }, [isShop]);
76
77
  const currentData = (0, import_react.useMemo)(() => {
77
78
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
79
+ debugger;
78
80
  if (isShop) {
79
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;
80
82
  if (codeList) {
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import { ModeType } from "../../dataSourceForm/type";
4
+ declare type PhoneValue = string | {
5
+ phone: string;
6
+ countryCallingCode: string;
7
+ };
8
+ export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
9
+ renderMode: ModeType;
10
+ value?: PhoneValue;
11
+ onChange?: (value: PhoneValue) => void;
12
+ returnFormat?: 'string' | 'object';
13
+ inputRef?: any;
14
+ }
15
+ declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
16
+ export default PhoneNumberInputWithMode;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 获取nocobase数据列表
3
+ */
4
+ export declare const getCountryDataList: () => Promise<any>;
5
+ export declare const getShopCountryDataList: (locale?: any) => Promise<any>;
6
+ export interface Country {
7
+ id: number;
8
+ name: {
9
+ en: string;
10
+ 'zh-CN': string;
11
+ 'zh-HK': string;
12
+ original: string;
13
+ };
14
+ code: string;
15
+ calling_code: string;
16
+ currency_code: string;
17
+ sort: number;
18
+ status: string;
19
+ created_at: string;
20
+ updated_at: string;
21
+ prefix: string;
22
+ }
23
+ export declare const useCountries: () => {
24
+ data: Country[];
25
+ };
@@ -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;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Upload: React.FC<import("./type").UploadProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
3
+ export 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,7 +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<import("./Input/type").InputProps> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
+ } & {
65
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
63
69
  JSON: import("react").FC<any>;
64
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
65
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>;
@@ -72,18 +78,14 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
72
78
  Subdomain: import("react").FC<import("antd").InputProps & {
73
79
  onChange: (value: string) => void;
74
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
75
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
76
82
  customDomain?: string | undefined;
77
83
  value?: string | undefined;
78
84
  tenantId: string;
79
85
  name?: string | undefined;
80
86
  fieldKey?: string | undefined;
81
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
82
- }) | import("react").FC<any> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
83
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
84
- } & {
85
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
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<{}> & {
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<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("./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 };
@@ -0,0 +1,5 @@
1
+ declare const usePlatform: () => any;
2
+ declare const useIsShop: () => boolean;
3
+ declare const useIsH5: () => boolean;
4
+ declare const useIsPc: () => boolean;
5
+ export { usePlatform, useIsShop, useIsH5, useIsPc };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface VariablesContextType {
3
+ children?: React.ReactNode;
4
+ variables?: Record<string, any>;
5
+ registerVariable?: (value: Record<string, any>) => void;
6
+ parseVariable?: (str: string, localVariables?: Record<string, any>) => any;
7
+ registerValueVariable?: (componentId: string, value: Record<string, any>) => void;
8
+ registerFunctionVariable?: (componentId: string, value: Record<string, any>) => void;
9
+ subscribeVariables?: (listener: (allVariables: Record<string, any>, updateVariables: Record<string, any>) => void) => () => void;
10
+ }
11
+ export declare const VariablesContext: import("react").Context<VariablesContextType>;
12
+ export default VariablesContext;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { VariablesContextType } from './VariablesContext';
3
+ declare const VariablesProvider: React.FC<VariablesContextType>;
4
+ export default VariablesProvider;
@@ -0,0 +1,18 @@
1
+ import './index.less';
2
+ import { ValueProps, SortType } from '../types';
3
+ declare type IdType = string | number;
4
+ declare type TreeItemProps = {
5
+ id: string | number;
6
+ key: string | number;
7
+ item: ValueProps | any;
8
+ depth: number;
9
+ lists: any[];
10
+ childrenProps?: SortType;
11
+ sensors?: any;
12
+ expandedKeys?: IdType[];
13
+ setExpandedKeys?: any;
14
+ onSelectKeys?: (ids: IdType) => void;
15
+ onChange?: (value: any[]) => void;
16
+ };
17
+ declare const TreeItem: (props: TreeItemProps) => JSX.Element;
18
+ export default TreeItem;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ import { SortType } from './types';
3
+ declare const DragSortTree: (props: SortType) => JSX.Element;
4
+ export default DragSortTree;
@@ -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;
@@ -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.4.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.18.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ /**
4
+ * loginAndRegister组件的属性接口
5
+ */
6
+ export interface loginAndRegisterProps {
7
+ /** Logo相关配置 */
8
+ showLogo?: boolean;
9
+ logo?: string;
10
+ logoPosition?: 'left' | 'center' | 'right';
11
+ logoSize?: {
12
+ width?: number;
13
+ height?: number;
14
+ };
15
+ /** 标题相关配置 */
16
+ title?: string;
17
+ showTitle?: boolean;
18
+ titleAlign?: 'left' | 'center' | 'right';
19
+ /** 副标题相关配置 */
20
+ subtitle?: string;
21
+ showSubtitle?: boolean;
22
+ subtitleAlign?: 'left' | 'center' | 'right';
23
+ /** 登录方式配置 */
24
+ loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
+ defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
+ /** 表单配置 */
27
+ emailLabel?: string;
28
+ passwordLabel?: string;
29
+ emailPlaceholder?: string;
30
+ passwordPlaceholder?: string;
31
+ emailRules?: any[];
32
+ buttonText?: string;
33
+ rememberMeText?: string;
34
+ forgotPasswordText?: string;
35
+ showRememberMe?: boolean;
36
+ showForgotPassword?: boolean;
37
+ /** 社交登录配置 */
38
+ socialLoginTexts?: {
39
+ google?: string;
40
+ facebook?: string;
41
+ apple?: string;
42
+ };
43
+ /** 底部配置 */
44
+ showFooter?: boolean;
45
+ showSignUp?: boolean;
46
+ signUpText?: string;
47
+ signUpLink?: string;
48
+ signUpPosition?: 'left' | 'center' | 'right';
49
+ otherLinks?: Array<{
50
+ text: string;
51
+ url: string;
52
+ }>;
53
+ otherLinksPosition?: 'left' | 'center' | 'right';
54
+ /** 登录/注册切换配置 */
55
+ showTabs?: boolean;
56
+ loginTabText?: string;
57
+ registerTabText?: string;
58
+ /** 注册表单配置 */
59
+ registerEmailPlaceholder?: string;
60
+ registerPasswordPlaceholder?: string;
61
+ registerButtonText?: string;
62
+ /** 事件回调 */
63
+ onLogin?: (values: {
64
+ email: string;
65
+ loginMethod: string;
66
+ }) => void;
67
+ onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
+ onSignUp?: () => void;
69
+ onRegister?: (values: {
70
+ email: string;
71
+ password: string;
72
+ }) => void;
73
+ /** 新增背景图片属性 */
74
+ backgroundImage?: string;
75
+ }
76
+ /**
77
+ * Saas登录组件
78
+ * @param props - 组件属性
79
+ * @returns React组件
80
+ */
81
+ declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
+ export default loginAndRegister;
@@ -0,0 +1,5 @@
1
+ import { ConfigProviderProps } from '../config-provider';
2
+ interface PageProps extends ConfigProviderProps {
3
+ }
4
+ declare const Page: (props: PageProps) => JSX.Element;
5
+ export default Page;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ export interface PisellContextType {
3
+ platform: 'h5' | 'pc' | 'ipad';
4
+ /** 货币符号 */
5
+ symbol?: string;
6
+ /** 当前语言环境 */
7
+ locale?: string;
8
+ }
9
+ export declare const PisellContext: import("react").Context<PisellContextType>;
10
+ /**
11
+ * provider外获取当前全局配置
12
+ */
13
+ declare class GlobalConfig {
14
+ private config;
15
+ constructor();
16
+ setConfig(config: PisellContextType): void;
17
+ getConfig(): PisellContextType;
18
+ }
19
+ export declare const globalConfig: GlobalConfig;
20
+ export default PisellContext;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from './context';
3
+ interface PisellConfigProviderType {
4
+ platform?: PisellContextType['platform'];
5
+ children: React.ReactNode;
6
+ /** 货币符号 */
7
+ symbol?: string;
8
+ /** 当前语言环境 */
9
+ locale?: string;
10
+ }
11
+ declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
+ export default PisellConfigProvider;
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ export interface PisellAdjustPriceProps {
3
+ value?: number;
4
+ originValue: number;
5
+ defaultValue?: number;
6
+ onChange?: (val: number) => void;
7
+ }
8
+ declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
+ export default PisellAdjustPrice;