@pisell/materials 2.2.80 → 2.2.82

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 (253) 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 +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +41 -31
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +37 -27
  11. package/es/components/batch-editor/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  17. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/index.d.ts +7 -6
  21. package/es/components/date-picker/index.d.ts +1 -0
  22. package/es/components/iconfont/index.js +1 -1
  23. package/es/components/page/index.d.ts +1 -0
  24. package/es/components/pisellInput/index.d.ts +1 -0
  25. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  26. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  27. package/es/components/pisellModal/components/index.d.ts +1 -0
  28. package/es/components/pisellToast/index.js +3 -0
  29. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  30. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  31. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
  32. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  33. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  34. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  35. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  36. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  37. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  38. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  39. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  40. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  41. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  42. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  43. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  44. package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
  45. package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  46. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  47. package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
  48. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  49. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  50. package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
  51. package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  52. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  53. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
  54. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  55. package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
  56. package/es/components/productCard/cartSkuCard/index.js +195 -0
  57. package/es/components/productCard/cartSkuCard/index.less +69 -0
  58. package/es/components/productCard/cartSkuCard/locales.d.ts +93 -0
  59. package/es/components/productCard/cartSkuCard/locales.js +27 -0
  60. package/es/components/productCard/components/AmountFooter/index.js +22 -6
  61. package/es/components/productCard/components/AmountFooter/index.less +28 -1
  62. package/es/components/productCard/components/Packages/utils.d.ts +2 -2
  63. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  64. package/es/components/productCard/components/Warning/index.js +48 -0
  65. package/es/components/productCard/index.d.ts +3 -1
  66. package/es/components/productCard/index.js +10 -8
  67. package/es/components/productCard/locales.d.ts +3 -0
  68. package/es/components/productCard/locales.js +6 -3
  69. package/es/components/productCard/status.js +3 -1
  70. package/es/components/productCard/types.d.ts +1 -0
  71. package/es/components/productCard/utils.js +8 -6
  72. package/es/components/select-time/index.d.ts +1 -0
  73. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  74. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  75. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  76. package/es/components/table/Actions/index.d.ts +1 -0
  77. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  78. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  79. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  80. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  81. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/index.d.ts +3 -2
  85. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  87. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  90. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  91. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  92. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  93. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  94. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  95. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  96. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  97. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  98. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  99. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  100. package/es/components/table/Table/utils.d.ts +1 -1
  101. package/es/components/versionSelect/index.d.ts +1 -0
  102. package/es/utils/index.d.ts +1 -1
  103. package/es/utils/platform.d.ts +1 -1
  104. package/lib/components/batch-editor/index.d.ts +1 -0
  105. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
  106. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  107. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  108. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  109. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  110. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  111. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  112. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  113. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -6
  114. package/lib/components/date-picker/index.d.ts +1 -0
  115. package/lib/components/iconfont/index.js +1 -1
  116. package/lib/components/page/index.d.ts +1 -0
  117. package/lib/components/pisellInput/index.d.ts +1 -0
  118. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  119. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  120. package/lib/components/pisellModal/components/index.d.ts +1 -0
  121. package/lib/components/pisellToast/index.js +3 -0
  122. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  123. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  124. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
  125. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  126. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  127. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  128. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +4 -0
  129. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  130. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  131. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  132. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  133. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  134. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  135. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  136. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
  137. package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
  138. package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  139. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  140. package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
  141. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  142. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  143. package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
  144. package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  145. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +7 -0
  146. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
  147. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  148. package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
  149. package/lib/components/productCard/cartSkuCard/index.js +216 -0
  150. package/lib/components/productCard/cartSkuCard/index.less +69 -0
  151. package/lib/components/productCard/cartSkuCard/locales.d.ts +93 -0
  152. package/lib/components/productCard/cartSkuCard/locales.js +58 -0
  153. package/lib/components/productCard/components/AmountFooter/index.js +16 -6
  154. package/lib/components/productCard/components/AmountFooter/index.less +28 -1
  155. package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
  156. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  157. package/lib/components/productCard/components/Warning/index.js +68 -0
  158. package/lib/components/productCard/index.d.ts +3 -1
  159. package/lib/components/productCard/index.js +6 -11
  160. package/lib/components/productCard/locales.d.ts +3 -0
  161. package/lib/components/productCard/locales.js +6 -3
  162. package/lib/components/productCard/status.js +3 -1
  163. package/lib/components/productCard/types.d.ts +1 -0
  164. package/lib/components/productCard/utils.js +7 -6
  165. package/lib/components/select-time/index.d.ts +1 -0
  166. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  167. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  168. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  169. package/lib/components/table/Actions/index.d.ts +1 -0
  170. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  171. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  172. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  173. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  174. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  175. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  176. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  177. package/lib/components/table/Table/fields/index.d.ts +3 -2
  178. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  179. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  180. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  181. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  182. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  183. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  184. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  185. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  186. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  187. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  188. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  189. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  190. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  191. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  192. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  193. package/lib/components/table/Table/utils.d.ts +1 -1
  194. package/lib/components/versionSelect/index.d.ts +1 -0
  195. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +8 -1
  196. package/lib/utils/index.d.ts +1 -1
  197. package/lib/utils/platform.d.ts +1 -1
  198. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  199. package/package.json +1 -1
  200. package/es/components/appVersionControl/index.d.ts +0 -4
  201. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  202. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  203. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  204. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  205. package/es/components/drag-sort-tree/index.d.ts +0 -4
  206. package/es/components/iconfont/index.d.ts +0 -8
  207. package/es/components/login-and-register/index.d.ts +0 -82
  208. package/es/components/media/index.d.ts +0 -4
  209. package/es/components/media/index.js +0 -340
  210. package/es/components/media/index.less +0 -100
  211. package/es/components/pisell-config-provider/index.d.ts +0 -12
  212. package/es/components/pisellAdjustPrice/index.d.ts +0 -9
  213. package/es/components/pisellEmpty/index.d.ts +0 -19
  214. package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
  215. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  216. package/es/components/productCard/components/Time/index.d.ts +0 -3
  217. package/es/components/table/Table/index.d.ts +0 -4
  218. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  219. package/es/components/table/types.d.ts +0 -251
  220. package/es/components/versionModal/index.d.ts +0 -23
  221. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
  222. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  223. package/es/components/walletCard/index.d.ts +0 -67
  224. package/es/locales/en-US.d.ts +0 -278
  225. package/es/locales/zh-CN.d.ts +0 -273
  226. package/es/locales/zh-TW.d.ts +0 -273
  227. package/lib/components/appVersionControl/index.d.ts +0 -4
  228. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  229. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  230. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  231. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  232. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  233. package/lib/components/iconfont/index.d.ts +0 -8
  234. package/lib/components/login-and-register/index.d.ts +0 -82
  235. package/lib/components/media/index.d.ts +0 -4
  236. package/lib/components/media/index.js +0 -265
  237. package/lib/components/media/index.less +0 -100
  238. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  239. package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
  240. package/lib/components/pisellEmpty/index.d.ts +0 -19
  241. package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +0 -8
  242. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  243. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  244. package/lib/components/table/Table/index.d.ts +0 -4
  245. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  246. package/lib/components/table/types.d.ts +0 -251
  247. package/lib/components/versionModal/index.d.ts +0 -23
  248. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
  249. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  250. package/lib/components/walletCard/index.d.ts +0 -67
  251. package/lib/locales/en-US.d.ts +0 -278
  252. package/lib/locales/zh-CN.d.ts +0 -273
  253. package/lib/locales/zh-TW.d.ts +0 -273
@@ -24,6 +24,7 @@ declare const _default: {
24
24
  'pisell2.product.card.add.holder.modal.clear': string;
25
25
  'pisell2.product.card.add.holder.modal.apply': string;
26
26
  'pisell2.product.card.add.holder.modal.add': string;
27
+ 'pisell2.product.card.closing-soon.warning': string;
27
28
  };
28
29
  'zh-CN': {
29
30
  'pisell2.product.card.edit': string;
@@ -50,6 +51,7 @@ declare const _default: {
50
51
  'pisell2.product.card.add.holder.modal.clear': string;
51
52
  'pisell2.product.card.add.holder.modal.apply': string;
52
53
  'pisell2.product.card.add.holder.modal.add': string;
54
+ 'pisell2.product.card.closing-soon.warning': string;
53
55
  };
54
56
  'zh-HK': {
55
57
  'pisell2.product.card.edit': string;
@@ -76,6 +78,7 @@ declare const _default: {
76
78
  'pisell2.product.card.add.holder.modal.clear': string;
77
79
  'pisell2.product.card.add.holder.modal.apply': string;
78
80
  'pisell2.product.card.add.holder.modal.add': string;
81
+ 'pisell2.product.card.closing-soon.warning': string;
79
82
  };
80
83
  };
81
84
  export default _default;
@@ -47,7 +47,8 @@ var locales_default = {
47
47
  "pisell2.product.card.add.holder.modal.cancel": "Cancel",
48
48
  "pisell2.product.card.add.holder.modal.clear": "Clear",
49
49
  "pisell2.product.card.add.holder.modal.apply": "Apply",
50
- "pisell2.product.card.add.holder.modal.add": "Add New"
50
+ "pisell2.product.card.add.holder.modal.add": "Add New",
51
+ "pisell2.product.card.closing-soon.warning": "The venue will close soon. Please make sure you have enough time for your visit."
51
52
  },
52
53
  "zh-CN": {
53
54
  "pisell2.product.card.edit": "编辑",
@@ -73,7 +74,8 @@ var locales_default = {
73
74
  "pisell2.product.card.add.holder.modal.cancel": "取消",
74
75
  "pisell2.product.card.add.holder.modal.clear": "清除",
75
76
  "pisell2.product.card.add.holder.modal.apply": "应用",
76
- "pisell2.product.card.add.holder.modal.add": "添加"
77
+ "pisell2.product.card.add.holder.modal.add": "添加",
78
+ "pisell2.product.card.closing-soon.warning": "当前入场时间临近营业结束,请确认是否仍要购买。"
77
79
  },
78
80
  "zh-HK": {
79
81
  "pisell2.product.card.edit": "編輯",
@@ -99,6 +101,7 @@ var locales_default = {
99
101
  "pisell2.product.card.add.holder.modal.cancel": "取消",
100
102
  "pisell2.product.card.add.holder.modal.clear": "清除",
101
103
  "pisell2.product.card.add.holder.modal.apply": "應用",
102
- "pisell2.product.card.add.holder.modal.add": "添加"
104
+ "pisell2.product.card.add.holder.modal.add": "添加",
105
+ "pisell2.product.card.closing-soon.warning": "當前入場時間臨近營業結束,請確認是否仍要購買。"
103
106
  }
104
107
  };
@@ -61,7 +61,9 @@ var defaultValue = {
61
61
  isShowPackageNote: true,
62
62
  isShowEditProduct: false,
63
63
  locale: "en-US",
64
- symbol: "$"
64
+ symbol: "$",
65
+ // os层自定义错误提示
66
+ osWarnTips: []
65
67
  };
66
68
  // Annotate the CommonJS export names for ESM import in node:
67
69
  0 && (module.exports = {
@@ -79,5 +79,6 @@ export declare type ProductCardTypes = {
79
79
  onLike?: (val: any) => void;
80
80
  onCard?: (val: any) => void;
81
81
  onChangeResource?: (val: any) => void;
82
+ osWarnTips?: Array<string>;
82
83
  [key: string]: any;
83
84
  };
@@ -66,6 +66,7 @@ var getServiceTime = (item, currentDate) => {
66
66
  const utils = context.appHelper.utils || {};
67
67
  const locale = (item == null ? void 0 : item.locale) || ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
68
68
  const isEn2 = locale === "en-US" || locale === "en";
69
+ const durationType = (item == null ? void 0 : item.duration_type) === "flexible" ? "minutes" : item == null ? void 0 : item.duration_type;
69
70
  const localeTypes = {
70
71
  "en-US": "en",
71
72
  "zh-CN": "zh-cn",
@@ -75,7 +76,7 @@ var getServiceTime = (item, currentDate) => {
75
76
  let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
76
77
  let endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
77
78
  let diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, "day");
78
- if (item == null ? void 0 : item.duration_type) {
79
+ if (durationType) {
79
80
  const sameDay = startDate.isSame(endDate, "day");
80
81
  const dateFormat = isEn2 ? "DD/MM/YYYY" : "YYYY-MM-DD";
81
82
  const timeFormat = "HH:mm";
@@ -97,13 +98,13 @@ var getServiceTime = (item, currentDate) => {
97
98
  }
98
99
  const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
99
100
  const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
100
- let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime), item == null ? void 0 : item.duration_type);
101
+ let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime), durationType);
101
102
  let durationText = "";
102
- if ((item == null ? void 0 : item.duration_type) === "minutes") {
103
+ if (durationType === "minutes") {
103
104
  const hours = Math.floor(_duration / 60);
104
105
  const minutes = _duration % 60;
105
106
  durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
106
- } else if ((item == null ? void 0 : item.duration_type) === "days") {
107
+ } else if (durationType === "days") {
107
108
  durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration);
108
109
  } else {
109
110
  durationText = `${_duration}`;
@@ -118,7 +119,7 @@ var getServiceTime = (item, currentDate) => {
118
119
  startDate = (0, import_dayjs.default)((item == null ? void 0 : item.start_time) ? `${item == null ? void 0 : item.start_date} ${item == null ? void 0 : item.start_time}` : startDate.format("YYYY-MM-DD HH:mm"));
119
120
  endDate = (0, import_dayjs.default)((item == null ? void 0 : item.end_time) ? `${item == null ? void 0 : item.end_date} ${item == null ? void 0 : item.end_time}` : endDate.format("YYYY-MM-DD HH:mm"));
120
121
  }
121
- if ((item == null ? void 0 : item.duration_type) === "minutes") {
122
+ if (durationType === "minutes") {
122
123
  diffInDays = endDate.diff(startDate, "minute");
123
124
  }
124
125
  const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
@@ -130,7 +131,7 @@ var getServiceTime = (item, currentDate) => {
130
131
  "minutes": import_utils.locales.getText("pisell2.product.card.minute")(diffInDays),
131
132
  "event": import_utils.locales.getText("pisell2.product.card.day.event")(diffInDays)
132
133
  };
133
- text = (textTypes == null ? void 0 : textTypes[item == null ? void 0 : item.duration_type]) || text;
134
+ text = (textTypes == null ? void 0 : textTypes[durationType]) || text;
134
135
  let duration = `${diffInDays}${text}`;
135
136
  return `${date} (${duration})`;
136
137
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
2
3
  import { PopoverProps, TimePickerProps } from "antd";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: any;
3
- vertical: any;
2
+ horizontal: number;
3
+ vertical: number;
4
4
  };
5
5
  export default useGapSize;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -197,12 +198,12 @@ export declare const fieldList: ({
197
198
  field_icon: string;
198
199
  field_name: string;
199
200
  field_type: string;
200
- default_value: string;
201
+ default_value: boolean;
201
202
  } | {
202
203
  field_icon: string;
203
204
  field_name: string;
204
205
  field_type: string;
205
- default_value: boolean;
206
+ default_value: string;
206
207
  } | {
207
208
  field_icon: string;
208
209
  field_name: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
158
+ }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -94,6 +94,13 @@ var VirtualKeyInput = (props) => {
94
94
  readOnly: true,
95
95
  value: previewValue
96
96
  }
97
- ), ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement("div", { className: "virtual-keyboard-input-delete", onClick: _onDelete }, /* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon" })) : null);
97
+ ), ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement(
98
+ "div",
99
+ {
100
+ className: "virtual-keyboard-input-delete",
101
+ onClick: _onDelete
102
+ },
103
+ /* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon" })
104
+ ) : null);
98
105
  };
99
106
  var VirtualKeyInput_default = VirtualKeyInput;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string | number;
2
+ export declare const getCssNumber: (val: string | number) => string;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => any;
1
+ export declare const isMobile: () => boolean;
@@ -226,11 +226,12 @@ const AntdIconSetter = (props: AntdIconSetterProps) => {
226
226
  <Balloon
227
227
  className="lc-antd-icon-setter-balloon"
228
228
  trigger={triggerNode}
229
- needAdjust
229
+ autoAdjust
230
230
  triggerType="click"
231
231
  closable={false}
232
232
  alignEdge
233
- align="lt"
233
+ align="l"
234
+ v2
234
235
  style={{ width: 300 }}
235
236
  >
236
237
  <div className="lc-antd-icon-setter-header">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.80",
3
+ "version": "2.2.82",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,4 +0,0 @@
1
- import { AppVersionControlProps } from './types';
2
- import './index.less';
3
- declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
- export default AppVersionControl;
@@ -1,38 +0,0 @@
1
- import { Drawer } from 'antd';
2
- import { OperationItem } from '../type';
3
- declare const useDrawerState: (operationContent?: {
4
- [key: string]: import("react").ReactNode;
5
- } | undefined) => {
6
- drawerVisible: boolean;
7
- setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
8
- openDrawer: (item: OperationItem) => void;
9
- closeDrawer: () => void;
10
- drawerContent: import("react").ReactNode;
11
- Container: {
12
- (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
13
- confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
14
- destroy: () => void;
15
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
16
- };
17
- info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
18
- destroy: () => void;
19
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
- };
21
- error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
22
- destroy: () => void;
23
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
24
- };
25
- warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
26
- warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
27
- destroy: () => void;
28
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
29
- };
30
- success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
31
- destroy: () => void;
32
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
- };
34
- Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
35
- } | typeof Drawer;
36
- containerProps: {};
37
- };
38
- export default useDrawerState;
@@ -1,78 +0,0 @@
1
- /// <reference types="react" />
2
- import { ColumnType } from 'antd/es/table';
3
- import { DataSourceType } from '../provider/dataSource/DataSourceContext';
4
- export declare type OperationItem = {
5
- label?: string;
6
- openMode: 'modal' | 'drawer' | 'custom';
7
- openContentSize: 'small' | 'middle' | 'large';
8
- openTitle: string;
9
- actionType: 'detail' | 'edit' | 'delete' | 'custom';
10
- key: string;
11
- buttonProps?: any;
12
- onClick?: (record: any) => void;
13
- };
14
- export interface DataSourceTableProps {
15
- title?: string | React.ReactNode | (() => React.ReactNode);
16
- subTitle?: string | React.ReactNode | (() => React.ReactNode);
17
- titleButtons?: {
18
- show: boolean;
19
- maxCount: number;
20
- items: OperationItem[];
21
- };
22
- tableButtons?: {
23
- show: boolean;
24
- maxCount: number;
25
- items: OperationItem[];
26
- };
27
- buttons?: any[];
28
- operation?: {
29
- show: boolean;
30
- title: string;
31
- width: number;
32
- align: 'left' | 'center' | 'right';
33
- fixed: 'left' | 'right' | false;
34
- type: 'link' | 'button';
35
- items: OperationItem[];
36
- };
37
- operationContent?: {
38
- [key: string]: React.ReactNode;
39
- };
40
- dataSource: DataSourceType;
41
- columns: ColumnType<any>[];
42
- filter: any;
43
- search?: {
44
- show: boolean;
45
- placeholder: string;
46
- };
47
- __designMode: string;
48
- componentId: string;
49
- clickToDetail?: {
50
- show: boolean;
51
- useCustomAction: boolean;
52
- actionType: string;
53
- openMode: 'modal' | 'drawer';
54
- openContentSize: 'small' | 'middle' | 'large';
55
- openTitle: string;
56
- key: string;
57
- };
58
- onRow?: any;
59
- filterBy?: Record<string, any>;
60
- sortBy: string;
61
- tabs?: {
62
- show: boolean;
63
- type: string;
64
- items: {
65
- name: string;
66
- filterBy: Record<string, any>;
67
- sortBy: string;
68
- }[];
69
- };
70
- onValuesChange?: (changedValues: any, values: any) => void;
71
- extraParams?: {
72
- list?: Record<string, any>;
73
- get?: Record<string, any>;
74
- update?: Record<string, any>;
75
- create?: Record<string, any>;
76
- destroy?: Record<string, any>;
77
- };
78
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * 获取nocobase数据列表
3
- */
4
- export declare const getCountryDataList: () => Promise<any>;
5
- export interface Country {
6
- id: number;
7
- name: {
8
- en: string;
9
- "zh-CN": string;
10
- "zh-HK": string;
11
- original: string;
12
- };
13
- code: string;
14
- calling_code: string;
15
- currency_code: string;
16
- sort: number;
17
- status: string;
18
- created_at: string;
19
- updated_at: string;
20
- prefix: string;
21
- }
22
- export declare const useCountries: () => {
23
- data: Country[];
24
- };
@@ -1,18 +0,0 @@
1
- import './index.less';
2
- import { ValueProps, SortType } from '../types';
3
- declare type IdType = string | number;
4
- declare type TreeItemProps = {
5
- id: string | number;
6
- key: string | number;
7
- item: ValueProps | any;
8
- depth: number;
9
- lists: any[];
10
- childrenProps?: SortType;
11
- sensors?: any;
12
- expandedKeys?: IdType[];
13
- setExpandedKeys?: any;
14
- onSelectKeys?: (ids: IdType) => void;
15
- onChange?: (value: any[]) => void;
16
- };
17
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
18
- export default TreeItem;
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { SortType } from './types';
3
- declare const DragSortTree: (props: SortType) => JSX.Element;
4
- export default DragSortTree;
@@ -1,8 +0,0 @@
1
- import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
- import React from 'react';
3
- interface IconFontProps extends IconComponentProps {
4
- type: string;
5
- onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
- }
7
- declare const IconFont: React.FC<IconFontProps>;
8
- export default IconFont;