@pisell/materials 2.2.91 → 2.2.92

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 (237) 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 +144 -144
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +23 -32
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +23 -32
  11. package/es/components/appVersionControl/index.d.ts +0 -1
  12. package/es/components/auto-complete-number/index.d.ts +0 -1
  13. package/es/components/badge/index.d.ts +0 -1
  14. package/es/components/batch-editor/fields/index.d.ts +0 -1
  15. package/es/components/calendar/index.d.ts +0 -1
  16. package/es/components/cardPro/index.d.ts +0 -1
  17. package/es/components/checkbox/index.d.ts +0 -1
  18. package/es/components/classicLayout/index.d.ts +0 -1
  19. package/es/components/colorPicker/index.d.ts +0 -1
  20. package/es/components/config-provider/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  24. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  27. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  28. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  31. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  32. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  34. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  35. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  36. package/es/components/dataSourceComponents/fields/index.d.ts +0 -1
  37. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  38. package/es/components/drag-sort-tree/index.d.ts +0 -1
  39. package/es/components/dropdown/index.d.ts +0 -1
  40. package/es/components/filter/components/items/index.d.ts +0 -1
  41. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  42. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  43. package/es/components/filter/components/items/text/index.d.ts +0 -1
  44. package/es/components/pisellCard/index.d.ts +0 -1
  45. package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  46. package/es/components/pisellDatePicker/index.d.ts +0 -1
  47. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  48. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  49. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  50. package/es/components/pisellTooltip/index.d.ts +0 -1
  51. package/es/components/pisellUpload/index.d.ts +0 -1
  52. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  53. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +1 -1
  54. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  55. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  56. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +43 -0
  57. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +282 -0
  58. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  59. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  60. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  61. package/es/components/productCard/cartSkuCard/index.js +28 -9
  62. package/es/components/productCard/components/Action/index.d.ts +0 -1
  63. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  64. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  65. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  66. package/es/components/productCard/components/Time/index.d.ts +0 -1
  67. package/es/components/radio/index.d.ts +0 -1
  68. package/es/components/segmented/index.d.ts +0 -1
  69. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  70. package/es/components/skeleton/index.d.ts +0 -1
  71. package/es/components/slider/index.d.ts +0 -1
  72. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  73. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  74. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  75. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  76. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  77. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  78. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  79. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  80. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  81. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  82. package/es/components/table/Actions/index.d.ts +0 -1
  83. package/es/components/table/Summary/index.d.ts +0 -1
  84. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  88. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  89. package/es/components/table/Table/fields/index.d.ts +0 -1
  90. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  91. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  92. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  96. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  97. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  98. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  100. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  101. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  102. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  103. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  104. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  105. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  106. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  107. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  108. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  109. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  110. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  111. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  112. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  113. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  114. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  115. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  116. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  117. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  118. package/es/components/time-picker/index.d.ts +0 -1
  119. package/es/components/upload/index.d.ts +0 -1
  120. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  121. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  122. package/es/components/walletCard/Guest/index.d.ts +0 -1
  123. package/es/components/walletCard/Guide/index.d.ts +0 -1
  124. package/lib/components/appVersionControl/index.d.ts +0 -1
  125. package/lib/components/auto-complete-number/index.d.ts +0 -1
  126. package/lib/components/badge/index.d.ts +0 -1
  127. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  128. package/lib/components/calendar/index.d.ts +0 -1
  129. package/lib/components/cardPro/index.d.ts +0 -1
  130. package/lib/components/checkbox/index.d.ts +0 -1
  131. package/lib/components/classicLayout/index.d.ts +0 -1
  132. package/lib/components/colorPicker/index.d.ts +0 -1
  133. package/lib/components/config-provider/index.d.ts +0 -1
  134. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  135. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  136. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  137. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  138. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  139. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  140. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  141. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  142. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  143. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  144. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  145. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  146. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  147. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  148. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  149. package/lib/components/dataSourceComponents/fields/index.d.ts +0 -1
  150. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  151. package/lib/components/drag-sort-tree/index.d.ts +0 -1
  152. package/lib/components/dropdown/index.d.ts +0 -1
  153. package/lib/components/filter/components/items/index.d.ts +0 -1
  154. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  155. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  156. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  157. package/lib/components/pisellCard/index.d.ts +0 -1
  158. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  159. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  160. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  161. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  162. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  163. package/lib/components/pisellTooltip/index.d.ts +0 -1
  164. package/lib/components/pisellUpload/index.d.ts +0 -1
  165. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  166. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +1 -1
  167. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  168. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  169. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +43 -0
  170. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +330 -0
  171. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +35 -0
  172. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  173. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  174. package/lib/components/productCard/cartSkuCard/index.js +29 -13
  175. package/lib/components/productCard/components/Action/index.d.ts +0 -1
  176. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  177. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  178. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  179. package/lib/components/productCard/components/Time/index.d.ts +0 -1
  180. package/lib/components/radio/index.d.ts +0 -1
  181. package/lib/components/segmented/index.d.ts +0 -1
  182. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  183. package/lib/components/skeleton/index.d.ts +0 -1
  184. package/lib/components/slider/index.d.ts +0 -1
  185. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  186. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  187. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  188. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  189. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  190. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  191. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  192. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  193. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  194. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  195. package/lib/components/table/Actions/index.d.ts +0 -1
  196. package/lib/components/table/Summary/index.d.ts +0 -1
  197. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  198. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  199. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  200. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  201. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  202. package/lib/components/table/Table/fields/index.d.ts +0 -1
  203. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  204. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  205. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  206. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  207. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  208. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  209. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  210. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  211. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  212. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  213. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  214. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  215. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  216. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  217. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  218. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  219. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  220. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  221. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  222. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  223. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  224. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  225. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  226. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  227. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  228. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  229. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  230. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  231. package/lib/components/time-picker/index.d.ts +0 -1
  232. package/lib/components/upload/index.d.ts +0 -1
  233. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  234. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  235. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  236. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  237. package/package.json +4 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppVersionControlProps } from './types';
3
2
  import './index.less';
4
3
  declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
@@ -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 {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Drawer } from 'antd';
3
2
  import { OperationItem } from '../type';
4
3
  declare const useDrawerState: (operationContent?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceTableProps } from '../type';
3
2
  declare type Params = {
4
3
  pagination?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
3
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ValueProps, SortType } from '../types';
4
3
  declare type IdType = string | number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { SortType } from './types';
4
3
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -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,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 {
@@ -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 './index.less';
3
2
  export interface ScanProps {
4
3
  onChange: (val: string) => void;
@@ -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
  export interface PisellWalletPassCardProps {
4
3
  id: number;
@@ -28,7 +28,7 @@ var BasicInfo = function BasicInfo(props) {
28
28
  className: classNames("num-tag", {
29
29
  'is-main': isMainProduct
30
30
  })
31
- }, num < 99 ? num : '99+');
31
+ }, num < 100 ? num : '99+');
32
32
  return null;
33
33
  };
34
34
  var hasSpecs = (bundle === null || bundle === void 0 ? void 0 : bundle.length) || (options === null || options === void 0 ? void 0 : options.length) || product_option_string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Holders: (props: any) => JSX.Element | null;
4
3
  export default Holders;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: (props: any) => JSX.Element;
4
3
  export default Resources;
@@ -0,0 +1,43 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ declare type NativeProps<S extends string = never> = {
4
+ className?: string;
5
+ style?: React.CSSProperties & Partial<Record<S, string>>;
6
+ };
7
+ declare type PropagationEvent = 'click';
8
+ import './index.less';
9
+ declare type SideType = 'left' | 'right';
10
+ export declare type SwipeActionRef = {
11
+ close: () => void;
12
+ show: (side?: SideType) => void;
13
+ };
14
+ declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
+ export declare type Action = {
16
+ key: string | number;
17
+ text: ReactNode;
18
+ color?: ActionColor | string;
19
+ onClick?: (e: React.MouseEvent) => void;
20
+ };
21
+ export declare type SwipeActionProps = {
22
+ rightActions?: Action[];
23
+ leftActions?: Action[];
24
+ onAction?: (action: Action, e: React.MouseEvent) => void;
25
+ closeOnTouchOutside?: boolean;
26
+ closeOnAction?: boolean;
27
+ children: ReactNode;
28
+ stopPropagation?: PropagationEvent[];
29
+ onActionsReveal?: (side: SideType) => void;
30
+ onClose?: () => void;
31
+ } & NativeProps<'--background'>;
32
+ export declare const SwipeAction: React.ForwardRefExoticComponent<{
33
+ rightActions?: Action[] | undefined;
34
+ leftActions?: Action[] | undefined;
35
+ onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
36
+ closeOnTouchOutside?: boolean | undefined;
37
+ closeOnAction?: boolean | undefined;
38
+ children: ReactNode;
39
+ stopPropagation?: "click"[] | undefined;
40
+ onActionsReveal?: ((side: SideType) => void) | undefined;
41
+ onClose?: (() => void) | undefined;
42
+ } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
43
+ export {};
@@ -0,0 +1,282 @@
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
+ 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); }
3
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
+ 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; }
10
+ 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; }
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
+ import { animated, useSpring } from '@react-spring/web';
15
+ import { useDrag } from '@use-gesture/react/dist/use-gesture-react.cjs';
16
+ import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
17
+ // 本地实现的工具函数和类型
18
+
19
+ // withNativeProps 工具函数
20
+ function withNativeProps(props, element) {
21
+ var p = _objectSpread({}, element.props);
22
+ if (props.className) {
23
+ p.className = props.className + (element.props.className ? " ".concat(element.props.className) : '');
24
+ }
25
+ if (props.style) {
26
+ p.style = _objectSpread(_objectSpread({}, props.style), element.props.style);
27
+ }
28
+ return /*#__PURE__*/React.cloneElement(element, p);
29
+ }
30
+
31
+ // nearest 工具函数
32
+ function nearest(arr, target) {
33
+ return arr.reduce(function (prev, curr) {
34
+ return Math.abs(curr - target) < Math.abs(prev - target) ? curr : prev;
35
+ });
36
+ }
37
+
38
+ // mergeProps 工具函数
39
+ function mergeProps(a, b) {
40
+ return _objectSpread(_objectSpread({}, a), b);
41
+ }
42
+
43
+ // withStopPropagation 工具函数
44
+ function withStopPropagation(events, element) {
45
+ if (!events.includes('click')) {
46
+ return element;
47
+ }
48
+ var onClick = function onClick(e) {
49
+ var _element$props$onClic, _element$props;
50
+ e.stopPropagation();
51
+ (_element$props$onClic = (_element$props = element.props).onClick) === null || _element$props$onClic === void 0 || _element$props$onClic.call(_element$props, e);
52
+ };
53
+ return /*#__PURE__*/React.cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, {
54
+ onClick: onClick
55
+ }));
56
+ }
57
+
58
+ // Button 组件实现
59
+
60
+ var Button = function Button(_ref) {
61
+ var children = _ref.children,
62
+ className = _ref.className,
63
+ style = _ref.style,
64
+ onClick = _ref.onClick;
65
+ return /*#__PURE__*/React.createElement("button", {
66
+ className: className,
67
+ style: _objectSpread({
68
+ border: 'none',
69
+ background: (style === null || style === void 0 ? void 0 : style['--background-color']) || 'transparent'
70
+ }, style),
71
+ onClick: onClick
72
+ }, children);
73
+ };
74
+ import "./index.less";
75
+ var classPrefix = "pisell-custom-swipe-action";
76
+ var defaultProps = {
77
+ rightActions: [],
78
+ leftActions: [],
79
+ closeOnTouchOutside: true,
80
+ closeOnAction: true,
81
+ stopPropagation: []
82
+ };
83
+ export var SwipeAction = /*#__PURE__*/forwardRef(function (p, ref) {
84
+ var props = mergeProps(defaultProps, p);
85
+ var rootRef = useRef(null);
86
+ var leftRef = useRef(null);
87
+ var rightRef = useRef(null);
88
+ function getWidth(ref) {
89
+ var element = ref.current;
90
+ if (!element) return 0;
91
+ return element.offsetWidth;
92
+ }
93
+ function getLeftWidth() {
94
+ return getWidth(leftRef);
95
+ }
96
+ function getRightWidth() {
97
+ return getWidth(rightRef);
98
+ }
99
+ var _useSpring = useSpring(function () {
100
+ return {
101
+ x: 0,
102
+ config: {
103
+ tension: 200,
104
+ friction: 30
105
+ }
106
+ };
107
+ }, []),
108
+ _useSpring2 = _slicedToArray(_useSpring, 2),
109
+ x = _useSpring2[0].x,
110
+ api = _useSpring2[1];
111
+ var draggingRef = useRef(false);
112
+ var dragCancelRef = useRef(null);
113
+ function forceCancelDrag() {
114
+ var _dragCancelRef$curren;
115
+ (_dragCancelRef$curren = dragCancelRef.current) === null || _dragCancelRef$curren === void 0 || _dragCancelRef$curren.call(dragCancelRef);
116
+ draggingRef.current = false;
117
+ }
118
+ var bind = useDrag(function (state) {
119
+ dragCancelRef.current = state.cancel;
120
+ if (!state.intentional) return;
121
+ if (state.down) {
122
+ draggingRef.current = true;
123
+ }
124
+ if (!draggingRef.current) return;
125
+ var _state$offset = _slicedToArray(state.offset, 1),
126
+ offsetX = _state$offset[0];
127
+ if (state.last) {
128
+ var leftWidth = getLeftWidth();
129
+ var rightWidth = getRightWidth();
130
+ var position = offsetX + state.velocity[0] * state.direction[0] * 50;
131
+ if (offsetX > 0) {
132
+ position = Math.max(0, position);
133
+ } else if (offsetX < 0) {
134
+ position = Math.min(0, position);
135
+ } else {
136
+ position = 0;
137
+ }
138
+ var targetX = nearest([-rightWidth, 0, leftWidth], position);
139
+ api.start({
140
+ x: targetX
141
+ });
142
+ if (targetX !== 0) {
143
+ var _p$onActionsReveal;
144
+ (_p$onActionsReveal = p.onActionsReveal) === null || _p$onActionsReveal === void 0 || _p$onActionsReveal.call(p, targetX > 0 ? 'left' : 'right');
145
+ }
146
+ window.setTimeout(function () {
147
+ draggingRef.current = false;
148
+ });
149
+ } else {
150
+ api.start({
151
+ x: offsetX,
152
+ immediate: true
153
+ });
154
+ }
155
+ }, {
156
+ from: function from() {
157
+ return [x.get(), 0];
158
+ },
159
+ bounds: function bounds() {
160
+ var leftWidth = getLeftWidth();
161
+ var rightWidth = getRightWidth();
162
+ return {
163
+ left: -rightWidth,
164
+ right: leftWidth
165
+ };
166
+ },
167
+ axis: 'x',
168
+ preventScroll: true,
169
+ pointer: {
170
+ touch: true
171
+ },
172
+ triggerAllEvents: true
173
+ });
174
+ var close = function close() {
175
+ var _props$onClose;
176
+ api.start({
177
+ x: 0
178
+ });
179
+ forceCancelDrag();
180
+ (_props$onClose = props.onClose) === null || _props$onClose === void 0 || _props$onClose.call(props);
181
+ };
182
+ useImperativeHandle(ref, function () {
183
+ return {
184
+ show: function show() {
185
+ var _p$onActionsReveal2;
186
+ var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'right';
187
+ if (side === 'right') {
188
+ api.start({
189
+ x: -getRightWidth()
190
+ });
191
+ } else if (side === 'left') {
192
+ api.start({
193
+ x: getLeftWidth()
194
+ });
195
+ }
196
+ (_p$onActionsReveal2 = p.onActionsReveal) === null || _p$onActionsReveal2 === void 0 || _p$onActionsReveal2.call(p, side);
197
+ },
198
+ close: close
199
+ };
200
+ });
201
+ useEffect(function () {
202
+ if (!props.closeOnTouchOutside) return;
203
+ function handle(e) {
204
+ if (x.get() === 0) {
205
+ return;
206
+ }
207
+ var root = rootRef.current;
208
+ if (root && !root.contains(e.target)) {
209
+ close();
210
+ }
211
+ }
212
+ document.addEventListener('touchstart', handle);
213
+ return function () {
214
+ document.removeEventListener('touchstart', handle);
215
+ };
216
+ }, [props.closeOnTouchOutside]);
217
+ function renderAction(action) {
218
+ var _action$color, _colorRecord$color;
219
+ var color = (_action$color = action.color) !== null && _action$color !== void 0 ? _action$color : 'light';
220
+ var _style = action.style || {};
221
+ return /*#__PURE__*/React.createElement(Button, {
222
+ key: action.key,
223
+ className: "".concat(classPrefix, "-action-button"),
224
+ style: _objectSpread({
225
+ '--background-color': (_colorRecord$color = colorRecord[color]) !== null && _colorRecord$color !== void 0 ? _colorRecord$color : color
226
+ }, _style),
227
+ onClick: function onClick(e) {
228
+ var _action$onClick, _props$onAction;
229
+ if (props.closeOnAction) {
230
+ close();
231
+ }
232
+ (_action$onClick = action.onClick) === null || _action$onClick === void 0 || _action$onClick.call(action, e);
233
+ (_props$onAction = props.onAction) === null || _props$onAction === void 0 || _props$onAction.call(props, action, e);
234
+ }
235
+ }, action.text);
236
+ }
237
+ return withNativeProps(props, /*#__PURE__*/React.createElement("div", _extends({
238
+ className: classPrefix
239
+ }, bind(), {
240
+ ref: rootRef,
241
+ onClickCapture: function onClickCapture(e) {
242
+ if (draggingRef.current) {
243
+ e.stopPropagation();
244
+ e.preventDefault();
245
+ }
246
+ }
247
+ }), /*#__PURE__*/React.createElement(animated.div, {
248
+ className: "".concat(classPrefix, "-track"),
249
+ style: {
250
+ x: x
251
+ }
252
+ }, withStopPropagation(props.stopPropagation, /*#__PURE__*/React.createElement("div", {
253
+ className: "".concat(classPrefix, "-actions ").concat(classPrefix, "-actions-left"),
254
+ ref: leftRef
255
+ }, props.leftActions.map(renderAction))), /*#__PURE__*/React.createElement("div", {
256
+ className: "".concat(classPrefix, "-content"),
257
+ onClickCapture: function onClickCapture(e) {
258
+ if (x.goal !== 0) {
259
+ e.preventDefault();
260
+ e.stopPropagation();
261
+ close();
262
+ }
263
+ }
264
+ }, /*#__PURE__*/React.createElement(animated.div, {
265
+ style: {
266
+ pointerEvents: x.to(function (v) {
267
+ return v !== 0 && x.goal !== 0 ? 'none' : 'auto';
268
+ })
269
+ }
270
+ }, props.children)), withStopPropagation(props.stopPropagation, /*#__PURE__*/React.createElement("div", {
271
+ className: "".concat(classPrefix, "-actions ").concat(classPrefix, "-actions-right"),
272
+ ref: rightRef
273
+ }, props.rightActions.map(renderAction))))));
274
+ });
275
+ var colorRecord = {
276
+ light: '#ccc',
277
+ weak: '#999',
278
+ primary: '#1677ff',
279
+ success: '#00b578',
280
+ warning: '#ff8f1f',
281
+ danger: '#ff3141'
282
+ };
@@ -0,0 +1,35 @@
1
+ .pisell-custom-swipe-action {
2
+ cursor: grab;
3
+ overflow: hidden;
4
+ touch-action: pan-y;
5
+ &-track {
6
+ position: relative;
7
+ overflow: visible;
8
+ }
9
+ &-content {
10
+ }
11
+ &-actions {
12
+ position: absolute;
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: stretch;
16
+ width: auto;
17
+ white-space: nowrap;
18
+ &-right {
19
+ left: 100%;
20
+ top: 0;
21
+ height: 100%;
22
+ }
23
+ &-left {
24
+ right: 100%;
25
+ top: 0;
26
+ height: 100%;
27
+ }
28
+ }
29
+ &-action-button {
30
+ --border-radius: 0;
31
+ --border-width: 0;
32
+ padding-left: 4px;
33
+ padding-right: 4px;
34
+ }
35
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import 'dayjs/locale/zh-cn';
3
2
  import 'dayjs/locale/en';
4
3
  import 'dayjs/locale/zh-tw';