@pisell/materials 1.0.888 → 1.0.890

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 (198) 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 +164 -148
  7. package/build/lowcode/render/default/view.js +38 -24
  8. package/build/lowcode/view.js +38 -24
  9. package/es/components/auto-complete-number/index.d.ts +0 -1
  10. package/es/components/badge/index.d.ts +0 -1
  11. package/es/components/batch-editor/fields/index.d.ts +0 -1
  12. package/es/components/calendar/index.d.ts +0 -1
  13. package/es/components/cardPro/index.d.ts +0 -1
  14. package/es/components/checkbox/index.d.ts +0 -1
  15. package/es/components/classicLayout/index.d.ts +0 -1
  16. package/es/components/colorPicker/index.d.ts +0 -1
  17. package/es/components/config-provider/index.d.ts +0 -1
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  19. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  22. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  24. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  27. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  28. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/index.d.ts +4 -4
  31. package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  32. package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.d.ts +8 -0
  33. package/es/components/dropdown/index.d.ts +0 -1
  34. package/es/components/filter/components/items/index.d.ts +0 -1
  35. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  36. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  37. package/es/components/filter/components/items/text/index.d.ts +0 -1
  38. package/es/components/filter/index.d.ts +1 -0
  39. package/es/components/pisellCard/index.d.ts +0 -1
  40. package/es/components/pisellCardList/index.js +3 -1
  41. package/es/components/pisellCheckboxGroup/index.js +13 -1
  42. package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  43. package/es/components/pisellDatePicker/index.d.ts +0 -1
  44. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  45. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  46. package/es/components/pisellTooltip/index.d.ts +0 -1
  47. package/es/components/pisellUpload/index.d.ts +0 -1
  48. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  49. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  50. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  51. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  52. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  53. package/es/components/radio/index.d.ts +0 -1
  54. package/es/components/segmented/index.d.ts +0 -1
  55. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  56. package/es/components/skeleton/index.d.ts +0 -1
  57. package/es/components/slider/index.d.ts +0 -1
  58. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  59. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  60. package/es/components/table/Summary/index.d.ts +0 -1
  61. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  62. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  63. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  64. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  65. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  66. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  67. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  68. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  69. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  70. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  71. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  72. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  73. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  74. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  75. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  76. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  77. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  78. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  79. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  80. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  81. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  82. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  83. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  84. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  88. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  89. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  90. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  91. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  92. package/es/components/table/View/index.d.ts +0 -1
  93. package/es/components/time-picker/index.d.ts +0 -1
  94. package/es/components/upload/index.d.ts +0 -1
  95. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  96. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  97. package/es/components/walletCard/Guest/index.d.ts +0 -1
  98. package/es/components/walletCard/Guide/index.d.ts +0 -1
  99. package/lib/components/auto-complete-number/index.d.ts +0 -1
  100. package/lib/components/badge/index.d.ts +0 -1
  101. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  102. package/lib/components/calendar/index.d.ts +0 -1
  103. package/lib/components/cardPro/index.d.ts +0 -1
  104. package/lib/components/checkbox/index.d.ts +0 -1
  105. package/lib/components/classicLayout/index.d.ts +0 -1
  106. package/lib/components/colorPicker/index.d.ts +0 -1
  107. package/lib/components/config-provider/index.d.ts +0 -1
  108. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +2 -0
  109. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  110. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  111. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  112. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  113. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  114. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  115. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  116. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  117. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  118. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  119. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  120. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -4
  121. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  122. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.d.ts +8 -0
  123. package/lib/components/dropdown/index.d.ts +0 -1
  124. package/lib/components/filter/components/items/index.d.ts +0 -1
  125. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  126. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  127. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  128. package/lib/components/filter/index.d.ts +1 -0
  129. package/lib/components/pisellCard/index.d.ts +0 -1
  130. package/lib/components/pisellCardList/index.js +3 -1
  131. package/lib/components/pisellCheckboxGroup/index.js +14 -0
  132. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  133. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  134. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  135. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  136. package/lib/components/pisellTooltip/index.d.ts +0 -1
  137. package/lib/components/pisellUpload/index.d.ts +0 -1
  138. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  139. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  140. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  141. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  142. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  143. package/lib/components/radio/index.d.ts +0 -1
  144. package/lib/components/segmented/index.d.ts +0 -1
  145. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  146. package/lib/components/skeleton/index.d.ts +0 -1
  147. package/lib/components/slider/index.d.ts +0 -1
  148. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  149. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  150. package/lib/components/table/Summary/index.d.ts +0 -1
  151. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  152. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  153. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  154. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  155. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  156. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  157. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  158. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  159. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  160. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  161. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  162. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  163. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  164. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  165. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  166. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  167. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  168. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  169. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  170. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  171. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  172. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  173. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  174. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  175. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  176. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  177. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  178. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  179. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  180. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  181. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  182. package/lib/components/table/View/index.d.ts +0 -1
  183. package/lib/components/time-picker/index.d.ts +0 -1
  184. package/lib/components/upload/index.d.ts +0 -1
  185. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  186. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  187. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  188. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  189. package/lowcode/data-source-table/meta.ts +14 -0
  190. package/package.json +3 -3
  191. package/es/components/pisellCardList/index.d.ts +0 -73
  192. package/es/components/pisellCheckboxGroup/index.d.ts +0 -36
  193. package/es/components/translation/index.d.ts +0 -15
  194. package/lib/components/pisellCardList/index.d.ts +0 -73
  195. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -36
  196. package/lib/components/translation/index.d.ts +0 -15
  197. /package/es/components/dataSourceComponents/dataSourceForm/{BaseForm.d.ts → index.d.ts} +0 -0
  198. /package/lib/components/dataSourceComponents/dataSourceForm/{BaseForm.d.ts → index.d.ts} +0 -0
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AutoCompleteProps, InputNumberProps } from "antd";
3
2
  interface AutoCompleteNumberProps {
4
3
  autoCompleteProps: AutoCompleteProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BadgeProps as OriginalBadgeprops } from 'antd';
3
2
  import './index.less';
4
3
  export interface Badgeprops extends OriginalBadgeprops {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  price: import("react").FC<import("./Price").PriceProps>;
4
3
  image: (props: import("./Image").ImageProps) => JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Calendar: (props: any) => JSX.Element;
3
2
  export default Calendar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Checkbox: (props: any) => JSX.Element;
3
2
  export default Checkbox;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ClassicLayout: (props: any) => JSX.Element;
4
3
  export default ClassicLayout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from 'antd';
3
2
  declare const ColorPicker: (props: ColorPickerProps) => JSX.Element;
4
3
  export default ColorPicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
3
2
  import "dayjs/locale/zh-cn";
4
3
  export interface ConfigProviderProps extends OriginalConfigProviderProps {
@@ -54,6 +54,8 @@ var useDrawerState = function useDrawerState(operationContent) {
54
54
  setDrawerVisible(false);
55
55
  // 等待动画完成后再清除item
56
56
  timerRef.current = setTimeout(function () {
57
+ var _item$afterClose;
58
+ item === null || item === void 0 || (_item$afterClose = item.afterClose) === null || _item$afterClose === void 0 || _item$afterClose.call(item);
57
59
  setItem(null);
58
60
  timerRef.current = undefined;
59
61
  }, 300);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const ColorPickerReadPretty: (props: ColorPickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DateRangePickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconSelectProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const IconSelectReadPretty: (props: IconSelectProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const InputReadPretty: (props: InputProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextAreaProps } from "./type";
3
2
  import "./ReadPretty.less";
4
3
  declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UrlProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  export declare const formatUrl: (url: string) => string;
@@ -1,6 +1,6 @@
1
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
2
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
3
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TimePickerProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TranslationProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
@@ -34,7 +34,7 @@ declare const formFieldMap: {
34
34
  };
35
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
36
  options?: any;
37
- optionSourceType?: "default" | "custom" | "api" | undefined;
37
+ optionSourceType?: "custom" | "default" | "api" | undefined;
38
38
  labelField: string;
39
39
  valueField: string;
40
40
  extraParams?: Record<string, any> | undefined;
@@ -59,7 +59,7 @@ 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<any> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -89,13 +89,13 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
89
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
90
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
91
  options?: any;
92
- optionSourceType?: "default" | "custom" | "api" | undefined;
92
+ optionSourceType?: "custom" | "default" | "api" | undefined;
93
93
  labelField: string;
94
94
  valueField: string;
95
95
  extraParams?: Record<string, any> | undefined;
96
96
  } & {
97
97
  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 & {
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
99
  onChange: (value: string) => void;
100
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>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -0,0 +1,18 @@
1
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
2
+ export interface UseActionsParams {
3
+ dataSource?: DataSourceType;
4
+ currentValue?: 'server' | 'local';
5
+ __designMode?: string;
6
+ extraParams?: Record<string, any>;
7
+ }
8
+ declare const useActions: ({ dataSource: propsDataSource, currentValue: propsCurrentValue, __designMode, extraParams: propsExtraParams, }?: UseActionsParams) => {
9
+ create: (values: Record<string, any>) => Promise<any>;
10
+ get: () => Promise<any>;
11
+ update: (values: Record<string, any>) => Promise<any>;
12
+ list: (params: {
13
+ page: number;
14
+ pageSize: number;
15
+ }) => Promise<any>;
16
+ destroy: (id: string) => Promise<any>;
17
+ };
18
+ export default useActions;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { DataSourceContextProps } from './DataSourceContext';
3
+ /**
4
+ * @title: DataSource Provider
5
+ * @description: 提供页面配置的数据源,支持外部传入Promise接口、自动调用配置和直接数据
6
+ */
7
+ declare const DataSourceProvider: React.FC<DataSourceContextProps>;
8
+ export default DataSourceProvider;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Dropdown: (props: any) => JSX.Element;
3
2
  export default Dropdown;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: () => JSX.Element;
3
2
  export default Text;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: (props: any) => JSX.Element;
3
2
  export default Text;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellCardProps extends CardProps {
@@ -37,7 +37,8 @@ var PisellCardList = function PisellCardList(props) {
37
37
  showValidDate = props.showValidDate,
38
38
  empty = props.empty,
39
39
  showEmpty = props.showEmpty,
40
- showBalanceSymbol = props.showBalanceSymbol;
40
+ showBalanceSymbol = props.showBalanceSymbol,
41
+ onChangeDebounce = props.onChangeDebounce;
41
42
  return data.length ? /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
42
43
  options: data,
43
44
  value: value,
@@ -48,6 +49,7 @@ var PisellCardList = function PisellCardList(props) {
48
49
  onChange: onChange,
49
50
  iconPosition: "hide",
50
51
  fullWidth: fullWidth,
52
+ onChangeDebounce: onChangeDebounce,
51
53
  renderOption: function renderOption(item, active, index) {
52
54
  return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, item, {
53
55
  active: active,
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["platform", "gap", "style", "options", "onChange", "value", "renderOption", "padding", "rowKey", "mode", "direction", "fullWidth", "iconPosition", "optionClassName", "optionActiveClassName"];
2
+ var _excluded = ["platform", "gap", "style", "options", "onChange", "value", "renderOption", "padding", "rowKey", "mode", "direction", "fullWidth", "iconPosition", "optionClassName", "optionActiveClassName", "onChangeDebounce"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18,6 +18,7 @@ import React, { useEffect, useMemo } from 'react';
18
18
  import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
19
19
  import classNames from 'classnames';
20
20
  import { Checkbox, Radio } from 'antd';
21
+ import { useDebounceFn } from "ahooks";
21
22
  import { isNumber } from '@pisell/utils';
22
23
  import { changeArray } from '@pisell/utils';
23
24
  import "./index.less";
@@ -63,6 +64,7 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
63
64
  iconPosition = _props$iconPosition === void 0 ? 'left' : _props$iconPosition,
64
65
  optionClassName = props.optionClassName,
65
66
  optionActiveClassName = props.optionActiveClassName,
67
+ onChangeDebounce = props.onChangeDebounce,
66
68
  rest = _objectWithoutProperties(props, _excluded);
67
69
  var _useState = useState([]),
68
70
  _useState2 = _slicedToArray(_useState, 2),
@@ -141,6 +143,12 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
141
143
  // 单选模式, 只返回第一个值
142
144
  onChange === null || onChange === void 0 || onChange(mode === 'single' ? val[0] : val, item);
143
145
  };
146
+ var _useDebounceFn = useDebounceFn(function (key, item) {
147
+ handleSelectItem(key, item);
148
+ }, {
149
+ wait: 200
150
+ }),
151
+ run = _useDebounceFn.run;
144
152
 
145
153
  /**
146
154
  * @title: 选择
@@ -181,6 +189,10 @@ var PisellCheckboxGroup = function PisellCheckboxGroup(props) {
181
189
  style: rowStyle,
182
190
  onClick: function onClick(e) {
183
191
  if (option.disabled) return;
192
+ if (onChangeDebounce) {
193
+ run(option[rowKey], option);
194
+ return;
195
+ }
184
196
  handleSelectItem(option[rowKey], option);
185
197
  },
186
198
  leftContent: iconPosition === 'left' && /*#__PURE__*/React.createElement(CheckBoxItem, {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './detePickerCpt.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PisellDatePicker: (props: any) => JSX.Element;
3
2
  export default PisellDatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import './index.less';
4
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
3
2
  import { PisellContextType } from "../pisell-config-provider/context";
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { UploadProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellUploadProps extends UploadProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Divider: ({ type }: any) => JSX.Element;
4
3
  export default Divider;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
3
  style?: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Radio: (props: any) => JSX.Element;
3
2
  export default Radio;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SegmentedProps } from "antd";
3
2
  import "./index.less";
4
3
  declare const Segmented: (props: SegmentedProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Skeleton: (props: any) => JSX.Element;
3
2
  export default Skeleton;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SliderOuter: (props: any) => JSX.Element;
3
2
  export default SliderOuter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
  import "./index.less";
4
3
  interface InlineMenuProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  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 "./index.less";
3
2
  declare const Summary: ({ summary }: any) => JSX.Element | null;
4
3
  export default Summary;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const summary: (props: any) => JSX.Element;
3
2
  export default summary;
@@ -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;