@pisell/materials 1.0.1107 → 1.0.1109

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 (267) 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/meta.js +3 -3
  5. package/build/lowcode/preview.css +1 -1
  6. package/build/lowcode/preview.js +1 -1
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +48 -48
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +48 -48
  11. package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -2
  12. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -2
  13. package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
  14. package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -2
  15. package/es/components/PisellCards/components/TabCard/TabCard.d.ts +1 -2
  16. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +1 -2
  17. package/es/components/PisellCards/index.d.ts +5 -6
  18. package/es/components/PisellContactBrief/PisellContactBrief.d.ts +2 -2
  19. package/es/components/PisellLayouts/index.d.ts +2 -2
  20. package/es/components/PisellMetrics/index.d.ts +2 -2
  21. package/es/components/appVersionControl/index.d.ts +1 -2
  22. package/es/components/auto-complete-number/index.d.ts +1 -2
  23. package/es/components/badge/index.d.ts +1 -2
  24. package/es/components/batch-editor/index.d.ts +1 -2
  25. package/es/components/calendar/index.d.ts +1 -4
  26. package/es/components/cardMetricItem/index.d.ts +1 -1
  27. package/es/components/cardPro/index.d.ts +1 -2
  28. package/es/components/checkbox/index.d.ts +1 -4
  29. package/es/components/classicLayout/index.d.ts +1 -2
  30. package/es/components/config-provider/index.d.ts +1 -2
  31. package/es/components/customSelect/index.d.ts +1 -1
  32. package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  33. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  34. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  35. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -4
  36. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  37. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -2
  38. package/es/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.d.ts +15 -0
  39. package/es/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.js +202 -0
  40. package/es/components/dataSourceComponents/fields/IdentityRecognition/SortableList.js +66 -0
  41. package/es/components/dataSourceComponents/fields/IdentityRecognition/config.d.ts +10 -0
  42. package/es/components/dataSourceComponents/fields/IdentityRecognition/config.js +61 -0
  43. package/es/components/dataSourceComponents/fields/IdentityRecognition/index.d.ts +24 -0
  44. package/es/components/dataSourceComponents/fields/IdentityRecognition/index.js +38 -0
  45. package/es/components/dataSourceComponents/fields/IdentityRecognition/locales.d.ts +5 -0
  46. package/es/components/dataSourceComponents/fields/IdentityRecognition/locales.js +191 -0
  47. package/es/components/dataSourceComponents/fields/IdentityRecognition/model.d.ts +8 -0
  48. package/es/components/dataSourceComponents/fields/IdentityRecognition/model.js +77 -0
  49. package/es/components/dataSourceComponents/fields/IdentityRecognition/style.less +114 -0
  50. package/es/components/dataSourceComponents/fields/IdentityRecognition/types.d.ts +48 -0
  51. package/es/components/dataSourceComponents/fields/IdentityRecognition/useIdentityText.js +14 -0
  52. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
  53. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
  54. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
  55. package/es/components/dataSourceComponents/fields/index.js +4 -1
  56. package/es/components/dataSourceComponents/fields/utils.js +2 -0
  57. package/es/components/date-picker/index.d.ts +1 -4
  58. package/es/components/drag-sort-tree/index.d.ts +1 -2
  59. package/es/components/dropdown/index.d.ts +1 -3
  60. package/es/components/filter/index.d.ts +1 -2
  61. package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -1
  62. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -1
  63. package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -1
  64. package/es/components/keyboard/index.d.ts +1 -1
  65. package/es/components/list/index.d.ts +2 -2
  66. package/es/components/lowCodePage/index.d.ts +1 -3
  67. package/es/components/page/index.d.ts +1 -2
  68. package/es/components/page-header/index.d.ts +1 -1
  69. package/es/components/pisellActionPanel/PisellActionPanel.d.ts +2 -2
  70. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -2
  71. package/es/components/pisellAdjustPrice/index.d.ts +1 -2
  72. package/es/components/pisellAlert/index.d.ts +1 -1
  73. package/es/components/pisellBaseCard/PisellBaseCard.d.ts +2 -2
  74. package/es/components/pisellCalendar/PisellCalendar.d.ts +2 -2
  75. package/es/components/pisellCalendar/PisellCalendar.js +1 -1
  76. package/es/components/pisellCard/index.d.ts +1 -2
  77. package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
  78. package/es/components/pisellCountdown/index.d.ts +1 -1
  79. package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +2 -2
  80. package/es/components/pisellDatePicker/index.d.ts +1 -4
  81. package/es/components/pisellDraggable/index.d.ts +1 -1
  82. package/es/components/pisellEmpty/index.d.ts +1 -1
  83. package/es/components/pisellEntityCard/PisellEntityCard.d.ts +2 -2
  84. package/es/components/pisellExport/PisellExport.d.ts +2 -2
  85. package/es/components/pisellFilter/index.d.ts +1 -2
  86. package/es/components/pisellFloatingPanel/index.d.ts +1 -1
  87. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
  88. package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
  89. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +2 -3
  90. package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
  91. package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
  92. package/es/components/pisellGantt/PisellGantt.d.ts +2 -2
  93. package/es/components/pisellGoodPassCard/index.d.ts +1 -1
  94. package/es/components/pisellGridPro/GridView/index.d.ts +1 -2
  95. package/es/components/pisellImport/PisellImport.d.ts +2 -2
  96. package/es/components/pisellInformationEntry/index.d.ts +1 -1
  97. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  98. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  99. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  100. package/es/components/pisellInput/index.d.ts +5 -5
  101. package/es/components/pisellLoading/index.d.ts +1 -2
  102. package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +1 -0
  103. package/es/components/pisellMobileDateRangePicker/types.d.ts +4 -3
  104. package/es/components/pisellModal/index.d.ts +2 -2
  105. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
  106. package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -1
  107. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
  108. package/es/components/pisellRow/index.d.ts +1 -1
  109. package/es/components/pisellSort/index.d.ts +1 -2
  110. package/es/components/pisellStatisticList/index.d.ts +1 -1
  111. package/es/components/pisellTags/index.d.ts +1 -1
  112. package/es/components/pisellText/index.d.ts +2 -2
  113. package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
  114. package/es/components/pisellTooltip/index.d.ts +1 -2
  115. package/es/components/pisellUpload/index.d.ts +1 -2
  116. package/es/components/pisellWalletPassCard/index.d.ts +1 -1
  117. package/es/components/qrcode/index.d.ts +1 -3
  118. package/es/components/radio/index.d.ts +1 -4
  119. package/es/components/section-footers/index.d.ts +1 -3
  120. package/es/components/segmented/index.d.ts +1 -2
  121. package/es/components/select-time/index.d.ts +1 -2
  122. package/es/components/skeleton/index.d.ts +1 -4
  123. package/es/components/slider/index.d.ts +1 -3
  124. package/es/components/tabs/index.d.ts +2 -2
  125. package/es/components/time-picker/index.d.ts +1 -4
  126. package/es/components/upload/index.d.ts +1 -4
  127. package/es/components/versionSelect/index.d.ts +0 -1
  128. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -2
  129. package/es/components/virtual-keyboard/Number/index.d.ts +1 -2
  130. package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
  131. package/es/components/virtual-keyboard/index.d.ts +1 -1
  132. package/es/index.d.ts +7 -1
  133. package/es/index.js +6 -1
  134. package/es/pisell-materials.tw.css +1 -1
  135. package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -2
  136. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -2
  137. package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
  138. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -2
  139. package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +2 -2
  140. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +2 -2
  141. package/lib/components/PisellCards/index.d.ts +5 -6
  142. package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +2 -2
  143. package/lib/components/PisellLayouts/index.d.ts +2 -2
  144. package/lib/components/PisellMetrics/index.d.ts +2 -2
  145. package/lib/components/appVersionControl/index.d.ts +2 -2
  146. package/lib/components/auto-complete-number/index.d.ts +2 -2
  147. package/lib/components/badge/index.d.ts +2 -2
  148. package/lib/components/batch-editor/index.d.ts +2 -2
  149. package/lib/components/calendar/index.d.ts +1 -3
  150. package/lib/components/cardMetricItem/index.d.ts +1 -1
  151. package/lib/components/cardPro/index.d.ts +2 -2
  152. package/lib/components/checkbox/index.d.ts +1 -3
  153. package/lib/components/classicLayout/index.d.ts +2 -2
  154. package/lib/components/config-provider/index.d.ts +2 -2
  155. package/lib/components/customSelect/index.d.ts +1 -1
  156. package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  157. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  158. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  159. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -3
  160. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  161. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -2
  162. package/lib/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.d.ts +15 -0
  163. package/lib/components/dataSourceComponents/fields/IdentityRecognition/IdentityRecognitionEditor.js +205 -0
  164. package/lib/components/dataSourceComponents/fields/IdentityRecognition/SortableList.js +68 -0
  165. package/lib/components/dataSourceComponents/fields/IdentityRecognition/config.d.ts +10 -0
  166. package/lib/components/dataSourceComponents/fields/IdentityRecognition/config.js +64 -0
  167. package/lib/components/dataSourceComponents/fields/IdentityRecognition/index.d.ts +25 -0
  168. package/lib/components/dataSourceComponents/fields/IdentityRecognition/index.js +41 -0
  169. package/lib/components/dataSourceComponents/fields/IdentityRecognition/locales.d.ts +5 -0
  170. package/lib/components/dataSourceComponents/fields/IdentityRecognition/locales.js +191 -0
  171. package/lib/components/dataSourceComponents/fields/IdentityRecognition/model.d.ts +8 -0
  172. package/lib/components/dataSourceComponents/fields/IdentityRecognition/model.js +81 -0
  173. package/lib/components/dataSourceComponents/fields/IdentityRecognition/style.less +114 -0
  174. package/lib/components/dataSourceComponents/fields/IdentityRecognition/types.d.ts +48 -0
  175. package/lib/components/dataSourceComponents/fields/IdentityRecognition/useIdentityText.js +15 -0
  176. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
  177. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
  178. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -2
  179. package/lib/components/dataSourceComponents/fields/index.js +32 -29
  180. package/lib/components/dataSourceComponents/fields/utils.js +2 -0
  181. package/lib/components/date-picker/index.d.ts +1 -3
  182. package/lib/components/drag-sort-tree/index.d.ts +2 -2
  183. package/lib/components/dropdown/index.d.ts +2 -3
  184. package/lib/components/filter/index.d.ts +2 -2
  185. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +1 -1
  186. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +1 -1
  187. package/lib/components/hardwareErrorTip/logCard/index.d.ts +1 -1
  188. package/lib/components/keyboard/index.d.ts +1 -1
  189. package/lib/components/list/index.d.ts +2 -2
  190. package/lib/components/lowCodePage/index.d.ts +2 -3
  191. package/lib/components/page/index.d.ts +2 -2
  192. package/lib/components/page-header/index.d.ts +1 -1
  193. package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +2 -2
  194. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
  195. package/lib/components/pisellAdjustPrice/index.d.ts +2 -2
  196. package/lib/components/pisellAlert/index.d.ts +1 -1
  197. package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +2 -2
  198. package/lib/components/pisellCalendar/PisellCalendar.d.ts +2 -2
  199. package/lib/components/pisellCalendar/PisellCalendar.js +1 -1
  200. package/lib/components/pisellCard/index.d.ts +2 -2
  201. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
  202. package/lib/components/pisellCountdown/index.d.ts +1 -1
  203. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +2 -2
  204. package/lib/components/pisellDatePicker/index.d.ts +1 -3
  205. package/lib/components/pisellDraggable/index.d.ts +1 -1
  206. package/lib/components/pisellEmpty/index.d.ts +1 -1
  207. package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +2 -2
  208. package/lib/components/pisellExport/PisellExport.d.ts +2 -2
  209. package/lib/components/pisellFilter/index.d.ts +2 -2
  210. package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
  211. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
  212. package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
  213. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +2 -3
  214. package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
  215. package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
  216. package/lib/components/pisellGantt/PisellGantt.d.ts +2 -2
  217. package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
  218. package/lib/components/pisellGridPro/GridView/index.d.ts +2 -2
  219. package/lib/components/pisellImport/PisellImport.d.ts +2 -2
  220. package/lib/components/pisellInformationEntry/index.d.ts +1 -1
  221. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -1
  222. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -1
  223. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -1
  224. package/lib/components/pisellInput/index.d.ts +5 -5
  225. package/lib/components/pisellLoading/index.d.ts +2 -2
  226. package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.js +1 -0
  227. package/lib/components/pisellMobileDateRangePicker/types.d.ts +4 -3
  228. package/lib/components/pisellModal/index.d.ts +2 -2
  229. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
  230. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -1
  231. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
  232. package/lib/components/pisellRow/index.d.ts +1 -1
  233. package/lib/components/pisellSort/index.d.ts +2 -2
  234. package/lib/components/pisellStatisticList/index.d.ts +1 -1
  235. package/lib/components/pisellTags/index.d.ts +1 -1
  236. package/lib/components/pisellText/index.d.ts +2 -2
  237. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
  238. package/lib/components/pisellTooltip/index.d.ts +2 -2
  239. package/lib/components/pisellUpload/index.d.ts +2 -2
  240. package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
  241. package/lib/components/qrcode/index.d.ts +2 -3
  242. package/lib/components/radio/index.d.ts +1 -3
  243. package/lib/components/section-footers/index.d.ts +1 -3
  244. package/lib/components/segmented/index.d.ts +2 -2
  245. package/lib/components/select-time/index.d.ts +2 -2
  246. package/lib/components/skeleton/index.d.ts +1 -3
  247. package/lib/components/slider/index.d.ts +2 -3
  248. package/lib/components/tabs/index.d.ts +2 -2
  249. package/lib/components/time-picker/index.d.ts +1 -3
  250. package/lib/components/upload/index.d.ts +1 -3
  251. package/lib/components/versionSelect/index.d.ts +1 -1
  252. package/lib/components/virtual-keyboard/Amount/index.d.ts +2 -2
  253. package/lib/components/virtual-keyboard/Number/index.d.ts +2 -2
  254. package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
  255. package/lib/components/virtual-keyboard/index.d.ts +1 -1
  256. package/lib/index.d.ts +7 -1
  257. package/lib/index.js +115 -102
  258. package/lib/pisell-materials.tw.css +1 -1
  259. package/lowcode/_utils/identificationMeta.ts +59 -0
  260. package/lowcode/data-source-form/constants.ts +6 -0
  261. package/lowcode/data-source-form/utils.ts +20 -2
  262. package/lowcode/form-item-smart-locker-identification/meta.ts +8 -0
  263. package/lowcode/form-item-smart-locker-identification/snippets.ts +17 -0
  264. package/lowcode/form-item-vending-machine-identification/meta.ts +8 -0
  265. package/lowcode/form-item-vending-machine-identification/snippets.ts +17 -0
  266. package/package.json +19 -19
  267. package/lowcode/pisell-brand/meta.ts +0 -363
@@ -0,0 +1,61 @@
1
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/config.ts
2
+ const verificationMethods = (ids) => ids.map((id, index) => ({
3
+ id,
4
+ label: id,
5
+ enabled: index === 0
6
+ }));
7
+ const methods = [
8
+ {
9
+ id: "scan",
10
+ label: "scan",
11
+ enabled: false,
12
+ verificationMethods: verificationMethods([
13
+ "phone_last4",
14
+ "phone_full",
15
+ "account_password",
16
+ "sms_code",
17
+ "email_code"
18
+ ])
19
+ },
20
+ {
21
+ id: "phone_number",
22
+ label: "phone_number",
23
+ enabled: false,
24
+ verificationMethods: verificationMethods(["sms_code", "account_password"])
25
+ },
26
+ {
27
+ id: "email",
28
+ label: "email",
29
+ enabled: false,
30
+ verificationMethods: verificationMethods([
31
+ "email_code",
32
+ "phone_last4",
33
+ "phone_full",
34
+ "account_password"
35
+ ])
36
+ }
37
+ ];
38
+ const smartLockerConfig = {
39
+ methods,
40
+ groups: [{
41
+ id: "store",
42
+ title: "store"
43
+ }, {
44
+ id: "collect",
45
+ title: "collect"
46
+ }]
47
+ };
48
+ const vendingMachineConfig = {
49
+ methods,
50
+ groups: [{
51
+ id: "redeem",
52
+ title: "redeem"
53
+ }]
54
+ };
55
+ const identificationConfigs = {
56
+ SmartLockerIdentification: smartLockerConfig,
57
+ VendingMachineIdentification: vendingMachineConfig
58
+ };
59
+ const isIdentificationInterface = (value) => typeof value === "string" && Object.prototype.hasOwnProperty.call(identificationConfigs, value);
60
+ //#endregion
61
+ export { identificationConfigs, isIdentificationInterface, smartLockerConfig, vendingMachineConfig };
@@ -0,0 +1,24 @@
1
+ import { WithFormItemProps } from "../../dataSourceForm/utils.js";
2
+ import { IdentityConfig, IdentityMethodId, IdentityRecognitionProps, IdentityRowValue, IdentityValue, VerificationMethodId, VerificationSettings, VerificationValue } from "./types.js";
3
+ import { IdentityRecognitionEditor } from "./IdentityRecognitionEditor.js";
4
+ import { identificationConfigs, isIdentificationInterface } from "./config.js";
5
+ import { getIdentityText } from "./locales.js";
6
+ import { createIdentityDefaultValue, validateIdentityValue } from "./model.js";
7
+
8
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/index.d.ts
9
+ type IdentificationFieldProps = Omit<IdentityRecognitionProps, 'config'> & WithFormItemProps & {
10
+ defaultValue?: IdentityValue;
11
+ validator?: (value: IdentityValue) => Promise<void> | void;
12
+ };
13
+ declare const SmartLockerIdentification: ({
14
+ defaultValue,
15
+ validator,
16
+ ...props
17
+ }: IdentificationFieldProps) => JSX.Element;
18
+ declare const VendingMachineIdentification: ({
19
+ defaultValue,
20
+ validator,
21
+ ...props
22
+ }: IdentificationFieldProps) => JSX.Element;
23
+ //#endregion
24
+ export { SmartLockerIdentification, VendingMachineIdentification };
@@ -0,0 +1,38 @@
1
+ import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
+ import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
3
+ import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
4
+ import { withFormItem, withMode } from "../../dataSourceForm/utils.js";
5
+ import "./locales.js";
6
+ import useIdentityText from "./useIdentityText.js";
7
+ import { createIdentityDefaultValue, validateIdentityValue } from "./model.js";
8
+ import IdentityRecognitionEditor from "./IdentityRecognitionEditor.js";
9
+ import { smartLockerConfig, vendingMachineConfig } from "./config.js";
10
+ import React, { useMemo } from "react";
11
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/index.tsx
12
+ const _excluded = ["defaultValue", "validator"];
13
+ function createIdentificationField(config) {
14
+ const Editor = (props) => /* @__PURE__ */ React.createElement(IdentityRecognitionEditor, _objectSpread2(_objectSpread2({}, props), {}, { config }));
15
+ const Field = withFormItem(withMode(Editor, Editor));
16
+ return function IdentificationField(_ref) {
17
+ let { defaultValue, validator } = _ref, props = _objectWithoutProperties(_ref, _excluded);
18
+ const t = useIdentityText();
19
+ const defaults = useMemo(() => createIdentityDefaultValue(config), []);
20
+ return /* @__PURE__ */ React.createElement(Field, _objectSpread2(_objectSpread2({}, props), {}, {
21
+ initialValue: defaultValue !== null && defaultValue !== void 0 ? defaultValue : defaults,
22
+ validator: function() {
23
+ var _ref2 = _asyncToGenerator(function* (value) {
24
+ const error = validateIdentityValue(value, config, t);
25
+ if (error) throw new Error(error);
26
+ yield validator === null || validator === void 0 ? void 0 : validator(value);
27
+ });
28
+ return function(_x) {
29
+ return _ref2.apply(this, arguments);
30
+ };
31
+ }()
32
+ }));
33
+ };
34
+ }
35
+ const SmartLockerIdentification = createIdentificationField(smartLockerConfig);
36
+ const VendingMachineIdentification = createIdentificationField(vendingMachineConfig);
37
+ //#endregion
38
+ export { SmartLockerIdentification, VendingMachineIdentification };
@@ -0,0 +1,5 @@
1
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/locales.d.ts
2
+ type IdentityText = (key: string, params?: Record<string, string>) => string;
3
+ declare function getIdentityText(locale?: string): IdentityText;
4
+ //#endregion
5
+ export { IdentityText, getIdentityText };
@@ -0,0 +1,191 @@
1
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/locales.ts
2
+ const en = {
3
+ scan: "Scan",
4
+ phone_number: "Phone Number",
5
+ email: "Email",
6
+ phone_last4: "Last 4 phone digits",
7
+ phone_full: "Full phone number",
8
+ account_password: "Account password",
9
+ sms_code: "SMS verification code",
10
+ email_code: "Email verification code",
11
+ store: "When Storing Items",
12
+ collect: "When Collecting Items",
13
+ redeem: "When Redeeming Items",
14
+ sharedMethod: "Shared identification method",
15
+ settings: "Settings",
16
+ settingsTitle: "{method} Settings",
17
+ groupDescription: "Configure verification for this identification method.",
18
+ requireVerification: "Require Verification",
19
+ verificationHint: "When off, account identification is enough.",
20
+ verificationMethods: "Verification Methods",
21
+ sortHint: "Customers complete one method. Drag to set priority.",
22
+ sortInstructions: "Use Alt + Arrow Up or Down to change priority.",
23
+ reorder: "Reorder {method}",
24
+ enable: "Enable {method}",
25
+ save: "Save",
26
+ cancel: "Cancel",
27
+ close: "Close",
28
+ unsavedTitle: "Unsaved Changes",
29
+ unsavedDescription: "You have unsaved changes. Are you sure you want to leave?",
30
+ discardChanges: "Leave",
31
+ continueEditing: "Back",
32
+ empty: "No identification methods configured",
33
+ minimumMethod: "Enable at least one verification method when verification is required.",
34
+ incomplete: "Identification settings are incomplete. Please configure them again.",
35
+ invalidMethods: "Verification methods are invalid. Please configure them again.",
36
+ invalidValue: "Configure Scan, Phone Number and Email identification methods."
37
+ };
38
+ const zhCN = {
39
+ scan: "扫描",
40
+ phone_number: "手机号",
41
+ email: "邮箱",
42
+ phone_last4: "手机号后四位",
43
+ phone_full: "完整手机号",
44
+ account_password: "账号密码",
45
+ sms_code: "短信验证码",
46
+ email_code: "邮件验证码",
47
+ store: "存物时",
48
+ collect: "取物时",
49
+ redeem: "兑换物品时",
50
+ sharedMethod: "通用身份识别方式",
51
+ settings: "设置",
52
+ settingsTitle: "{method}设置",
53
+ groupDescription: "配置此身份识别方式的验证规则。",
54
+ requireVerification: "需要验证",
55
+ verificationHint: "关闭后,仅需识别账号即可。",
56
+ verificationMethods: "验证方式",
57
+ sortHint: "客户完成其中一种验证即可。拖拽调整优先级。",
58
+ sortInstructions: "使用 Alt + 上/下方向键调整优先级。",
59
+ reorder: "调整{method}顺序",
60
+ enable: "启用{method}",
61
+ save: "保存",
62
+ cancel: "取消",
63
+ close: "关闭",
64
+ unsavedTitle: "未保存的更改",
65
+ unsavedDescription: "您有未保存的更改,确定要离开?",
66
+ discardChanges: "离开",
67
+ continueEditing: "返回",
68
+ empty: "暂无身份识别配置",
69
+ minimumMethod: "开启验证后,至少需要启用一种验证方式。",
70
+ incomplete: "身份识别配置不完整,请重新配置。",
71
+ invalidMethods: "验证方式配置无效,请重新配置。",
72
+ invalidValue: "请配置扫描、手机号和邮箱身份识别方式。"
73
+ };
74
+ const zhHK = {
75
+ scan: "掃描",
76
+ phone_number: "手機號碼",
77
+ email: "電郵",
78
+ phone_last4: "手機號碼後四位",
79
+ phone_full: "完整手機號碼",
80
+ account_password: "帳戶密碼",
81
+ sms_code: "短訊驗證碼",
82
+ email_code: "電郵驗證碼",
83
+ store: "存放物品時",
84
+ collect: "領取物品時",
85
+ redeem: "兌換物品時",
86
+ sharedMethod: "通用身份識別方式",
87
+ settings: "設定",
88
+ settingsTitle: "{method}設定",
89
+ groupDescription: "設定此身份識別方式的驗證規則。",
90
+ requireVerification: "需要驗證",
91
+ verificationHint: "關閉後,僅需識別帳戶即可。",
92
+ verificationMethods: "驗證方式",
93
+ sortHint: "客戶完成其中一種驗證即可。拖曳調整優先次序。",
94
+ sortInstructions: "使用 Alt + 上/下方向鍵調整優先次序。",
95
+ reorder: "調整{method}次序",
96
+ enable: "啟用{method}",
97
+ save: "儲存",
98
+ cancel: "取消",
99
+ close: "關閉",
100
+ unsavedTitle: "未儲存的更改",
101
+ unsavedDescription: "您有未儲存的更改,確定要離開?",
102
+ discardChanges: "離開",
103
+ continueEditing: "返回",
104
+ empty: "尚未設定身份識別方式",
105
+ minimumMethod: "開啟驗證後,至少需要啟用一種驗證方式。",
106
+ incomplete: "身份識別設定不完整,請重新設定。",
107
+ invalidMethods: "驗證方式無效,請重新設定。",
108
+ invalidValue: "請設定掃描、手機號碼和電郵身份識別方式。"
109
+ };
110
+ const ja = {
111
+ scan: "スキャン",
112
+ phone_number: "電話番号",
113
+ email: "メールアドレス",
114
+ phone_last4: "電話番号の下4桁",
115
+ phone_full: "電話番号全桁",
116
+ account_password: "アカウントのパスワード",
117
+ sms_code: "SMS認証コード",
118
+ email_code: "メール認証コード",
119
+ store: "荷物を預けるとき",
120
+ collect: "荷物を受け取るとき",
121
+ redeem: "商品を引き換えるとき",
122
+ sharedMethod: "共通の本人確認方法",
123
+ settings: "設定",
124
+ settingsTitle: "{method}の設定",
125
+ groupDescription: "この本人確認方法の認証ルールを設定します。",
126
+ requireVerification: "認証を必須にする",
127
+ verificationHint: "オフの場合、アカウントの識別のみ行います。",
128
+ verificationMethods: "認証方法",
129
+ sortHint: "いずれか1つの認証を完了します。ドラッグで優先順位を変更できます。",
130
+ sortInstructions: "Alt + 上下キーで優先順位を変更します。",
131
+ reorder: "{method}の順序を変更",
132
+ enable: "{method}を有効にする",
133
+ save: "保存",
134
+ cancel: "キャンセル",
135
+ close: "閉じる",
136
+ unsavedTitle: "未保存の変更",
137
+ unsavedDescription: "未保存の変更があります。このまま離れますか?",
138
+ discardChanges: "離れる",
139
+ continueEditing: "戻る",
140
+ empty: "本人確認方法が設定されていません",
141
+ minimumMethod: "認証を必須にする場合、認証方法を1つ以上有効にしてください。",
142
+ incomplete: "本人確認の設定が不完全です。再設定してください。",
143
+ invalidMethods: "認証方法が無効です。再設定してください。",
144
+ invalidValue: "スキャン、電話番号、メールアドレスによる本人確認を設定してください。"
145
+ };
146
+ const pt = {
147
+ scan: "Leitura",
148
+ phone_number: "Número de telefone",
149
+ email: "E-mail",
150
+ phone_last4: "Últimos 4 dígitos do telefone",
151
+ phone_full: "Número de telefone completo",
152
+ account_password: "Senha da conta",
153
+ sms_code: "Código de verificação por SMS",
154
+ email_code: "Código de verificação por e-mail",
155
+ store: "Ao guardar itens",
156
+ collect: "Ao retirar itens",
157
+ redeem: "Ao resgatar itens",
158
+ sharedMethod: "Método de identificação compartilhado",
159
+ settings: "Configurações",
160
+ settingsTitle: "Configurações de {method}",
161
+ groupDescription: "Configure a verificação para este método de identificação.",
162
+ requireVerification: "Exigir verificação",
163
+ verificationHint: "Quando desativada, basta identificar a conta.",
164
+ verificationMethods: "Métodos de verificação",
165
+ sortHint: "O cliente conclui um dos métodos. Arraste para definir a prioridade.",
166
+ sortInstructions: "Use Alt + seta para cima/baixo para alterar a prioridade.",
167
+ reorder: "Reordenar {method}",
168
+ enable: "Ativar {method}",
169
+ save: "Salvar",
170
+ cancel: "Cancelar",
171
+ close: "Fechar",
172
+ unsavedTitle: "Alterações não salvas",
173
+ unsavedDescription: "Você tem alterações não salvas. Tem certeza de que deseja sair?",
174
+ discardChanges: "Sair",
175
+ continueEditing: "Voltar",
176
+ empty: "Nenhum método de identificação configurado",
177
+ minimumMethod: "Ative pelo menos um método quando a verificação for obrigatória.",
178
+ incomplete: "As configurações de identificação estão incompletas. Configure novamente.",
179
+ invalidMethods: "Os métodos de verificação são inválidos. Configure novamente.",
180
+ invalidValue: "Configure os métodos de identificação por leitura, telefone e e-mail."
181
+ };
182
+ function getIdentityText(locale = "en") {
183
+ const language = locale.toLowerCase().replace(/_/g, "-");
184
+ const messages = language.startsWith("zh-hk") || language.startsWith("zh-tw") ? zhHK : language.startsWith("zh") ? zhCN : language.startsWith("ja") ? ja : language.startsWith("pt") ? pt : en;
185
+ return (key, params = {}) => (messages[key] || en[key] || key).replace(/\{(\w+)\}/g, (match, name) => {
186
+ var _params$name;
187
+ return (_params$name = params[name]) !== null && _params$name !== void 0 ? _params$name : match;
188
+ });
189
+ }
190
+ //#endregion
191
+ export { getIdentityText };
@@ -0,0 +1,8 @@
1
+ import { IdentityConfig, IdentityValue } from "./types.js";
2
+ import { IdentityText } from "./locales.js";
3
+
4
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/model.d.ts
5
+ declare const createIdentityDefaultValue: (config: IdentityConfig) => IdentityValue;
6
+ declare function validateIdentityValue(value: unknown, config: IdentityConfig, t?: IdentityText): string | undefined;
7
+ //#endregion
8
+ export { createIdentityDefaultValue, validateIdentityValue };
@@ -0,0 +1,77 @@
1
+ import { getIdentityText } from "./locales.js";
2
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/model.ts
3
+ const createIdentityDefaultValue = (config) => config.methods.map((method) => ({
4
+ id: method.id,
5
+ enabled: method.enabled,
6
+ settings: config.groups.reduce((settings, group) => {
7
+ settings[group.id] = {
8
+ requireVerification: true,
9
+ methods: method.verificationMethods.map(({ id, enabled }) => ({
10
+ id,
11
+ enabled
12
+ }))
13
+ };
14
+ return settings;
15
+ }, {})
16
+ }));
17
+ function validateIdentityRow(row, config, t = getIdentityText()) {
18
+ const errors = {};
19
+ const method = config.methods.find((item) => item.id === row.id);
20
+ for (const group of config.groups) {
21
+ var _row$settings;
22
+ const settings = (_row$settings = row.settings) === null || _row$settings === void 0 ? void 0 : _row$settings[group.id];
23
+ if (!settings || typeof settings.requireVerification !== "boolean" || !Array.isArray(settings.methods)) {
24
+ errors[group.id] = t("incomplete");
25
+ continue;
26
+ }
27
+ const ids = settings.methods.map((item) => item === null || item === void 0 ? void 0 : item.id);
28
+ if (!method || ids.length !== method.verificationMethods.length || new Set(ids).size !== ids.length || settings.methods.some((item) => !item || typeof item.enabled !== "boolean" || !method.verificationMethods.some((allowed) => allowed.id === item.id))) errors[group.id] = t("invalidMethods");
29
+ else if (settings.requireVerification && !settings.methods.some((item) => item.enabled)) errors[group.id] = t("minimumMethod");
30
+ }
31
+ return errors;
32
+ }
33
+ function validateIdentityValue(value, config, t = getIdentityText()) {
34
+ if (!Array.isArray(value) || value.length !== config.methods.length || new Set(value.map((row) => row === null || row === void 0 ? void 0 : row.id)).size !== config.methods.length || value.some((row) => !row || typeof row.enabled !== "boolean" || !config.methods.some((method) => method.id === row.id))) return t("invalidValue");
35
+ for (const row of value) {
36
+ const errors = validateIdentityRow(row, config, t);
37
+ const groupId = Object.keys(errors)[0];
38
+ if (groupId) return `${t(config.methods.find((method) => method.id === row.id).label)} / ${t(config.groups.find((group) => group.id === groupId).title)}: ${errors[groupId]}`;
39
+ }
40
+ }
41
+ function createIdentityDraft(row, config) {
42
+ const method = config.methods.find((item) => item.id === row.id);
43
+ const settings = {};
44
+ for (const group of config.groups) {
45
+ var _row$settings2;
46
+ const current = (_row$settings2 = row.settings) === null || _row$settings2 === void 0 ? void 0 : _row$settings2[group.id];
47
+ const existing = Array.isArray(current === null || current === void 0 ? void 0 : current.methods) ? current.methods : [];
48
+ const ordered = method.verificationMethods.slice().sort((a, b) => {
49
+ const index = (id) => {
50
+ const found = existing.findIndex((item) => (item === null || item === void 0 ? void 0 : item.id) === id);
51
+ return found < 0 ? existing.length : found;
52
+ };
53
+ return index(a.id) - index(b.id);
54
+ });
55
+ settings[group.id] = {
56
+ requireVerification: (current === null || current === void 0 ? void 0 : current.requireVerification) !== false,
57
+ methods: ordered.map(({ id }) => {
58
+ var _existing$find;
59
+ return {
60
+ id,
61
+ enabled: ((_existing$find = existing.find((item) => (item === null || item === void 0 ? void 0 : item.id) === id)) === null || _existing$find === void 0 ? void 0 : _existing$find.enabled) === true
62
+ };
63
+ })
64
+ };
65
+ }
66
+ return {
67
+ id: row.id,
68
+ enabled: row.enabled === true,
69
+ settings
70
+ };
71
+ }
72
+ const canDisableVerification = (settings, id) => {
73
+ var _settings$methods$fin;
74
+ return !settings.requireVerification || !((_settings$methods$fin = settings.methods.find((method) => method.id === id)) === null || _settings$methods$fin === void 0 ? void 0 : _settings$methods$fin.enabled) || settings.methods.filter((method) => method.enabled).length > 1;
75
+ };
76
+ //#endregion
77
+ export { canDisableVerification, createIdentityDefaultValue, createIdentityDraft, validateIdentityRow, validateIdentityValue };
@@ -0,0 +1,114 @@
1
+ .identity-recognition,
2
+ .identity-recognition-drawer {
3
+ color: var(--identity-text);
4
+ font-family: var(--identity-font-family);
5
+ font-size: var(--identity-font-size);
6
+
7
+ .identity-recognition__list {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 8px;
11
+ }
12
+ .identity-recognition__row {
13
+ box-sizing: border-box;
14
+ display: flex;
15
+ align-items: center;
16
+ gap: 12px;
17
+ min-height: 56px;
18
+ padding: 12px 16px;
19
+ border: 1px solid var(--identity-border);
20
+ border-radius: var(--identity-radius);
21
+ background: var(--identity-background);
22
+ }
23
+ .identity-recognition__label {
24
+ flex: 1;
25
+ min-width: 0;
26
+ font-weight: 500;
27
+ overflow-wrap: anywhere;
28
+ }
29
+ .identity-recognition__handle {
30
+ flex: none;
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ width: 24px;
35
+ height: 28px;
36
+ padding: 0;
37
+ border: 0;
38
+ border-radius: 4px;
39
+ color: var(--identity-muted);
40
+ background: transparent;
41
+ cursor: grab;
42
+ touch-action: none;
43
+ &:hover {
44
+ background: var(--identity-hover);
45
+ }
46
+ &:focus-visible {
47
+ outline: 2px solid var(--identity-primary);
48
+ }
49
+ &:disabled {
50
+ cursor: default;
51
+ opacity: 0.45;
52
+ }
53
+ }
54
+ }
55
+ .identity-recognition-drawer {
56
+ .identity-recognition__drawer-heading,
57
+ .identity-recognition__group-heading,
58
+ .identity-recognition__field-heading {
59
+ display: flex;
60
+ flex-direction: column;
61
+ gap: 4px;
62
+ min-width: 0;
63
+ white-space: normal;
64
+ }
65
+ .identity-recognition__groups {
66
+ display: flex;
67
+ flex-direction: column;
68
+ gap: 16px;
69
+ }
70
+ .identity-recognition__section {
71
+ display: flex;
72
+ flex-direction: column;
73
+ gap: 24px;
74
+ }
75
+ .identity-recognition__methods {
76
+ display: flex;
77
+ flex-direction: column;
78
+ gap: 12px;
79
+ }
80
+ .identity-recognition__verification {
81
+ display: flex;
82
+ justify-content: space-between;
83
+ align-items: flex-start;
84
+ gap: 16px;
85
+ > :last-child {
86
+ flex-shrink: 0;
87
+ margin-top: 2px;
88
+ }
89
+ }
90
+ .identity-recognition__footer {
91
+ display: flex;
92
+ justify-content: flex-end;
93
+ gap: 8px;
94
+ }
95
+ .identity-recognition__error {
96
+ color: var(--identity-error);
97
+ }
98
+ }
99
+ @media (max-width: 600px) {
100
+ .identity-recognition,
101
+ .identity-recognition-drawer {
102
+ .identity-recognition__row {
103
+ gap: 8px;
104
+ padding: 12px;
105
+ }
106
+ }
107
+ }
108
+
109
+ // Compact confirmation layout; retain PisellModal's equal-width theme buttons.
110
+ .pisell-lowcode-modal-root .identity-recognition-confirm.pisell-pc-modal {
111
+ .pisell-lowcode-modal-content {
112
+ min-height: 0;
113
+ }
114
+ }
@@ -0,0 +1,48 @@
1
+ import { ModeType } from "../../dataSourceForm/type.js";
2
+ import { CSSProperties } from "react";
3
+
4
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/types.d.ts
5
+ type IdentityMethodId = 'scan' | 'phone_number' | 'email';
6
+ type VerificationMethodId = 'phone_last4' | 'phone_full' | 'account_password' | 'sms_code' | 'email_code';
7
+ interface VerificationValue {
8
+ id: VerificationMethodId;
9
+ enabled: boolean;
10
+ }
11
+ interface VerificationSettings {
12
+ requireVerification: boolean;
13
+ methods: VerificationValue[];
14
+ }
15
+ interface IdentityRowValue {
16
+ id: IdentityMethodId;
17
+ enabled: boolean;
18
+ settings: Record<string, VerificationSettings>;
19
+ }
20
+ type IdentityValue = IdentityRowValue[];
21
+ interface IdentityConfig {
22
+ groups: Array<{
23
+ id: string;
24
+ title: string;
25
+ }>;
26
+ methods: Array<{
27
+ id: IdentityMethodId;
28
+ label: string;
29
+ enabled: boolean;
30
+ verificationMethods: Array<{
31
+ id: VerificationMethodId;
32
+ label: string;
33
+ enabled: boolean;
34
+ }>;
35
+ }>;
36
+ }
37
+ interface IdentityRecognitionProps {
38
+ config: IdentityConfig;
39
+ value?: IdentityValue;
40
+ onChange?: (value: IdentityValue) => void;
41
+ disabled?: boolean;
42
+ readOnly?: boolean;
43
+ renderMode?: ModeType;
44
+ className?: string;
45
+ style?: CSSProperties;
46
+ }
47
+ //#endregion
48
+ export { IdentityConfig, IdentityMethodId, IdentityRecognitionProps, IdentityRowValue, IdentityValue, VerificationMethodId, VerificationSettings, VerificationValue };
@@ -0,0 +1,14 @@
1
+ import PisellContext from "../../../pisell-config-provider/context.js";
2
+ import useEngineContext from "../../../../hooks/useEngineContext.js";
3
+ import { getHostLocale } from "../../../../utils/getHostLocale.js";
4
+ import { getIdentityText } from "./locales.js";
5
+ import { useContext } from "react";
6
+ //#region src/components/dataSourceComponents/fields/IdentityRecognition/useIdentityText.ts
7
+ function useIdentityText() {
8
+ var _context$appHelper;
9
+ const context = useEngineContext();
10
+ const { locale } = useContext(PisellContext);
11
+ return getIdentityText(locale || getHostLocale((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.storage));
12
+ }
13
+ //#endregion
14
+ export { useIdentityText as default };
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
2
3
  import { RecordListWrapperProps } from "./type.js";
3
- import React from "react";
4
4
 
5
5
  //#region src/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts
6
6
  declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps & WithModeProps & WithFormItemProps & {
@@ -12,6 +12,6 @@ declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps &
12
12
  } & {
13
13
  dataSource?: any;
14
14
  extraParams?: Record<string, any> | undefined;
15
- }) => React.JSX.Element;
15
+ }) => JSX.Element;
16
16
  //#endregion
17
17
  export { RecordListWrapperWithDataSource };
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
2
- import React from "react";
3
3
  import * as _$antd from "antd";
4
4
  import * as _$antd_es_select0 from "antd/es/select";
5
5
 
@@ -13,6 +13,6 @@ declare const SelectWithDataSource: (props: _$antd.SelectProps<any, _$antd_es_se
13
13
  } & {
14
14
  dataSource?: any;
15
15
  extraParams?: Record<string, any> | undefined;
16
- }) => React.JSX.Element;
16
+ }) => JSX.Element;
17
17
  //#endregion
18
18
  export { SelectWithDataSource };
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
3
3
  import { TabsProps } from "./type.js";
4
- import * as _$react from "react";
5
4
 
6
5
  //#region src/components/dataSourceComponents/fields/Tabs/index.d.ts
7
6
  /** 包装 DataSource 层(提供数据源上下文) */
@@ -14,6 +13,6 @@ declare const FormItemTabs: (props: TabsProps & WithModeProps & WithFormItemProp
14
13
  } & {
15
14
  dataSource?: any;
16
15
  extraParams?: Record<string, any> | undefined;
17
- }) => _$react.JSX.Element;
16
+ }) => JSX.Element;
18
17
  //#endregion
19
18
  export { FormItemTabs };
@@ -1,4 +1,5 @@
1
1
  import Input from "./Input/index.js";
2
+ import { SmartLockerIdentification, VendingMachineIdentification } from "./IdentityRecognition/index.js";
2
3
  import Checkbox from "./Checkbox/index.js";
3
4
  import ColorPicker from "./ColorPicker/index.js";
4
5
  import DatePicker from "./DatePicker/index.js";
@@ -36,7 +37,9 @@ const formFieldMap = {
36
37
  FormItemTranslation: Translation,
37
38
  FormItemIconSelect: IconSelect,
38
39
  FormItemRecordListWrapper: RecordListWrapperWithDataSource,
39
- FormItemTabs
40
+ FormItemTabs,
41
+ FormItemSmartLockerIdentification: SmartLockerIdentification,
42
+ FormItemVendingMachineIdentification: VendingMachineIdentification
40
43
  };
41
44
  const getFieldComponent = (fieldComponent) => {
42
45
  return formFieldMap[fieldComponent];
@@ -58,6 +58,8 @@ const formFieldFilterFuncMap = {
58
58
  "Checkbox.Group": (value) => {
59
59
  return { $anyOf: Array.isArray(value) ? value : [value] };
60
60
  },
61
+ SmartLockerIdentification: () => null,
62
+ VendingMachineIdentification: () => null,
61
63
  RecordListWrapper: () => {
62
64
  return null;
63
65
  }