@pisell/materials 3.3.39 → 3.3.41

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 (254) 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 +2 -2
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.js +24 -24
  8. package/build/lowcode/view.js +30 -30
  9. package/es/components/DragSortList/index.js +6 -6
  10. package/es/components/Pagination/index.d.ts +1 -1
  11. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  12. package/es/components/badge/index.d.ts +7 -0
  13. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  14. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  15. package/es/components/cardMetricItem/index.d.ts +12 -0
  16. package/es/components/cardPro/index.d.ts +3 -0
  17. package/es/components/classicLayout/index.js +4 -5
  18. package/es/components/collapse/index.d.ts +15 -0
  19. package/es/components/cropPhoto/index.d.ts +3 -0
  20. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  21. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  22. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  23. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  24. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  25. package/es/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
  26. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  27. package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  28. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  29. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  30. package/es/components/dataSourceComponents/fields/index.d.ts +2 -2
  31. package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
  32. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  33. package/es/components/date-picker/datePickerCpt.d.ts +8 -0
  34. package/es/components/date-picker/index.d.ts +1 -0
  35. package/es/components/div/index.d.ts +19 -0
  36. package/es/components/icon/index.js +5 -5
  37. package/es/components/iconfont/index.d.ts +8 -0
  38. package/es/components/list/index.js +6 -6
  39. package/es/components/page/index.d.ts +6 -0
  40. package/es/components/pisellAnchor/index.d.ts +23 -0
  41. package/es/components/pisellAvatar/index.d.ts +19 -0
  42. package/es/components/pisellCard/index.d.ts +19 -0
  43. package/es/components/pisellCardList/index.d.ts +73 -0
  44. package/es/components/pisellCheckboxGroup/index.d.ts +36 -0
  45. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  46. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  47. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  48. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  49. package/es/components/pisellDraggable/index.d.ts +35 -0
  50. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  51. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  52. package/es/components/pisellDropSort/types.d.ts +58 -0
  53. package/es/components/pisellDropdown/index.d.ts +20 -0
  54. package/es/components/pisellGoodPassCard/index.d.ts +49 -0
  55. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  56. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  57. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  58. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  59. package/es/components/pisellList01/index.d.ts +17 -0
  60. package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
  61. package/es/components/pisellMenu/types.d.ts +27 -0
  62. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  63. package/es/components/pisellNavigationMenu/types.d.ts +85 -0
  64. package/es/components/pisellQrcode/index.d.ts +10 -0
  65. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  66. package/es/components/pisellStatisticList/index.d.ts +21 -0
  67. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  68. package/es/components/pisellWalletPassCard/index.d.ts +85 -0
  69. package/es/components/productCard/components/Action/index.d.ts +3 -0
  70. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  71. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  72. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  73. package/es/components/productCard/components/Header/index.d.ts +3 -0
  74. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  75. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  76. package/es/components/productCard/components/Note/index.d.ts +3 -0
  77. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  78. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  79. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  80. package/es/components/productCard/components/Packages/index.d.ts +3 -0
  81. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  82. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  83. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  84. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  85. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  86. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  87. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  88. package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
  89. package/es/components/productCard/index.d.ts +5 -0
  90. package/es/components/productCard/utils.d.ts +31 -0
  91. package/es/components/productCard/utils.js +8 -6
  92. package/es/components/qrcode/index.js +1 -1
  93. package/es/components/record-view/index.d.ts +37 -0
  94. package/es/components/section-footers/index.d.ts +9 -0
  95. package/es/components/sort/components/InlineMenu/index.js +1 -1
  96. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  97. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  98. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  99. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  100. package/es/components/table/Header/Buttons/index.js +5 -5
  101. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  102. package/es/components/table/Table/SelectField/index.js +4 -4
  103. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  104. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  105. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  106. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  107. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  108. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  109. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  110. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  111. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  112. package/es/components/table/Table/utils.d.ts +1 -1
  113. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  114. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  115. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  116. package/es/components/tabs/index.d.ts +16 -0
  117. package/es/components/translation/index.d.ts +14 -0
  118. package/es/components/translation/utils.js +5 -5
  119. package/es/components/walletCard/Guest/index.d.ts +3 -0
  120. package/es/components/walletCard/Guide/index.d.ts +3 -0
  121. package/es/hooks/useResponsive.js +2 -2
  122. package/es/index.d.ts +141 -0
  123. package/es/locales/index.d.ts +1 -0
  124. package/es/utils/hoc.js +1 -1
  125. package/es/utils/index.d.ts +4 -0
  126. package/es/utils/miniRedux.js +8 -9
  127. package/lib/components/Pagination/index.d.ts +1 -1
  128. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  129. package/lib/components/badge/index.d.ts +7 -0
  130. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  131. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  132. package/lib/components/cardMetricItem/index.d.ts +12 -0
  133. package/lib/components/cardPro/index.d.ts +3 -0
  134. package/lib/components/collapse/index.d.ts +15 -0
  135. package/lib/components/cropPhoto/index.d.ts +3 -0
  136. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  137. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  138. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  139. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  140. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  141. package/lib/components/dataSourceComponents/fields/Upload/WithMode.d.ts +4 -0
  142. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  143. package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
  144. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  145. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  146. package/lib/components/dataSourceComponents/fields/index.d.ts +2 -2
  147. package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
  148. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  149. package/lib/components/date-picker/datePickerCpt.d.ts +8 -0
  150. package/lib/components/date-picker/index.d.ts +1 -0
  151. package/lib/components/div/index.d.ts +19 -0
  152. package/lib/components/iconfont/index.d.ts +8 -0
  153. package/lib/components/lowCodePage/index.js +1 -2
  154. package/lib/components/page/index.d.ts +6 -0
  155. package/lib/components/pisellAnchor/index.d.ts +23 -0
  156. package/lib/components/pisellAvatar/index.d.ts +19 -0
  157. package/lib/components/pisellCard/index.d.ts +19 -0
  158. package/lib/components/pisellCardList/index.d.ts +73 -0
  159. package/lib/components/pisellCheckboxGroup/index.d.ts +36 -0
  160. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  161. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  162. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  163. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  164. package/lib/components/pisellDraggable/index.d.ts +35 -0
  165. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  166. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  167. package/lib/components/pisellDropSort/types.d.ts +58 -0
  168. package/lib/components/pisellDropdown/index.d.ts +20 -0
  169. package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
  170. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  171. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  172. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  173. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  174. package/lib/components/pisellList01/index.d.ts +17 -0
  175. package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
  176. package/lib/components/pisellMenu/types.d.ts +27 -0
  177. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  178. package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
  179. package/lib/components/pisellQrcode/index.d.ts +10 -0
  180. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  181. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  182. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  183. package/lib/components/pisellWalletPassCard/index.d.ts +85 -0
  184. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  185. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  186. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  187. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  188. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  189. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  190. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  191. package/lib/components/productCard/components/Note/index.d.ts +3 -0
  192. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  193. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  194. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  195. package/lib/components/productCard/components/Packages/index.d.ts +3 -0
  196. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  197. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  198. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  199. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  200. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  201. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  202. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  203. package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
  204. package/lib/components/productCard/index.d.ts +5 -0
  205. package/lib/components/productCard/utils.d.ts +31 -0
  206. package/lib/components/productCard/utils.js +7 -6
  207. package/lib/components/record-view/index.d.ts +37 -0
  208. package/lib/components/section-footers/index.d.ts +9 -0
  209. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  210. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  211. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  212. package/lib/components/table/Table/fields/utils/index.js +1 -2
  213. package/lib/components/table/Table/utils.d.ts +1 -1
  214. package/lib/components/tabs/index.d.ts +16 -0
  215. package/lib/components/translation/index.d.ts +14 -0
  216. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  217. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  218. package/lib/hooks/useResponsive.js +3 -6
  219. package/lib/index.d.ts +141 -0
  220. package/lib/locales/index.d.ts +1 -0
  221. package/lib/utils/index.d.ts +4 -0
  222. package/package.json +3 -3
  223. package/dist/umd/materials.min.css +0 -1
  224. package/dist/umd/materials.min.js +0 -1
  225. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  226. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  227. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  228. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  229. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  230. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  231. package/es/components/appVersionControl/index.d.ts +0 -4
  232. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  233. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  234. package/es/components/drag-sort-tree/index.d.ts +0 -4
  235. package/es/components/pisellAdjustPrice/index.d.ts +0 -9
  236. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  237. package/es/components/table/Table/index.d.ts +0 -4
  238. package/es/components/table/types.d.ts +0 -251
  239. package/es/components/versionModal/index.d.ts +0 -23
  240. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
  241. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  242. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  243. package/lib/components/appVersionControl/index.d.ts +0 -4
  244. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  245. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  246. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  247. package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
  248. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  249. package/lib/components/table/Table/index.d.ts +0 -4
  250. package/lib/components/table/types.d.ts +0 -251
  251. package/lib/components/versionModal/index.d.ts +0 -23
  252. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
  253. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  254. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../../../pisell-config-provider/context';
3
+ export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** 平台 */
5
+ platform?: PisellContextType['platform'];
6
+ /** 当前数值 */
7
+ value?: number | string;
8
+ /** 小数点后位数 默认是小数点后2位 */
9
+ precision?: number;
10
+ /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
+ showCurrencySymbol?: boolean;
12
+ /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
+ useThousandsSeparator?: boolean;
14
+ /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
+ hideDecimalForWholeNumbers?: boolean;
16
+ /** 货币符号 */
17
+ symbol?: string;
18
+ }
19
+ declare const Amount: (props: AmountProps) => JSX.Element;
20
+ export default Amount;
@@ -0,0 +1,85 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ export interface PisellWalletPassCardProps {
4
+ id: number;
5
+ /** 卡片样式 */
6
+ type: 'default' | 'mini';
7
+ /** 商品名称 */
8
+ name: string;
9
+ /** 二维码 */
10
+ qrCode: string;
11
+ /** 共享店铺名称 */
12
+ storeName: string;
13
+ /** 余额 */
14
+ balance?: number;
15
+ /** 识别码编号 */
16
+ code: string;
17
+ /** 有效期 */
18
+ validDate: string;
19
+ /** 使用金额 */
20
+ redeem?: number;
21
+ /** 是否禁用 */
22
+ disabled?: boolean;
23
+ /** 禁用原因 */
24
+ disabledReason?: string;
25
+ /** 是否展示禁用原因 */
26
+ showDisabledReason?: boolean;
27
+ /** 封面图 */
28
+ cover?: string;
29
+ /** 余额标题文案 */
30
+ balanceTitle?: string;
31
+ /** 使用金额标题文案 */
32
+ redeemTitle?: string;
33
+ /** 是否选中 */
34
+ active?: boolean;
35
+ /** 是否展示商品名称 */
36
+ showName?: boolean;
37
+ /** 是否展示共享店铺名称 */
38
+ showStoreName?: boolean;
39
+ /** 是否展示使用金额 */
40
+ showRedeem?: boolean;
41
+ /** 是否展示余额 */
42
+ showBalance?: boolean;
43
+ /** 是否展示识别码编号 */
44
+ showCode?: boolean;
45
+ /** 是否展示有效期 */
46
+ showValidDate?: boolean;
47
+ /** 是否展示右上角详情按钮 */
48
+ showDetail?: boolean;
49
+ /** 是否展示qrCode */
50
+ showQrCode?: boolean;
51
+ /** 是否展示封面 */
52
+ showCover?: boolean;
53
+ /** 是否展示余额货币符号 */
54
+ showBalanceSymbol?: boolean;
55
+ /** 展示操作按钮 */
56
+ showActions?: boolean;
57
+ /** 操作按钮配置 */
58
+ actions?: {
59
+ /** 按钮展示方式 */
60
+ layout: 'expanded' | 'collapsed';
61
+ /** detail 按钮配置 */
62
+ detail?: {
63
+ visible: boolean;
64
+ iconColor: string;
65
+ };
66
+ /** edit按钮配置 */
67
+ edit?: {
68
+ visible: boolean;
69
+ iconColor: string;
70
+ dialogTitle: string;
71
+ enableDialog: boolean;
72
+ fields: {
73
+ name: string;
74
+ label: string;
75
+ };
76
+ };
77
+ };
78
+ /** 编辑编辑按钮后,弹窗展示之前 */
79
+ beforeEdit?: (value: any) => Promise<any> | boolean | void;
80
+ /** 编辑弹窗点击提交 */
81
+ onConfirmEdit?: (value: any) => void;
82
+ [key: string]: any;
83
+ }
84
+ declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
85
+ export default PisellWalletPassCard;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
3
+ export default Action;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
+ export default Footer;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Divider: ({ type }: any) => JSX.Element;
3
+ export default Divider;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const EditButton: ({ onEdit }: any) => JSX.Element;
3
+ export default EditButton;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: (props: any) => JSX.Element;
3
+ export default Header;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Note: (props: any) => JSX.Element | null;
3
+ export default Note;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapsibleListProps<T> {
4
+ list: T[];
5
+ renderItem: (item: T, index: number) => React.ReactNode;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ }
9
+ declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
10
+ export default CollapsibleList;
@@ -0,0 +1 @@
1
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
+ export default Options;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
+ export default Packages;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @title: 金额是否是负
3
+ * @description:
4
+ * @param {string} type
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-11-22 10:01
8
+ */
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
+ /**
11
+ * @title: 金额格式化
12
+ * @description:
13
+ * @param {number} price
14
+ * @param {string} amountSymbol
15
+ * @param {number} digit
16
+ * @return {*}
17
+ * @Author: WangHan
18
+ * @Date: 2024-11-22 10:58
19
+ */
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
+ export default Sales;
@@ -0,0 +1,9 @@
1
+ import './index.less';
2
+ declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
3
+ style?: any;
4
+ status: string;
5
+ onLike?: any;
6
+ className?: string | undefined;
7
+ isShowChangeResource?: boolean | undefined;
8
+ }) => JSX.Element;
9
+ export default Like;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
3
+ export default SelectHolder;
@@ -0,0 +1,13 @@
1
+ import './index.less';
2
+ interface SelectHolderModalProps {
3
+ visible: boolean;
4
+ onClose: () => void;
5
+ onConfirm: (value: any) => void;
6
+ lists: any[];
7
+ value: any[];
8
+ holderMaxCount: number;
9
+ addHolderButtonText: string;
10
+ onAdd: () => void;
11
+ }
12
+ declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
13
+ export default SelectHolderModal;
@@ -0,0 +1,2 @@
1
+ declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
2
+ export default SelectHolderMultiple;
@@ -0,0 +1,18 @@
1
+ import './index.less';
2
+ interface ResourceItem {
3
+ id: string | number;
4
+ label: string;
5
+ isError?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ interface SelectResourceProps {
9
+ lists: ResourceItem[];
10
+ value: any;
11
+ onChange: (val: any) => void;
12
+ resourceMode?: 'multiple' | 'tags' | undefined;
13
+ maxLength?: number;
14
+ isParallelResource?: boolean;
15
+ [key: string]: any;
16
+ }
17
+ declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
18
+ export default SelectResource;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ProductCardTypes } from './types';
3
+ import './index.less';
4
+ declare const ProductCard: React.FC<ProductCardTypes>;
5
+ export default ProductCard;
@@ -0,0 +1,31 @@
1
+ import 'dayjs/locale/zh-cn';
2
+ import 'dayjs/locale/en';
3
+ import 'dayjs/locale/zh-tw';
4
+ /**
5
+ * @title: 是否英文
6
+ * @description:
7
+ * @param {any} item
8
+ * @return {*}
9
+ * @Author: WangHan
10
+ * @Date: 2024-12-28 22:49
11
+ */
12
+ export declare const isEn: (item: any) => boolean;
13
+ /**
14
+ * @title: 跨日预约时间
15
+ * @description:
16
+ * @param {any} item
17
+ * @return {*}
18
+ * @Author: WangHan
19
+ * @Date: 2024-12-28 22:50
20
+ */
21
+ export declare const formatMultiDayDate: (item: any) => string;
22
+ /**
23
+ * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
24
+ * @description:
25
+ * @param {any} item
26
+ * @param {any} currentDate
27
+ * @return {*}
28
+ * @Author: zhiwei.Wang
29
+ * @Date: 2024-04-26 14:04
30
+ */
31
+ export declare const getServiceTime: (item: any, currentDate: any) => string;
@@ -60,6 +60,8 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
60
60
  var utils = context.appHelper.utils || {};
61
61
  var locale = (item === null || item === void 0 ? void 0 : item.locale) || (utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('umi_locale')) || 'en-US';
62
62
  var isEn = locale === 'en-US' || locale === 'en';
63
+ // 灵活时长, 默认按分钟计算
64
+ var durationType = (item === null || item === void 0 ? void 0 : item.duration_type) === 'flexible' ? 'minutes' : item === null || item === void 0 ? void 0 : item.duration_type;
63
65
  var localeTypes = {
64
66
  'en-US': 'en',
65
67
  'zh-CN': 'zh-cn',
@@ -71,7 +73,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
71
73
  var diffInDays = (item === null || item === void 0 ? void 0 : item.custom_day_count) || endDate.diff(startDate, 'day');
72
74
 
73
75
  // 1.2时间格式, 同天显示 年月日 开始 - 结束, 不同天 年月日 开始 - 年月日 结束
74
- if (item !== null && item !== void 0 && item.duration_type) {
76
+ if (durationType) {
75
77
  var sameDay = startDate.isSame(endDate, 'day');
76
78
  var dateFormat = isEn ? 'DD/MM/YYYY' : 'YYYY-MM-DD';
77
79
  var timeFormat = 'HH:mm';
@@ -98,14 +100,14 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
98
100
  }
99
101
  var startDateTime = "".concat(startDate.format('YYYY-MM-DD'), " ").concat(startTime);
100
102
  var endDateTime = "".concat(endDate.format('YYYY-MM-DD'), " ").concat(endTime);
101
- var _duration = dayjs(endDateTime).diff(dayjs(startDateTime), item === null || item === void 0 ? void 0 : item.duration_type);
103
+ var _duration = dayjs(endDateTime).diff(dayjs(startDateTime), durationType);
102
104
  var durationText = '';
103
- if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'minutes') {
105
+ if (durationType === 'minutes') {
104
106
  // 转为小时+分钟
105
107
  var hours = Math.floor(_duration / 60);
106
108
  var minutes = _duration % 60;
107
109
  durationText = locales.getText('pisell2.product.card.hour.minute')(hours, minutes);
108
- } else if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'days') {
110
+ } else if (durationType === 'days') {
109
111
  durationText = locales.getText('pisell2.product.card.day')(_duration);
110
112
  } else {
111
113
  durationText = "".concat(_duration);
@@ -127,7 +129,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
127
129
  }
128
130
 
129
131
  // 显示时长分钟
130
- if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'minutes') {
132
+ if (durationType === 'minutes') {
131
133
  diffInDays = endDate.diff(startDate, 'minute');
132
134
  }
133
135
  var date = "".concat(startDate.format(_format), " ~ ").concat(endDate.format(_format));
@@ -141,7 +143,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
141
143
  'minutes': locales.getText('pisell2.product.card.minute')(diffInDays),
142
144
  'event': locales.getText('pisell2.product.card.day.event')(diffInDays)
143
145
  };
144
- text = (textTypes === null || textTypes === void 0 ? void 0 : textTypes[item === null || item === void 0 ? void 0 : item.duration_type]) || text;
146
+ text = (textTypes === null || textTypes === void 0 ? void 0 : textTypes[durationType]) || text;
145
147
  var duration = "".concat(diffInDays).concat(text);
146
148
  return "".concat(date, " (").concat(duration, ")");
147
149
  };
@@ -3,7 +3,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
3
3
  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."); }
4
4
  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); }
5
5
  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; }
6
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ 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; } }
7
7
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  import React, { useMemo } from "react";
9
9
  import { QRCode as AntQRCode, Modal } from "antd";
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface RecordViewProps {
4
+ dataSource: any[];
5
+ doubleList: boolean;
6
+ header?: React.ReactNode;
7
+ footer?: React.ReactNode;
8
+ renderItem?: (item: any) => React.ReactNode;
9
+ pcDetailModalDisplay?: boolean;
10
+ padDetailModalDisplay?: boolean;
11
+ mobilePadDetailModalDisplay?: boolean;
12
+ detail: React.ReactNode;
13
+ leftSpan?: number;
14
+ rightSpan?: number;
15
+ gutter: number | [number, number];
16
+ pagination?: object;
17
+ style?: React.CSSProperties;
18
+ onRowClick: (item: any) => void;
19
+ paginationType?: 'default' | 'scroll';
20
+ listGap?: number;
21
+ loadMoreData?: () => void;
22
+ listHeight?: number;
23
+ children: any;
24
+ split?: boolean;
25
+ doubleListSource?: any[];
26
+ locale?: {
27
+ emptyText: string;
28
+ };
29
+ emptyButtons: any[];
30
+ isShowClode?: boolean;
31
+ modalWrapStyle?: React.CSSProperties;
32
+ }
33
+ export interface AppearanceEditRef {
34
+ closeDetailModal: () => void;
35
+ }
36
+ declare const _default: React.ForwardRefExoticComponent<RecordViewProps & React.RefAttributes<AppearanceEditRef>>;
37
+ export default _default;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface SectionFooterProps {
3
+ left?: React.ReactNode;
4
+ middle?: React.ReactNode;
5
+ right?: React.ReactNode;
6
+ className?: string;
7
+ }
8
+ declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
9
+ export default SectionFooters;
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
2
2
  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."); }
3
3
  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); }
4
4
  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; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
5
+ 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; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useMemo } from "react";
8
8
  import { Menu, Divider } from "antd";
@@ -1,11 +1,11 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
2
  var _excluded = ["children", "isActive"];
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
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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
+ 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; }
6
6
  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; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ 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); }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  import React, { Children, isValidElement, cloneElement } from "react";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @title: 格式化导出导入接口地址
3
+ * @description:
4
+ * @param {string} url
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-09-05 11:39
8
+ */
9
+ export declare const formatApiUrl: (url: string) => string;
@@ -30,7 +30,7 @@ var ViewMode = function ViewMode(props) {
30
30
  });
31
31
  }, [modeList]);
32
32
  var handleClick = function handleClick(e) {
33
- onChange === null || onChange === void 0 ? void 0 : onChange(e.key);
33
+ onChange === null || onChange === void 0 || onChange(e.key);
34
34
  };
35
35
  return /*#__PURE__*/React.createElement(Dropdown, {
36
36
  menu: {
@@ -1,7 +1,7 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
2
  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; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
4
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ 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); }
5
5
  import React, { useMemo } from "react";
6
6
  import classNames from "classnames";
7
7
  import { Tooltip } from "antd";
@@ -10,7 +10,6 @@ import { getValueByKeys } from "../../../../../Table/fields/utils";
10
10
  import "./index.less";
11
11
  var prefix = "pisell-lowcode-";
12
12
  var RenderFields = function RenderFields(props) {
13
- var _classNames;
14
13
  var fields = props.fields,
15
14
  columnsMap = props.columnsMap,
16
15
  showMode = props.showMode,
@@ -40,7 +39,7 @@ var RenderFields = function RenderFields(props) {
40
39
  return fieldsList;
41
40
  }, [fields, columnsMap, record, isShowLabel]);
42
41
  return /*#__PURE__*/React.createElement("div", {
43
- className: classNames("".concat(prefix, "gallery-render-fields-wrap"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "gallery-render-fields-wrap-inline"), showMode === "inline"), _defineProperty(_classNames, "".concat(prefix, "gallery-render-fields-wrap-block"), showMode === "block"), _classNames))
42
+ className: classNames("".concat(prefix, "gallery-render-fields-wrap"), _defineProperty(_defineProperty({}, "".concat(prefix, "gallery-render-fields-wrap-inline"), showMode === "inline"), "".concat(prefix, "gallery-render-fields-wrap-block"), showMode === "block"))
44
43
  }, fieldContent);
45
44
  };
46
45
  export default RenderFields;
@@ -1,10 +1,10 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
+ 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; }
4
+ 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; }
5
5
  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; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ 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); }
8
8
  import React from "react";
9
9
  import { Button } from "antd";
10
10
  import "./index.less";
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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 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; }
3
+ 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; }
4
4
  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; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
7
7
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
8
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
9
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -12,7 +12,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
12
12
  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."); }
13
13
  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); }
14
14
  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; }
15
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
15
+ 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; } }
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  import IconFont from "../../../iconfont";
18
18
  import { Form, Input, Popover, message } from "antd";
@@ -1,12 +1,12 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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
2
  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; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
4
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ 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); }
5
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
6
  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."); }
7
7
  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); }
8
8
  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; }
9
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
9
+ 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; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import IconFont from "../../../iconfont";
12
12
  // import Search from "@/components/Search";