@pisell/materials 3.3.44 → 3.3.45

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 (278) 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 +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.js +19 -19
  8. package/build/lowcode/view.js +25 -25
  9. package/es/components/DragSortList/index.js +6 -6
  10. package/es/components/appVersionControl/index.d.ts +0 -1
  11. package/es/components/auto-complete-number/index.d.ts +0 -1
  12. package/es/components/badge/index.d.ts +0 -1
  13. package/es/components/batch-editor/fields/index.d.ts +0 -1
  14. package/es/components/batch-editor/index.d.ts +0 -1
  15. package/es/components/calendar/index.d.ts +0 -1
  16. package/es/components/cardPro/index.d.ts +0 -1
  17. package/es/components/checkbox/index.d.ts +0 -1
  18. package/es/components/classicLayout/index.d.ts +0 -1
  19. package/es/components/classicLayout/index.js +4 -5
  20. package/es/components/colorPicker/index.d.ts +0 -1
  21. package/es/components/config-provider/index.d.ts +0 -1
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  24. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  25. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  27. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  28. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  31. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  32. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  34. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  35. package/es/components/dataSourceComponents/fields/index.d.ts +2 -2
  36. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  37. package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
  38. package/es/components/drag-sort-tree/index.d.ts +0 -1
  39. package/es/components/dropdown/index.d.ts +0 -1
  40. package/es/components/filter/components/items/index.d.ts +0 -1
  41. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  42. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  43. package/es/components/filter/components/items/text/index.d.ts +0 -1
  44. package/es/components/filter/index.d.ts +1 -0
  45. package/es/components/icon/index.js +5 -5
  46. package/es/components/list/index.js +6 -6
  47. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  48. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  49. package/es/components/pisellCard/index.d.ts +0 -1
  50. package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  51. package/es/components/pisellDatePicker/index.d.ts +0 -1
  52. package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  53. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  54. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  55. package/es/components/pisellTooltip/index.d.ts +0 -1
  56. package/es/components/pisellUpload/index.d.ts +0 -1
  57. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  58. package/es/components/productCard/components/Action/index.d.ts +0 -1
  59. package/es/components/productCard/components/Divider/index.d.ts +0 -1
  60. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  61. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  62. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  63. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  64. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  65. package/es/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  66. package/es/components/productCard/components/Time/index.d.ts +0 -1
  67. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  68. package/es/components/productCard/components/Warning/index.js +48 -0
  69. package/es/components/productCard/index.js +8 -8
  70. package/es/components/productCard/locales.d.ts +3 -0
  71. package/es/components/productCard/locales.js +6 -3
  72. package/es/components/productCard/status.js +3 -1
  73. package/es/components/productCard/types.d.ts +1 -0
  74. package/es/components/qrcode/index.js +1 -1
  75. package/es/components/radio/index.d.ts +0 -1
  76. package/es/components/segmented/index.d.ts +0 -1
  77. package/es/components/select-time/RightPanel/index.d.ts +0 -1
  78. package/es/components/skeleton/index.d.ts +0 -1
  79. package/es/components/slider/index.d.ts +0 -1
  80. package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
  81. package/es/components/sort/components/InlineMenu/index.js +1 -1
  82. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  83. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  84. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  85. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  86. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  87. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  88. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  89. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  90. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  91. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  92. package/es/components/table/Header/Buttons/index.js +5 -5
  93. package/es/components/table/Summary/index.d.ts +0 -1
  94. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  95. package/es/components/table/Table/SelectField/index.js +4 -4
  96. package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
  97. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  98. package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  99. package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
  100. package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  101. package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
  102. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  103. package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  104. package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
  105. package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  106. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  107. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  108. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  109. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  110. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  111. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  112. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  113. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  114. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  115. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  116. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  117. package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
  118. package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  119. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  120. package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
  121. package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
  122. package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  123. package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
  124. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  125. package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  126. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  127. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  128. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  129. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  130. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  131. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  132. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  133. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  134. package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
  135. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  136. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  137. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  138. package/es/components/time-picker/index.d.ts +0 -1
  139. package/es/components/translation/utils.js +5 -5
  140. package/es/components/upload/index.d.ts +0 -1
  141. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  142. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  143. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  144. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -1
  145. package/es/components/walletCard/Guest/index.d.ts +0 -1
  146. package/es/components/walletCard/Guide/index.d.ts +0 -1
  147. package/es/hooks/useResponsive.js +2 -2
  148. package/es/utils/hoc.js +1 -1
  149. package/es/utils/miniRedux.js +8 -9
  150. package/es/utils/platform.d.ts +1 -1
  151. package/lib/components/appVersionControl/index.d.ts +0 -1
  152. package/lib/components/auto-complete-number/index.d.ts +0 -1
  153. package/lib/components/badge/index.d.ts +0 -1
  154. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  155. package/lib/components/batch-editor/index.d.ts +0 -1
  156. package/lib/components/calendar/index.d.ts +0 -1
  157. package/lib/components/cardPro/index.d.ts +0 -1
  158. package/lib/components/checkbox/index.d.ts +0 -1
  159. package/lib/components/classicLayout/index.d.ts +0 -1
  160. package/lib/components/colorPicker/index.d.ts +0 -1
  161. package/lib/components/config-provider/index.d.ts +0 -1
  162. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  163. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  164. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
  165. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
  166. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
  167. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
  168. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
  169. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
  170. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  171. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
  172. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
  173. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
  174. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +0 -1
  175. package/lib/components/dataSourceComponents/fields/index.d.ts +2 -2
  176. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
  177. package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
  178. package/lib/components/drag-sort-tree/index.d.ts +0 -1
  179. package/lib/components/dropdown/index.d.ts +0 -1
  180. package/lib/components/filter/components/items/index.d.ts +0 -1
  181. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  182. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  183. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  184. package/lib/components/filter/index.d.ts +1 -0
  185. package/lib/components/lowCodePage/index.js +1 -2
  186. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  187. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  188. package/lib/components/pisellCard/index.d.ts +0 -1
  189. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
  190. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  191. package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
  192. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  193. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  194. package/lib/components/pisellTooltip/index.d.ts +0 -1
  195. package/lib/components/pisellUpload/index.d.ts +0 -1
  196. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  197. package/lib/components/productCard/components/Action/index.d.ts +0 -1
  198. package/lib/components/productCard/components/Divider/index.d.ts +0 -1
  199. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  200. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  201. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  202. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  203. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  204. package/lib/components/productCard/components/Time/components/Like/index.d.ts +0 -1
  205. package/lib/components/productCard/components/Time/index.d.ts +0 -1
  206. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  207. package/lib/components/productCard/components/Warning/index.js +68 -0
  208. package/lib/components/productCard/index.js +4 -11
  209. package/lib/components/productCard/locales.d.ts +3 -0
  210. package/lib/components/productCard/locales.js +6 -3
  211. package/lib/components/productCard/status.js +3 -1
  212. package/lib/components/productCard/types.d.ts +1 -0
  213. package/lib/components/radio/index.d.ts +0 -1
  214. package/lib/components/segmented/index.d.ts +0 -1
  215. package/lib/components/select-time/RightPanel/index.d.ts +0 -1
  216. package/lib/components/skeleton/index.d.ts +0 -1
  217. package/lib/components/slider/index.d.ts +0 -1
  218. package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
  219. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  220. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  221. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  222. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  223. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  224. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
  225. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  226. package/lib/components/table/Summary/index.d.ts +0 -1
  227. package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
  228. package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
  229. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  230. package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
  231. package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
  232. package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
  233. package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
  234. package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
  235. package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
  236. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
  237. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
  238. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
  239. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
  240. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
  241. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
  242. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
  243. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
  244. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
  245. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
  246. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  247. package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
  248. package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
  249. package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
  250. package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
  251. package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
  252. package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
  253. package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
  254. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
  255. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
  256. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
  257. package/lib/components/table/Table/fields/utils/index.js +1 -2
  258. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  259. package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
  260. package/lib/components/time-picker/index.d.ts +0 -1
  261. package/lib/components/upload/index.d.ts +0 -1
  262. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -1
  263. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  264. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  265. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -1
  266. package/lib/components/walletCard/Guest/index.d.ts +0 -1
  267. package/lib/components/walletCard/Guide/index.d.ts +0 -1
  268. package/lib/hooks/useResponsive.js +3 -6
  269. package/lib/utils/platform.d.ts +1 -1
  270. package/package.json +2 -2
  271. package/dist/umd/materials.min.css +0 -1
  272. package/dist/umd/materials.min.js +0 -1
  273. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  274. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  275. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  276. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  277. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  278. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TranslationProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
@@ -20,7 +20,7 @@ declare const formFieldMap: {
20
20
  Subdomain: import("react").FC<import("antd").InputProps & {
21
21
  onChange: (value: string) => void;
22
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "xzero" | "saas";
23
+ rootDomain: "custom" | "saas" | "xzero";
24
24
  customDomain?: string | undefined;
25
25
  value?: string | undefined;
26
26
  tenantId: string;
@@ -77,7 +77,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
77
77
  Subdomain: import("react").FC<import("antd").InputProps & {
78
78
  onChange: (value: string) => void;
79
79
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
80
- rootDomain: "custom" | "xzero" | "saas";
80
+ rootDomain: "custom" | "saas" | "xzero";
81
81
  customDomain?: string | undefined;
82
82
  value?: string | undefined;
83
83
  tenantId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ValueProps, SortType } from '../types';
4
3
  declare type IdType = string | number;
@@ -67,7 +67,8 @@ var TreeItem = (props) => {
67
67
  const [isMobile, setIsMobile] = (0, import_react.useState)(window.innerWidth < 600);
68
68
  const style = {
69
69
  transform: import_utilities.CSS.Transform.toString(transform && { ...transform, scaleY: 1 }),
70
- transition
70
+ transition,
71
+ display: item.domHidden ? "none" : "block"
71
72
  };
72
73
  const rowKey = (0, import_react.useMemo)(() => {
73
74
  return (childrenProps == null ? void 0 : childrenProps.rowKey) || "id";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { SortType } from './types';
4
3
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Dropdown: (props: any) => JSX.Element;
3
2
  export default Dropdown;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: () => JSX.Element;
3
2
  export default Text;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: (props: any) => JSX.Element;
3
2
  export default Text;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -41,8 +41,7 @@ var LowCodePage = (props) => {
41
41
  const context = (0, import_useEngineContext.default)();
42
42
  const { RenderLowCodeByKey, getRenderLowCodeByKey } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
43
43
  const Com = (0, import_utils.isFunction)(getRenderLowCodeByKey) ? getRenderLowCodeByKey() : RenderLowCodeByKey;
44
- if (!Com)
45
- return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
44
+ if (!Com) return /* @__PURE__ */ import_react.default.createElement("div", null, "RenderLowCodeByKey is not found");
46
45
  return /* @__PURE__ */ import_react.default.createElement(Com, { ...others, id, key: id });
47
46
  };
48
47
  var lowCodePage_default = LowCodePage;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellAdjustPriceProps {
4
3
  value?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellCardProps extends CardProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './detePickerCpt.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PisellDatePicker: (props: any) => JSX.Element;
3
2
  export default PisellDatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface ScanProps {
4
3
  onChange: (val: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import './index.less';
4
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
3
2
  import { PisellContextType } from "../pisell-config-provider/context";
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { UploadProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface PisellUploadProps extends UploadProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Action: ({ item, onAction }: any) => JSX.Element;
4
3
  export default Action;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Divider: ({ type }: any) => JSX.Element;
4
3
  export default Divider;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
4
3
  export default DeleteButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
3
  style?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
4
3
  export default Time;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import '../../index.less';
3
+ declare const Warning: React.FC<{
4
+ errorMessage: string | Array<string>;
5
+ osWarnTips: Array<string>;
6
+ }>;
7
+ export default Warning;
@@ -0,0 +1,68 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/productCard/components/Warning/index.tsx
30
+ var Warning_exports = {};
31
+ __export(Warning_exports, {
32
+ default: () => Warning_default
33
+ });
34
+ module.exports = __toCommonJS(Warning_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import_antd = require("antd");
38
+ var import__ = require("../../index.less");
39
+ var Warning = ({ errorMessage, osWarnTips }) => {
40
+ const errorLists = (0, import_react.useMemo)(() => {
41
+ if (errorMessage) {
42
+ if (Array.isArray(errorMessage)) {
43
+ return errorMessage;
44
+ }
45
+ if (typeof errorMessage === "string") {
46
+ return [errorMessage];
47
+ }
48
+ }
49
+ if ((osWarnTips == null ? void 0 : osWarnTips.length) > 0) {
50
+ return osWarnTips.map((item) => import_utils.locales.getText(item));
51
+ }
52
+ return [];
53
+ }, [errorMessage, osWarnTips]);
54
+ if ((errorLists == null ? void 0 : errorLists.length) === 0) {
55
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
56
+ }
57
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, errorLists.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
58
+ import_antd.Alert,
59
+ {
60
+ key: index,
61
+ message: item,
62
+ type: "warning",
63
+ showIcon: true,
64
+ className: "pisell-lowcode-product-card-error"
65
+ }
66
+ )));
67
+ };
68
+ var Warning_default = Warning;
@@ -34,7 +34,6 @@ __export(productCard_exports, {
34
34
  module.exports = __toCommonJS(productCard_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_classnames = __toESM(require("classnames"));
37
- var import_antd = require("antd");
38
37
  var import_utils = require("@pisell/utils");
39
38
  var import_cardPro = __toESM(require("../cardPro"));
40
39
  var import_Header = __toESM(require("./components/Header"));
@@ -50,6 +49,7 @@ var import_useOpenNote = __toESM(require("./hooks/useOpenNote"));
50
49
  var import_locales = __toESM(require("./locales"));
51
50
  var import_status = require("./status");
52
51
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
52
+ var import_Warning = __toESM(require("./components/Warning"));
53
53
  var import_index = require("./index.less");
54
54
  var ProductCard = (props) => {
55
55
  var _a, _b;
@@ -84,7 +84,8 @@ var ProductCard = (props) => {
84
84
  isShowAction,
85
85
  actionText,
86
86
  errorMessage,
87
- isNormalProduct
87
+ isNormalProduct,
88
+ osWarnTips = []
88
89
  } = dataSource;
89
90
  const showImage = (0, import_react.useMemo)(() => {
90
91
  return isShowImage && image;
@@ -180,15 +181,7 @@ var ProductCard = (props) => {
180
181
  onAction: () => onAction == null ? void 0 : onAction(dataSource)
181
182
  }
182
183
  ) : null,
183
- errorMessage ? /* @__PURE__ */ import_react.default.createElement(
184
- import_antd.Alert,
185
- {
186
- message: errorMessage,
187
- type: "warning",
188
- showIcon: true,
189
- className: "pisell-lowcode-product-card-error"
190
- }
191
- ) : null
184
+ /* @__PURE__ */ import_react.default.createElement(import_Warning.default, { errorMessage, osWarnTips })
192
185
  ), /* @__PURE__ */ import_react.default.createElement(
193
186
  import_useOpenNote.default,
194
187
  {
@@ -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
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Radio: (props: any) => JSX.Element;
3
2
  export default Radio;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SegmentedProps } from "antd";
3
2
  import "./index.less";
4
3
  declare const Segmented: (props: SegmentedProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Skeleton: (props: any) => JSX.Element;
3
2
  export default Skeleton;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SliderOuter: (props: any) => JSX.Element;
3
2
  export default SliderOuter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
  import "./index.less";
4
3
  interface InlineMenuProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ExportFile: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare const ExportTable: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare const ImportLog: (props: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../../../types';
3
2
  import './index.less';
4
3
  declare type ImportTableProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../types';
3
2
  import './index.less';
4
3
  declare type ExportImportProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './PopoverContent.less';
3
2
  declare type FieldType = string | number;
4
3
  export declare type GroupValue = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewType, ModeType } from "../../../types";
3
2
  declare type ViewModeProps = {
4
3
  view: GridViewType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Summary: ({ summary }: any) => JSX.Element | null;
4
3
  export default Summary;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -40,17 +40,14 @@ function filterUtil_default({
40
40
  key,
41
41
  item
42
42
  }) {
43
- if (!value)
44
- return true;
43
+ if (!value) return true;
45
44
  const valueDayjsObj = (0, import_dayjs.default)(value);
46
45
  if (!valueDayjsObj.isValid()) {
47
46
  return true;
48
47
  }
49
48
  const dataValue = (0, import_utils2.getValueByKeys)(item, key);
50
- if ((0, import_utils.isUndefined)(dataValue))
51
- return false;
49
+ if ((0, import_utils.isUndefined)(dataValue)) return false;
52
50
  const dataDayjsObj = (0, import_dayjs.default)(dataValue);
53
- if (!dataDayjsObj.isValid())
54
- return false;
51
+ if (!dataDayjsObj.isValid()) return false;
55
52
  return dataDayjsObj.isSame(valueDayjsObj, "day");
56
53
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Config: () => JSX.Element;
3
2
  export default Config;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Sort: () => JSX.Element;
3
2
  export default Sort;