@byteluck-fe/model-driven-controls 6.2.0-beta.9 → 6.2.0-cyj.2

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 (328) hide show
  1. package/dist/esm/api-doc-index.js +1 -1
  2. package/dist/esm/baseControls/BatchDeleteButton/designer.js +12 -20
  3. package/dist/esm/baseControls/BatchDeleteButton/property.js +22 -38
  4. package/dist/esm/baseControls/BatchDeleteButton/runtime.js +12 -20
  5. package/dist/esm/baseControls/BatchPrintListButton/designer.js +12 -20
  6. package/dist/esm/baseControls/BatchPrintListButton/property.js +18 -29
  7. package/dist/esm/baseControls/BatchPrintListButton/runtime.js +12 -20
  8. package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +12 -20
  9. package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +14 -21
  10. package/dist/esm/baseControls/BatchPrintRecordListButton/runtime.js +12 -20
  11. package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +12 -20
  12. package/dist/esm/baseControls/BatchSubmissionListButton/property.js +19 -32
  13. package/dist/esm/baseControls/BatchSubmissionListButton/runtime.js +12 -20
  14. package/dist/esm/baseControls/Button/designer.js +12 -20
  15. package/dist/esm/baseControls/Button/property.js +22 -38
  16. package/dist/esm/baseControls/Button/runtime.js +12 -20
  17. package/dist/esm/baseControls/Comment/designer.js +12 -20
  18. package/dist/esm/baseControls/Comment/property.js +14 -22
  19. package/dist/esm/baseControls/Comment/runtime.js +12 -20
  20. package/dist/esm/baseControls/CreateFormListButton/designer.js +12 -20
  21. package/dist/esm/baseControls/CreateFormListButton/property.js +17 -28
  22. package/dist/esm/baseControls/CreateFormListButton/runtime.js +12 -20
  23. package/dist/esm/baseControls/Dashboard/designer.js +12 -20
  24. package/dist/esm/baseControls/Dashboard/property.js +21 -36
  25. package/dist/esm/baseControls/Dashboard/runtime.js +12 -20
  26. package/dist/esm/baseControls/Divider/designer.js +12 -20
  27. package/dist/esm/baseControls/Divider/property.js +16 -25
  28. package/dist/esm/baseControls/Divider/runtime.js +12 -20
  29. package/dist/esm/baseControls/ExportListButton/designer.js +12 -20
  30. package/dist/esm/baseControls/ExportListButton/property.js +18 -29
  31. package/dist/esm/baseControls/ExportListButton/runtime.js +12 -20
  32. package/dist/esm/baseControls/ExportRecordListButton/designer.js +12 -20
  33. package/dist/esm/baseControls/ExportRecordListButton/property.js +14 -21
  34. package/dist/esm/baseControls/ExportRecordListButton/runtime.js +12 -20
  35. package/dist/esm/baseControls/FormSelectButton/designer.js +12 -20
  36. package/dist/esm/baseControls/FormSelectButton/property.js +16 -26
  37. package/dist/esm/baseControls/FormSelectButton/runtime.js +12 -20
  38. package/dist/esm/baseControls/ImportRecordListButton/designer.js +12 -20
  39. package/dist/esm/baseControls/ImportRecordListButton/property.js +18 -29
  40. package/dist/esm/baseControls/ImportRecordListButton/runtime.js +12 -20
  41. package/dist/esm/baseControls/InvoiceCheckButton/designer.js +12 -20
  42. package/dist/esm/baseControls/InvoiceCheckButton/property.js +23 -39
  43. package/dist/esm/baseControls/InvoiceCheckButton/runtime.js +12 -20
  44. package/dist/esm/baseControls/ListSelectButton/designer.js +12 -20
  45. package/dist/esm/baseControls/ListSelectButton/property.js +18 -30
  46. package/dist/esm/baseControls/ListSelectButton/runtime.js +12 -20
  47. package/dist/esm/baseControls/ListViewSelect/designer.js +12 -20
  48. package/dist/esm/baseControls/ListViewSelect/property.js +16 -25
  49. package/dist/esm/baseControls/ListViewSelect/runtime.js +12 -20
  50. package/dist/esm/baseControls/OperationButton/designer.js +12 -20
  51. package/dist/esm/baseControls/OperationButton/property.js +19 -32
  52. package/dist/esm/baseControls/OperationButton/runtime.js +12 -20
  53. package/dist/esm/baseControls/Pagination/designer.js +12 -20
  54. package/dist/esm/baseControls/Pagination/property.js +12 -20
  55. package/dist/esm/baseControls/Pagination/runtime.js +12 -20
  56. package/dist/esm/baseControls/ReferenceList/designer.js +12 -20
  57. package/dist/esm/baseControls/ReferenceList/property.js +19 -32
  58. package/dist/esm/baseControls/ReferenceList/runtime.js +12 -20
  59. package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +12 -20
  60. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +14 -21
  61. package/dist/esm/baseControls/SubmissionRecordListButton/runtime.js +12 -20
  62. package/dist/esm/baseControls/Text/designer.js +12 -20
  63. package/dist/esm/baseControls/Text/property.js +19 -32
  64. package/dist/esm/baseControls/Text/runtime.js +12 -20
  65. package/dist/esm/baseControls/TextOcrButton/designer.js +12 -20
  66. package/dist/esm/baseControls/TextOcrButton/property.js +23 -39
  67. package/dist/esm/baseControls/TextOcrButton/runtime.js +12 -20
  68. package/dist/esm/baseControls/Title/designer.js +12 -20
  69. package/dist/esm/baseControls/Title/property.js +16 -26
  70. package/dist/esm/baseControls/Title/runtime.js +12 -20
  71. package/dist/esm/baseControls/index.js +0 -1
  72. package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +12 -20
  73. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +16 -26
  74. package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +12 -20
  75. package/dist/esm/columnControls/ArrayColumn/designer.js +12 -20
  76. package/dist/esm/columnControls/ArrayColumn/property.js +17 -28
  77. package/dist/esm/columnControls/ArrayColumn/runtime.js +12 -20
  78. package/dist/esm/columnControls/AutoNumberColumn/designer.js +12 -20
  79. package/dist/esm/columnControls/AutoNumberColumn/property.js +15 -24
  80. package/dist/esm/columnControls/AutoNumberColumn/runtime.js +12 -20
  81. package/dist/esm/columnControls/CustomColumn/designer.js +17 -29
  82. package/dist/esm/columnControls/CustomColumn/property.js +16 -26
  83. package/dist/esm/columnControls/CustomColumn/runtime.js +12 -20
  84. package/dist/esm/columnControls/DecimalColumn/designer.js +15 -26
  85. package/dist/esm/columnControls/DecimalColumn/property.js +20 -34
  86. package/dist/esm/columnControls/DecimalColumn/runtime.js +12 -20
  87. package/dist/esm/columnControls/DepartmentColumn/designer.js +15 -26
  88. package/dist/esm/columnControls/DepartmentColumn/property.js +15 -24
  89. package/dist/esm/columnControls/DepartmentColumn/runtime.js +12 -20
  90. package/dist/esm/columnControls/EmployeeColumn/designer.js +12 -20
  91. package/dist/esm/columnControls/EmployeeColumn/property.js +15 -24
  92. package/dist/esm/columnControls/EmployeeColumn/runtime.js +12 -20
  93. package/dist/esm/columnControls/FileColumn/designer.js +12 -20
  94. package/dist/esm/columnControls/FileColumn/property.js +15 -24
  95. package/dist/esm/columnControls/FileColumn/runtime.js +12 -20
  96. package/dist/esm/columnControls/GroupColumn/designer.js +12 -20
  97. package/dist/esm/columnControls/GroupColumn/property.js +13 -19
  98. package/dist/esm/columnControls/GroupColumn/runtime.js +12 -20
  99. package/dist/esm/columnControls/ImageColumn/designer.js +12 -20
  100. package/dist/esm/columnControls/ImageColumn/property.js +13 -19
  101. package/dist/esm/columnControls/ImageColumn/runtime.js +12 -20
  102. package/dist/esm/columnControls/LocationColumn/designer.js +12 -20
  103. package/dist/esm/columnControls/LocationColumn/property.js +15 -24
  104. package/dist/esm/columnControls/LocationColumn/runtime.js +12 -20
  105. package/dist/esm/columnControls/OperationColumn/designer.js +33 -39
  106. package/dist/esm/columnControls/OperationColumn/property.js +18 -30
  107. package/dist/esm/columnControls/OperationColumn/runtime.js +12 -20
  108. package/dist/esm/columnControls/OrderColumn/designer.js +12 -20
  109. package/dist/esm/columnControls/OrderColumn/property.js +19 -32
  110. package/dist/esm/columnControls/OrderColumn/runtime.js +12 -20
  111. package/dist/esm/columnControls/PeopleColumn/designer.js +12 -20
  112. package/dist/esm/columnControls/PeopleColumn/property.js +13 -19
  113. package/dist/esm/columnControls/PeopleColumn/runtime.js +12 -20
  114. package/dist/esm/columnControls/TextColumn/designer.js +15 -26
  115. package/dist/esm/columnControls/TextColumn/property.js +17 -28
  116. package/dist/esm/columnControls/TextColumn/runtime.js +12 -20
  117. package/dist/esm/columnControls/TimescopeColumn/designer.js +15 -26
  118. package/dist/esm/columnControls/TimescopeColumn/property.js +17 -28
  119. package/dist/esm/columnControls/TimescopeColumn/runtime.js +12 -20
  120. package/dist/esm/columnControls/TimestampColumn/designer.js +15 -26
  121. package/dist/esm/columnControls/TimestampColumn/property.js +17 -28
  122. package/dist/esm/columnControls/TimestampColumn/runtime.js +12 -20
  123. package/dist/esm/columnControls/VarcharColumn/designer.js +12 -20
  124. package/dist/esm/columnControls/VarcharColumn/property.js +19 -32
  125. package/dist/esm/columnControls/VarcharColumn/runtime.js +12 -20
  126. package/dist/esm/formControls/Address/designer.js +12 -20
  127. package/dist/esm/formControls/Address/property.js +18 -30
  128. package/dist/esm/formControls/Address/runtime.js +12 -20
  129. package/dist/esm/formControls/Amount/designer.js +15 -26
  130. package/dist/esm/formControls/Amount/property.js +27 -47
  131. package/dist/esm/formControls/Amount/runtime.js +12 -20
  132. package/dist/esm/formControls/Attachment/designer.js +12 -20
  133. package/dist/esm/formControls/Attachment/property.js +37 -60
  134. package/dist/esm/formControls/Attachment/runtime.js +12 -20
  135. package/dist/esm/formControls/AutoNumber/designer.js +12 -20
  136. package/dist/esm/formControls/AutoNumber/property.js +16 -26
  137. package/dist/esm/formControls/AutoNumber/runtime.js +12 -20
  138. package/dist/esm/formControls/Calc/designer.js +15 -26
  139. package/dist/esm/formControls/Calc/property.js +22 -38
  140. package/dist/esm/formControls/Calc/runtime.js +12 -20
  141. package/dist/esm/formControls/Checkbox/designer.js +12 -20
  142. package/dist/esm/formControls/Checkbox/property.js +28 -49
  143. package/dist/esm/formControls/Checkbox/runtime.js +12 -20
  144. package/dist/esm/formControls/DatePicker/designer.js +15 -26
  145. package/dist/esm/formControls/DatePicker/property.js +27 -47
  146. package/dist/esm/formControls/DatePicker/runtime.js +12 -20
  147. package/dist/esm/formControls/DateRange/designer.js +15 -26
  148. package/dist/esm/formControls/DateRange/property.js +25 -43
  149. package/dist/esm/formControls/DateRange/runtime.js +12 -20
  150. package/dist/esm/formControls/Department/designer.js +15 -26
  151. package/dist/esm/formControls/Department/property.js +24 -42
  152. package/dist/esm/formControls/Department/runtime.js +12 -20
  153. package/dist/esm/formControls/Department2/designer.js +15 -26
  154. package/dist/esm/formControls/Department2/property.js +31 -55
  155. package/dist/esm/formControls/Department2/runtime.js +12 -20
  156. package/dist/esm/formControls/ElectronicSignature/designer.js +12 -20
  157. package/dist/esm/formControls/ElectronicSignature/property.js +19 -32
  158. package/dist/esm/formControls/ElectronicSignature/runtime.js +12 -20
  159. package/dist/esm/formControls/Employee/designer.js +12 -20
  160. package/dist/esm/formControls/Employee/property.js +22 -38
  161. package/dist/esm/formControls/Employee/runtime.js +12 -20
  162. package/dist/esm/formControls/Employee2/designer.js +12 -20
  163. package/dist/esm/formControls/Employee2/property.js +29 -52
  164. package/dist/esm/formControls/Employee2/runtime.js +12 -20
  165. package/dist/esm/formControls/Image/designer.js +20 -28
  166. package/dist/esm/formControls/Image/property.js +19 -32
  167. package/dist/esm/formControls/Image/runtime.js +12 -20
  168. package/dist/esm/formControls/Input/designer.js +12 -20
  169. package/dist/esm/formControls/Input/property.js +23 -40
  170. package/dist/esm/formControls/Input/runtime.js +12 -20
  171. package/dist/esm/{baseControls → formControls}/Link/designer.js +20 -24
  172. package/dist/esm/{baseControls → formControls}/Link/property.js +20 -30
  173. package/dist/esm/{baseControls → formControls}/Link/runtime.js +12 -20
  174. package/dist/esm/formControls/Number/designer.js +15 -26
  175. package/dist/esm/formControls/Number/property.js +26 -46
  176. package/dist/esm/formControls/Number/runtime.js +12 -20
  177. package/dist/esm/formControls/OrganizationSelection/designer.js +15 -26
  178. package/dist/esm/formControls/OrganizationSelection/property.js +31 -56
  179. package/dist/esm/formControls/OrganizationSelection/runtime.js +12 -20
  180. package/dist/esm/formControls/Radio/designer.js +12 -20
  181. package/dist/esm/formControls/Radio/property.js +25 -44
  182. package/dist/esm/formControls/Radio/runtime.js +12 -20
  183. package/dist/esm/formControls/RichText/designer.js +12 -20
  184. package/dist/esm/formControls/RichText/property.js +23 -40
  185. package/dist/esm/formControls/RichText/runtime.js +12 -20
  186. package/dist/esm/formControls/Score/designer.js +19 -28
  187. package/dist/esm/formControls/Score/property.js +20 -33
  188. package/dist/esm/formControls/Score/runtime.js +12 -20
  189. package/dist/esm/formControls/SearchDateRange/designer.js +12 -20
  190. package/dist/esm/formControls/SearchDateRange/property.js +26 -45
  191. package/dist/esm/formControls/SearchDateRange/runtime.js +12 -20
  192. package/dist/esm/formControls/SearchInput/designer.js +12 -20
  193. package/dist/esm/formControls/SearchInput/property.js +11 -17
  194. package/dist/esm/formControls/SearchInput/runtime.js +12 -20
  195. package/dist/esm/formControls/SearchNumberRange/designer.js +12 -20
  196. package/dist/esm/formControls/SearchNumberRange/property.js +19 -32
  197. package/dist/esm/formControls/SearchNumberRange/runtime.js +12 -20
  198. package/dist/esm/formControls/Select/designer.js +12 -20
  199. package/dist/esm/formControls/Select/property.js +24 -42
  200. package/dist/esm/formControls/Select/runtime.js +12 -20
  201. package/dist/esm/formControls/SelectMultiple/designer.js +12 -20
  202. package/dist/esm/formControls/SelectMultiple/property.js +23 -40
  203. package/dist/esm/formControls/SelectMultiple/runtime.js +12 -20
  204. package/dist/esm/formControls/SelectRelation/designer.js +15 -26
  205. package/dist/esm/formControls/SelectRelation/property.js +26 -46
  206. package/dist/esm/formControls/SelectRelation/runtime.js +12 -20
  207. package/dist/esm/formControls/Textarea/designer.js +12 -20
  208. package/dist/esm/formControls/Textarea/property.js +23 -40
  209. package/dist/esm/formControls/Textarea/runtime.js +12 -20
  210. package/dist/esm/formControls/Tree/designer.js +14 -21
  211. package/dist/esm/formControls/Tree/property.js +55 -58
  212. package/dist/esm/formControls/Tree/runtime.js +12 -20
  213. package/dist/esm/formControls/VueFormItem/designer.js +12 -20
  214. package/dist/esm/formControls/VueFormItem/property.js +18 -30
  215. package/dist/esm/formControls/VueFormItem/runtime.js +12 -20
  216. package/dist/esm/formControls/VuePage/designer.js +12 -20
  217. package/dist/esm/formControls/VuePage/property.js +18 -30
  218. package/dist/esm/formControls/VuePage/runtime.js +12 -20
  219. package/dist/esm/formControls/WPS/designer.js +21 -29
  220. package/dist/esm/formControls/WPS/property.js +25 -44
  221. package/dist/esm/formControls/WPS/runtime.js +12 -20
  222. package/dist/esm/formControls/index.js +1 -0
  223. package/dist/esm/framework.js +71 -119
  224. package/dist/esm/layoutControls/ActionBar/designer.js +14 -22
  225. package/dist/esm/layoutControls/ActionBar/property.js +16 -26
  226. package/dist/esm/layoutControls/ActionBar/runtime.js +14 -22
  227. package/dist/esm/layoutControls/AdvancedContainer/Setting.js +4 -2
  228. package/dist/esm/layoutControls/AdvancedContainer/designer.js +11 -17
  229. package/dist/esm/layoutControls/AdvancedContainer/property.js +12 -20
  230. package/dist/esm/layoutControls/AdvancedContainer/runtime.js +11 -17
  231. package/dist/esm/layoutControls/CardGroup/designer.js +12 -20
  232. package/dist/esm/layoutControls/CardGroup/property.js +16 -26
  233. package/dist/esm/layoutControls/CardGroup/runtime.js +12 -20
  234. package/dist/esm/layoutControls/Col/designer.js +12 -20
  235. package/dist/esm/layoutControls/Col/property.js +17 -28
  236. package/dist/esm/layoutControls/Col/runtime.js +12 -20
  237. package/dist/esm/layoutControls/DataView/designer.js +12 -20
  238. package/dist/esm/layoutControls/DataView/property.js +20 -34
  239. package/dist/esm/layoutControls/DataView/runtime.js +12 -20
  240. package/dist/esm/layoutControls/Grid/designer.js +12 -20
  241. package/dist/esm/layoutControls/Grid/runtime.js +11 -17
  242. package/dist/esm/layoutControls/GridLayoutContainer/designer.js +12 -20
  243. package/dist/esm/layoutControls/GridLayoutContainer/property.js +15 -24
  244. package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +12 -20
  245. package/dist/esm/layoutControls/GridRow/designer.js +12 -20
  246. package/dist/esm/layoutControls/GridRow/property.js +11 -17
  247. package/dist/esm/layoutControls/GridRow/runtime.js +11 -17
  248. package/dist/esm/layoutControls/GridTableColumn/designer.js +12 -20
  249. package/dist/esm/layoutControls/GridTableColumn/property.js +23 -40
  250. package/dist/esm/layoutControls/GridTableColumn/runtime.js +12 -20
  251. package/dist/esm/layoutControls/ListView/designer.js +12 -20
  252. package/dist/esm/layoutControls/ListView/property.js +27 -48
  253. package/dist/esm/layoutControls/ListView/runtime.js +12 -20
  254. package/dist/esm/layoutControls/Page/Setting.js +4 -2
  255. package/dist/esm/layoutControls/Page/designer.js +11 -17
  256. package/dist/esm/layoutControls/Page/property.js +14 -22
  257. package/dist/esm/layoutControls/Page/runtime.js +11 -17
  258. package/dist/esm/layoutControls/Position/designer.js +11 -17
  259. package/dist/esm/layoutControls/Position/property.js +17 -28
  260. package/dist/esm/layoutControls/Position/runtime.js +11 -17
  261. package/dist/esm/layoutControls/PositioningContainer/Setting.js +4 -2
  262. package/dist/esm/layoutControls/PositioningContainer/designer.js +11 -17
  263. package/dist/esm/layoutControls/PositioningContainer/property.js +11 -17
  264. package/dist/esm/layoutControls/PositioningContainer/runtime.js +11 -17
  265. package/dist/esm/layoutControls/Row/designer.js +12 -20
  266. package/dist/esm/layoutControls/Row/property.js +15 -24
  267. package/dist/esm/layoutControls/Row/runtime.js +12 -20
  268. package/dist/esm/layoutControls/Step/designer.js +14 -22
  269. package/dist/esm/layoutControls/Step/property.js +18 -30
  270. package/dist/esm/layoutControls/Step/runtime.js +12 -20
  271. package/dist/esm/layoutControls/StepPane/designer.js +12 -20
  272. package/dist/esm/layoutControls/StepPane/property.js +21 -36
  273. package/dist/esm/layoutControls/StepPane/runtime.js +12 -20
  274. package/dist/esm/layoutControls/SubTableColumn/designer.js +12 -20
  275. package/dist/esm/layoutControls/SubTableColumn/property.js +18 -30
  276. package/dist/esm/layoutControls/SubTableColumn/runtime.js +12 -20
  277. package/dist/esm/layoutControls/SubTableRow/designer.js +12 -20
  278. package/dist/esm/layoutControls/SubTableRow/property.js +11 -17
  279. package/dist/esm/layoutControls/SubTableRow/runtime.js +12 -20
  280. package/dist/esm/layoutControls/Tab/designer.js +14 -22
  281. package/dist/esm/layoutControls/Tab/property.js +14 -22
  282. package/dist/esm/layoutControls/Tab/runtime.js +12 -20
  283. package/dist/esm/layoutControls/TabPane/designer.js +12 -20
  284. package/dist/esm/layoutControls/TabPane/property.js +14 -22
  285. package/dist/esm/layoutControls/TabPane/runtime.js +12 -20
  286. package/dist/esm/layoutControls/TableLayout/designer.js +12 -20
  287. package/dist/esm/layoutControls/TableLayout/property.js +28 -50
  288. package/dist/esm/layoutControls/TableLayout/runtime.js +12 -20
  289. package/dist/esm/layoutControls/TableLayoutCol/designer.js +12 -20
  290. package/dist/esm/layoutControls/TableLayoutCol/property.js +23 -40
  291. package/dist/esm/layoutControls/TableLayoutCol/runtime.js +12 -20
  292. package/dist/esm/layoutControls/TableLayoutRow/designer.js +12 -20
  293. package/dist/esm/layoutControls/TableLayoutRow/property.js +15 -24
  294. package/dist/esm/layoutControls/TableLayoutRow/runtime.js +12 -20
  295. package/dist/esm/layoutControls/TableLayoutWrapper/designer.js +12 -20
  296. package/dist/esm/layoutControls/TableLayoutWrapper/property.js +16 -26
  297. package/dist/esm/layoutControls/TableLayoutWrapper/runtime.js +12 -20
  298. package/dist/esm/layoutControls/Toolbox/designer.js +12 -20
  299. package/dist/esm/layoutControls/Toolbox/property.js +11 -17
  300. package/dist/esm/layoutControls/Toolbox/runtime.js +11 -17
  301. package/dist/esm/listControls/GridTable/designer.js +37 -45
  302. package/dist/esm/listControls/GridTable/property.js +27 -39
  303. package/dist/esm/listControls/GridTable/runtime.js +12 -20
  304. package/dist/esm/listControls/SubTable/designer.js +12 -20
  305. package/dist/esm/listControls/SubTable/property.js +47 -88
  306. package/dist/esm/listControls/SubTable/runtime.js +12 -20
  307. package/dist/esm/searchControls/SimpleSearch/designer.js +12 -20
  308. package/dist/esm/searchControls/SimpleSearch/property.js +25 -44
  309. package/dist/esm/searchControls/SimpleSearch/runtime.js +14 -22
  310. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +20 -28
  311. package/dist/esm/wrapControls/GridLayoutWrap/property.js +14 -22
  312. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +20 -28
  313. package/dist/index.umd.js +8 -1
  314. package/dist/types/api-doc-index.d.ts +1 -1
  315. package/dist/types/baseControls/index.d.ts +0 -1
  316. package/dist/types/{baseControls → formControls}/Link/designer.d.ts +2 -2
  317. package/dist/types/{baseControls → formControls}/Link/property.d.ts +2 -2
  318. package/dist/types/formControls/Tree/property.d.ts +31 -0
  319. package/dist/types/formControls/index.d.ts +1 -0
  320. package/dist/types/framework.d.ts +19 -19
  321. package/dist/types/type.d.ts +4 -4
  322. package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
  323. package/package.json +5 -5
  324. /package/dist/esm/{baseControls → formControls}/Link/index.js +0 -0
  325. /package/dist/esm/{baseControls → formControls}/Link/types.js +0 -0
  326. /package/dist/types/{baseControls → formControls}/Link/index.d.ts +0 -0
  327. /package/dist/types/{baseControls → formControls}/Link/runtime.d.ts +0 -0
  328. /package/dist/types/{baseControls → formControls}/Link/types.d.ts +0 -0
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,22 +31,17 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get(target, property, receiver) {
44
- if (typeof Reflect !== "undefined" && Reflect.get) {
45
- _get = Reflect.get;
46
- } else {
38
+ if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
39
+ else {
47
40
  _get = function get(target, property, receiver) {
48
41
  var base = _super_prop_base(target, property);
49
42
  if (!base) return;
50
43
  var desc = Object.getOwnPropertyDescriptor(base, property);
51
- if (desc.get) {
52
- return desc.get.call(receiver || target);
53
- }
44
+ if (desc.get) return desc.get.call(receiver || target);
54
45
  return desc.value;
55
46
  };
56
47
  }
@@ -75,10 +66,16 @@ function _inherits(subClass, superClass) {
75
66
  });
76
67
  if (superClass) _set_prototype_of(subClass, superClass);
77
68
  }
69
+ function _is_native_reflect_construct() {
70
+ try {
71
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
72
+ } catch (_) {}
73
+ return (_is_native_reflect_construct = function() {
74
+ return !!result;
75
+ })();
76
+ }
78
77
  function _possible_constructor_return(self, call) {
79
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
80
- return call;
81
- }
78
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
82
79
  return _assert_this_initialized(self);
83
80
  }
84
81
  function _set_prototype_of(o, p) {
@@ -99,14 +96,6 @@ function _type_of(obj) {
99
96
  "@swc/helpers - typeof";
100
97
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
101
98
  }
102
- function _is_native_reflect_construct() {
103
- try {
104
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
105
- } catch (_) {}
106
- return (_is_native_reflect_construct = function() {
107
- return !!result;
108
- })();
109
- }
110
99
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
111
100
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
112
101
  import AmountProperty from './property';
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _define_property(obj, key, value) {
17
13
  if (key in obj) {
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
21
17
  configurable: true,
22
18
  writable: true
23
19
  });
24
- } else {
25
- obj[key] = value;
26
- }
20
+ } else obj[key] = value;
27
21
  return obj;
28
22
  }
29
23
  function _get_prototype_of(o) {
@@ -45,6 +39,14 @@ function _inherits(subClass, superClass) {
45
39
  });
46
40
  if (superClass) _set_prototype_of(subClass, superClass);
47
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
48
50
  function _object_spread(target) {
49
51
  for(var i = 1; i < arguments.length; i++){
50
52
  var source = arguments[i] != null ? arguments[i] : {};
@@ -75,9 +77,8 @@ function ownKeys(object, enumerableOnly) {
75
77
  }
76
78
  function _object_spread_props(target, source) {
77
79
  source = source != null ? source : {};
78
- if (Object.getOwnPropertyDescriptors) {
79
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
80
- } else {
80
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
81
+ else {
81
82
  ownKeys(Object(source)).forEach(function(key) {
82
83
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
83
84
  });
@@ -85,9 +86,7 @@ function _object_spread_props(target, source) {
85
86
  return target;
86
87
  }
87
88
  function _possible_constructor_return(self, call) {
88
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
89
- return call;
90
- }
89
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
91
90
  return _assert_this_initialized(self);
92
91
  }
93
92
  function _set_prototype_of(o, p) {
@@ -101,14 +100,6 @@ function _type_of(obj) {
101
100
  "@swc/helpers - typeof";
102
101
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
103
102
  }
104
- function _is_native_reflect_construct() {
105
- try {
106
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
107
- } catch (_) {}
108
- return (_is_native_reflect_construct = function() {
109
- return !!result;
110
- })();
111
- }
112
103
  import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, AMOUNT_TYPE, AmountDataBind, AmountValue, DataSourceBind, DisplayBoListItem, initOptions } from '@byteluck-fe/model-driven-core';
113
104
  import AmountControl from './designer';
114
105
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -202,6 +193,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
202
193
  function AmountProperty(props) {
203
194
  _class_call_check(this, AmountProperty);
204
195
  var _this;
196
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
205
197
  _this = _call_super(this, AmountProperty, [
206
198
  props
207
199
  ]), /**
@@ -237,41 +229,29 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
237
229
  * */ _define_property(_this, "defaultValue", void 0), /**
238
230
  * 币种的默认选项
239
231
  * */ _define_property(_this, "options", void 0);
240
- var _props_rangeMin;
241
- _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
242
- var _props_rangeMax;
243
- _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
244
- var _props_optionConfig;
245
- _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
246
- var _props_micrometer;
247
- _this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
248
- var _props_precision;
249
- _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 2;
232
+ _this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
233
+ _this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
234
+ _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'datasource';
235
+ _this.micrometer = (_ref3 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref3 !== void 0 ? _ref3 : false;
236
+ _this.precision = (_ref4 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref4 !== void 0 ? _ref4 : 2;
250
237
  _this.dataBind = new AmountDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
251
- var _props_datasourceBind;
252
- _this.datasourceBind = new DataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
238
+ _this.datasourceBind = new DataSourceBind((_ref5 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref5 !== void 0 ? _ref5 : {
253
239
  displayBoList: [
254
240
  new DisplayBoListItem({
255
241
  value: 'name'
256
242
  })
257
243
  ]
258
244
  });
259
- var _props_defaultValue;
260
- _this.defaultValue = new AmountValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {
245
+ _this.defaultValue = new AmountValue((_ref6 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref6 !== void 0 ? _ref6 : {
261
246
  amount: '',
262
247
  currency: AMOUNT_TYPE.CNY
263
248
  });
264
- var _props_unitPosition;
265
- _this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
249
+ _this.unitPosition = (_ref7 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref7 !== void 0 ? _ref7 : 'right';
266
250
  _this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
267
- var _props_caption;
268
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
269
- var _props_placeholder;
270
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
271
- var _props_submitSelectCurrency;
272
- _this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
273
- var _props_showUpperCase;
274
- _this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
251
+ _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : AmountControl.controlName;
252
+ _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseEnter', null, '请输入');
253
+ _this.submitSelectCurrency = (_ref10 = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _ref10 !== void 0 ? _ref10 : false;
254
+ _this.showUpperCase = (_ref11 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref11 !== void 0 ? _ref11 : false;
275
255
  return _this;
276
256
  }
277
257
  return AmountProperty;
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get_prototype_of(o) {
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
59
53
  });
60
54
  if (superClass) _set_prototype_of(subClass, superClass);
61
55
  }
56
+ function _is_native_reflect_construct() {
57
+ try {
58
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
59
+ } catch (_) {}
60
+ return (_is_native_reflect_construct = function() {
61
+ return !!result;
62
+ })();
63
+ }
62
64
  function _possible_constructor_return(self, call) {
63
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
- return call;
65
- }
65
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
66
66
  return _assert_this_initialized(self);
67
67
  }
68
68
  function _set_prototype_of(o, p) {
@@ -76,14 +76,6 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- function _is_native_reflect_construct() {
80
- try {
81
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
- } catch (_) {}
83
- return (_is_native_reflect_construct = function() {
84
- return !!result;
85
- })();
86
- }
87
79
  import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
88
80
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
81
  import AmountProperty from './property';
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get_prototype_of(o) {
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
59
53
  });
60
54
  if (superClass) _set_prototype_of(subClass, superClass);
61
55
  }
56
+ function _is_native_reflect_construct() {
57
+ try {
58
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
59
+ } catch (_) {}
60
+ return (_is_native_reflect_construct = function() {
61
+ return !!result;
62
+ })();
63
+ }
62
64
  function _possible_constructor_return(self, call) {
63
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
- return call;
65
- }
65
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
66
66
  return _assert_this_initialized(self);
67
67
  }
68
68
  function _set_prototype_of(o, p) {
@@ -76,14 +76,6 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- function _is_native_reflect_construct() {
80
- try {
81
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
- } catch (_) {}
83
- return (_is_native_reflect_construct = function() {
84
- return !!result;
85
- })();
86
- }
87
79
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
80
  import AttachmentProperty from './property';
89
81
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
@@ -1,13 +1,5 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-09-14 18:31:51
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:49:31
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
7
- */ function _assert_this_initialized(self) {
8
- if (self === void 0) {
9
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10
- }
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
11
3
  return self;
12
4
  }
13
5
  function _call_super(_this, derived, args) {
@@ -15,9 +7,7 @@ function _call_super(_this, derived, args) {
15
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
16
8
  }
17
9
  function _class_call_check(instance, Constructor) {
18
- if (!(instance instanceof Constructor)) {
19
- throw new TypeError("Cannot call a class as a function");
20
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
21
11
  }
22
12
  function _define_property(obj, key, value) {
23
13
  if (key in obj) {
@@ -27,9 +17,7 @@ function _define_property(obj, key, value) {
27
17
  configurable: true,
28
18
  writable: true
29
19
  });
30
- } else {
31
- obj[key] = value;
32
- }
20
+ } else obj[key] = value;
33
21
  return obj;
34
22
  }
35
23
  function _get_prototype_of(o) {
@@ -51,10 +39,16 @@ function _inherits(subClass, superClass) {
51
39
  });
52
40
  if (superClass) _set_prototype_of(subClass, superClass);
53
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
54
50
  function _possible_constructor_return(self, call) {
55
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
56
- return call;
57
- }
51
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
58
52
  return _assert_this_initialized(self);
59
53
  }
60
54
  function _set_prototype_of(o, p) {
@@ -68,15 +62,13 @@ function _type_of(obj) {
68
62
  "@swc/helpers - typeof";
69
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
70
64
  }
71
- function _is_native_reflect_construct() {
72
- try {
73
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
74
- } catch (_) {}
75
- return (_is_native_reflect_construct = function() {
76
- return !!result;
77
- })();
78
- }
79
- import { getLocaleText } from '@byteluck-fe/locale-message';
65
+ /*
66
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
67
+ * @Date: 2023-09-14 18:31:51
68
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
69
+ * @LastEditTime: 2023-09-19 15:49:31
70
+ * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
71
+ */ import { getLocaleText } from '@byteluck-fe/locale-message';
80
72
  import AttachmentControl from './designer';
81
73
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
82
74
  var MB10 = 10485760;
@@ -131,6 +123,7 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
131
123
  function AttachmentProperty(props) {
132
124
  _class_call_check(this, AttachmentProperty);
133
125
  var _this;
126
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
134
127
  _this = _call_super(this, AttachmentProperty, [
135
128
  props
136
129
  ]), _define_property(_this, "storageType", void 0), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
@@ -141,42 +134,26 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
141
134
  _define_property(_this, "operation", void 0), // 附件ai解释
142
135
  _define_property(_this, "aiExplanation", void 0), // 附件ai解释长度
143
136
  _define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0);
144
- var _props_defaultValue;
145
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
146
- var _props_showType;
147
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
148
- var _props_resultShowType;
149
- _this.resultShowType = (_props_resultShowType = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _props_resultShowType !== void 0 ? _props_resultShowType : 'simple';
150
- var _props_attachmentAccept;
151
- _this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
152
- var _props_maxLimit;
153
- _this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
154
- var _props_minLimit;
155
- _this.minLimit = (_props_minLimit = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _props_minLimit !== void 0 ? _props_minLimit : 0;
156
- var _props_maxSize;
157
- _this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB100;
158
- var _props_caption;
159
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
160
- var _props_placeholder;
161
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadFile', null, '上传附件');
162
- var _props_isShowWatermark;
163
- _this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
164
- var _props_watermarkFx;
165
- _this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
166
- var _props_operation;
167
- _this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
137
+ _this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [];
138
+ _this.showType = (_ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref1 !== void 0 ? _ref1 : 'default';
139
+ _this.resultShowType = (_ref2 = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _ref2 !== void 0 ? _ref2 : 'simple';
140
+ _this.attachmentAccept = (_ref3 = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _ref3 !== void 0 ? _ref3 : [];
141
+ _this.maxLimit = (_ref4 = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _ref4 !== void 0 ? _ref4 : 10;
142
+ _this.minLimit = (_ref5 = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _ref5 !== void 0 ? _ref5 : 0;
143
+ _this.maxSize = (_ref6 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _ref6 !== void 0 ? _ref6 : MB100;
144
+ _this.caption = (_ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref7 !== void 0 ? _ref7 : AttachmentControl.controlName;
145
+ _this.placeholder = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref8 !== void 0 ? _ref8 : getLocaleText('CMD.uploadFile', null, '上传附件');
146
+ _this.isShowWatermark = (_ref9 = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _ref9 !== void 0 ? _ref9 : false;
147
+ _this.watermarkFx = (_ref10 = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _ref10 !== void 0 ? _ref10 : {};
148
+ _this.operation = (_ref11 = props === null || props === void 0 ? void 0 : props.operation) !== null && _ref11 !== void 0 ? _ref11 : [
168
149
  'info',
169
150
  'preview',
170
151
  'download'
171
152
  ];
172
- var _props_aiExplanation;
173
- _this.aiExplanation = (_props_aiExplanation = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _props_aiExplanation !== void 0 ? _props_aiExplanation : false;
174
- var _props_aiExplanationLength;
175
- _this.aiExplanationLength = (_props_aiExplanationLength = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _props_aiExplanationLength !== void 0 ? _props_aiExplanationLength : 500;
176
- var _props_storageType;
177
- _this.storageType = (_props_storageType = props === null || props === void 0 ? void 0 : props.storageType) !== null && _props_storageType !== void 0 ? _props_storageType : 'local';
178
- var _props_customOperation;
179
- _this.customOperation = (_props_customOperation = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _props_customOperation !== void 0 ? _props_customOperation : [];
153
+ _this.aiExplanation = (_ref12 = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _ref12 !== void 0 ? _ref12 : false;
154
+ _this.aiExplanationLength = (_ref13 = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _ref13 !== void 0 ? _ref13 : 500;
155
+ _this.storageType = (_ref14 = props === null || props === void 0 ? void 0 : props.storageType) !== null && _ref14 !== void 0 ? _ref14 : 'local';
156
+ _this.customOperation = (_ref15 = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _ref15 !== void 0 ? _ref15 : [];
180
157
  return _this;
181
158
  }
182
159
  return AttachmentProperty;
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get_prototype_of(o) {
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
59
53
  });
60
54
  if (superClass) _set_prototype_of(subClass, superClass);
61
55
  }
56
+ function _is_native_reflect_construct() {
57
+ try {
58
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
59
+ } catch (_) {}
60
+ return (_is_native_reflect_construct = function() {
61
+ return !!result;
62
+ })();
63
+ }
62
64
  function _possible_constructor_return(self, call) {
63
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
- return call;
65
- }
65
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
66
66
  return _assert_this_initialized(self);
67
67
  }
68
68
  function _set_prototype_of(o, p) {
@@ -76,14 +76,6 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- function _is_native_reflect_construct() {
80
- try {
81
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
- } catch (_) {}
83
- return (_is_native_reflect_construct = function() {
84
- return !!result;
85
- })();
86
- }
87
79
  import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
88
80
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
81
  import AttachmentProperty from './property';
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get_prototype_of(o) {
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
59
53
  });
60
54
  if (superClass) _set_prototype_of(subClass, superClass);
61
55
  }
56
+ function _is_native_reflect_construct() {
57
+ try {
58
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
59
+ } catch (_) {}
60
+ return (_is_native_reflect_construct = function() {
61
+ return !!result;
62
+ })();
63
+ }
62
64
  function _possible_constructor_return(self, call) {
63
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
- return call;
65
- }
65
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
66
66
  return _assert_this_initialized(self);
67
67
  }
68
68
  function _set_prototype_of(o, p) {
@@ -76,14 +76,6 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- function _is_native_reflect_construct() {
80
- try {
81
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
- } catch (_) {}
83
- return (_is_native_reflect_construct = function() {
84
- return !!result;
85
- })();
86
- }
87
79
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
80
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
81
  import AutoNumberProperty from './property';