@pisell/materials 2.2.110 → 2.2.112

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 (241) 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 +155 -150
  7. package/build/lowcode/render/default/view.js +19 -20
  8. package/build/lowcode/view.js +20 -21
  9. package/es/components/batch-editor/index.d.ts +0 -1
  10. package/es/components/dataSourceComponents/dataSourceForm/utils.js +25 -4
  11. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  16. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +10 -3
  18. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +70 -28
  19. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +24 -2
  20. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +8 -2
  21. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +45 -13
  22. package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +76 -8
  23. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  24. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/index.d.ts +14 -15
  27. package/es/components/dataSourceComponents/hooks/usePlatform.js +9 -1
  28. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  29. package/es/components/pisellInput/index.d.ts +0 -1
  30. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  31. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  32. package/es/components/pisellModal/components/index.d.ts +0 -1
  33. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  34. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  35. package/es/components/select-time/index.d.ts +0 -1
  36. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  37. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  38. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  39. package/es/components/table/Actions/index.d.ts +0 -1
  40. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  41. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  42. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  43. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  44. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  45. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  46. package/es/components/table/Table/fields/index.d.ts +2 -2
  47. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  48. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  49. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  50. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  51. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  52. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  53. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  54. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  55. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  56. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  57. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  58. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  59. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  60. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  61. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  62. package/es/components/table/Table/utils.d.ts +1 -1
  63. package/es/components/versionSelect/index.d.ts +0 -1
  64. package/es/utils/index.d.ts +1 -1
  65. package/es/utils/platform.d.ts +1 -1
  66. package/lib/components/batch-editor/index.d.ts +0 -1
  67. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +18 -2
  68. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  69. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  70. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  71. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  72. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  73. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  74. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +10 -3
  75. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +67 -18
  76. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +29 -7
  77. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +8 -2
  78. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +41 -9
  79. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +53 -11
  80. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  81. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  82. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  83. package/lib/components/dataSourceComponents/fields/index.d.ts +14 -15
  84. package/lib/components/dataSourceComponents/hooks/usePlatform.js +12 -0
  85. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  86. package/lib/components/pisellInput/index.d.ts +0 -1
  87. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  88. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  89. package/lib/components/pisellModal/components/index.d.ts +0 -1
  90. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  91. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  92. package/lib/components/select-time/index.d.ts +0 -1
  93. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  94. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  95. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  96. package/lib/components/table/Actions/index.d.ts +0 -1
  97. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  98. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  99. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  100. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  101. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  102. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  103. package/lib/components/table/Table/fields/index.d.ts +2 -2
  104. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  105. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  106. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  107. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  108. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  109. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  110. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  111. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  112. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  113. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  114. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  115. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  116. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  117. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  118. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  119. package/lib/components/table/Table/utils.d.ts +1 -1
  120. package/lib/components/versionSelect/index.d.ts +0 -1
  121. package/lib/utils/index.d.ts +1 -1
  122. package/lib/utils/platform.d.ts +1 -1
  123. package/lowcode/form-item-input.mobile/meta.ts +22 -0
  124. package/lowcode/form-item-input.phone/meta.ts +22 -0
  125. package/package.json +1 -1
  126. package/es/components/appVersionControl/index.d.ts +0 -4
  127. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  128. package/es/components/auto-resize-text/index.d.ts +0 -6
  129. package/es/components/cardPro/index.d.ts +0 -3
  130. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  131. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  132. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  133. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  134. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
  135. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
  136. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  137. package/es/components/drag-sort-tree/index.d.ts +0 -4
  138. package/es/components/iconfont/index.d.ts +0 -8
  139. package/es/components/keyboard/index.d.ts +0 -22
  140. package/es/components/login-and-register/index.d.ts +0 -82
  141. package/es/components/pisell-config-provider/context.d.ts +0 -22
  142. package/es/components/pisell-config-provider/index.d.ts +0 -13
  143. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  144. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  145. package/es/components/pisellCardList/index.d.ts +0 -103
  146. package/es/components/pisellEmpty/index.d.ts +0 -19
  147. package/es/components/pisellQRScanner/index.d.ts +0 -24
  148. package/es/components/pisellText/index.d.ts +0 -8
  149. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  150. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  151. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  152. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  153. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  154. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  155. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  156. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  157. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  158. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  159. package/es/components/productCard/components/Action/index.d.ts +0 -3
  160. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  161. package/es/components/productCard/components/Time/index.d.ts +0 -3
  162. package/es/components/productCard/locales.d.ts +0 -84
  163. package/es/components/select/index.d.ts +0 -9
  164. package/es/components/sortableList/index.d.ts +0 -11
  165. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  166. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  167. package/es/components/table/Table/index.d.ts +0 -4
  168. package/es/components/table/serve.d.ts +0 -13
  169. package/es/components/table/types.d.ts +0 -268
  170. package/es/components/versionModal/index.d.ts +0 -23
  171. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  172. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  173. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  174. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  175. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  176. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  177. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  178. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  179. package/es/components/virtualInput/index.d.ts +0 -24
  180. package/es/components/walletCard/index.d.ts +0 -71
  181. package/es/locales/en-US.d.ts +0 -307
  182. package/es/locales/zh-CN.d.ts +0 -302
  183. package/es/locales/zh-TW.d.ts +0 -302
  184. package/lib/components/appVersionControl/index.d.ts +0 -4
  185. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  186. package/lib/components/auto-resize-text/index.d.ts +0 -6
  187. package/lib/components/cardPro/index.d.ts +0 -3
  188. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  189. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  190. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  191. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  192. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
  193. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -3
  194. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  195. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  196. package/lib/components/iconfont/index.d.ts +0 -8
  197. package/lib/components/keyboard/index.d.ts +0 -22
  198. package/lib/components/login-and-register/index.d.ts +0 -82
  199. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  200. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  201. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  202. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  203. package/lib/components/pisellCardList/index.d.ts +0 -103
  204. package/lib/components/pisellEmpty/index.d.ts +0 -19
  205. package/lib/components/pisellQRScanner/index.d.ts +0 -24
  206. package/lib/components/pisellText/index.d.ts +0 -8
  207. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  208. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  209. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  210. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  211. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  212. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  213. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  214. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  215. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  216. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  217. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  218. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  219. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  220. package/lib/components/productCard/locales.d.ts +0 -84
  221. package/lib/components/select/index.d.ts +0 -9
  222. package/lib/components/sortableList/index.d.ts +0 -11
  223. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  224. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  225. package/lib/components/table/Table/index.d.ts +0 -4
  226. package/lib/components/table/serve.d.ts +0 -13
  227. package/lib/components/table/types.d.ts +0 -268
  228. package/lib/components/versionModal/index.d.ts +0 -23
  229. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  230. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  231. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  232. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  233. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  234. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  235. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  236. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  237. package/lib/components/virtualInput/index.d.ts +0 -24
  238. package/lib/components/walletCard/index.d.ts +0 -71
  239. package/lib/locales/en-US.d.ts +0 -307
  240. package/lib/locales/zh-CN.d.ts +0 -302
  241. package/lib/locales/zh-TW.d.ts +0 -302
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  export interface IpadModalProps extends PcModalProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  import './index.less';
4
3
  export interface MobileModalProps extends PcModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import IpadModal from './IpadModal';
3
2
  import MobileModal from './MobileModal';
4
3
  import PcModal from './PcModal';
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type ColumnsSettingProps = {
3
2
  value?: Record<string, any>[];
4
3
  onChange?: (val: Record<string, any>[]) => void;
@@ -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 { 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 { 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,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -1,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 { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -198,12 +198,12 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: boolean;
201
+ default_value: string;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
205
205
  field_type: string;
206
- default_value: string;
206
+ default_value: boolean;
207
207
  } | {
208
208
  field_icon: string;
209
209
  field_name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,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 { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -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 filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -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 { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -1,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: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -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" | "column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("filters" | "filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "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 { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -176,6 +176,28 @@ export default {
176
176
  title: { label: '输入框内容变化时的回调', tip: '输入框内容变化时的回调' },
177
177
  propType: 'func',
178
178
  },
179
+ {
180
+ name: "returnFormat",
181
+ title: {
182
+ label: {
183
+ type: 'i18n',
184
+ 'en-US': 'Return format',
185
+ 'zh-CN': '返回格式',
186
+ },
187
+ tip: {
188
+ type: 'i18n',
189
+ 'en-US': 'Return format',
190
+ 'zh-CN': '返回格式',
191
+ }
192
+ },
193
+ propType: { type: 'oneOf', value: ['string', 'object'] },
194
+ defaultValue: 'string',
195
+ },
196
+ {
197
+ name: "inputRef",
198
+ title: { label: '输入框实例', tip: '输入框内容变化时的回调' },
199
+ propType: 'func',
200
+ },
179
201
  {
180
202
  name: 'onPressEnter',
181
203
  title: { label: '按下回车的回调', tip: '按下回车的回调' },
@@ -181,6 +181,28 @@ export default {
181
181
  title: { label: '输入框内容变化时的回调', tip: '输入框内容变化时的回调' },
182
182
  propType: 'func',
183
183
  },
184
+ {
185
+ name: "returnFormat",
186
+ title: {
187
+ label: {
188
+ type: 'i18n',
189
+ 'en-US': 'Return format',
190
+ 'zh-CN': '返回格式',
191
+ },
192
+ tip: {
193
+ type: 'i18n',
194
+ 'en-US': 'Return format',
195
+ 'zh-CN': '返回格式',
196
+ }
197
+ },
198
+ propType: { type: 'oneOf', value: ['string', 'object'] },
199
+ defaultValue: 'string',
200
+ },
201
+ {
202
+ name: "inputRef",
203
+ title: { label: '输入框实例', tip: '输入框内容变化时的回调' },
204
+ propType: 'func',
205
+ },
184
206
  {
185
207
  name: 'onPressEnter',
186
208
  title: { label: '按下回车的回调', tip: '按下回车的回调' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.110",
3
+ "version": "2.2.112",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",
@@ -1,4 +0,0 @@
1
- import { AppVersionControlProps } from './types';
2
- import './index.less';
3
- declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
- export default AppVersionControl;
@@ -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 {};
@@ -1,6 +0,0 @@
1
- import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
2
- import { Options } from './auto-text-size-standalone';
3
- export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
4
- as?: keyof ReactHTML | React.ComponentType<any>;
5
- children?: React.ReactNode;
6
- } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: (props: any) => JSX.Element;
3
- export default _default;
@@ -1,38 +0,0 @@
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;
@@ -1,84 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
- };
@@ -1,24 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- declare const usePlatform: () => any;
2
- declare const useIsShop: () => boolean;
3
- export { usePlatform, useIsShop };
@@ -1,18 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { SortType } from './types';
3
- declare const DragSortTree: (props: SortType) => JSX.Element;
4
- export default DragSortTree;
@@ -1,8 +0,0 @@
1
- import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
- import React from 'react';
3
- interface IconFontProps extends IconComponentProps {
4
- type: string;
5
- onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
- }
7
- declare const IconFont: React.FC<IconFontProps>;
8
- export default IconFont;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- id?: string;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- onChange?: (value?: ItemValue) => void;
17
- items?: Item[];
18
- rightItems?: Item[];
19
- keydown?: boolean;
20
- }
21
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
22
- export default _default;