@tachybase/client 1.3.8 → 1.3.9

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 (617) hide show
  1. package/package.json +7 -7
  2. package/es/api-client/__tests__/APIClient.test.mjs +0 -55
  3. package/es/api-client/demos/demo1.mjs +0 -32
  4. package/es/api-client/demos/demo2.mjs +0 -31
  5. package/es/api-client/demos/demo3.mjs +0 -74
  6. package/es/application/__tests__/Application.test.mjs +0 -481
  7. package/es/application/__tests__/Plugin.test.mjs +0 -197
  8. package/es/application/__tests__/PluginSettingsManager.test.mjs +0 -156
  9. package/es/application/__tests__/RouterManager.test.mjs +0 -311
  10. package/es/application/__tests__/SchemaInitializer.test.mjs +0 -163
  11. package/es/application/__tests__/SchemaToolbar.test.mjs +0 -143
  12. package/es/application/__tests__/hoc/withDynamicSchemaProps.test.mjs +0 -187
  13. package/es/application/__tests__/hooks.test.mjs +0 -85
  14. package/es/application/__tests__/utils/remotePlugins.test.mjs +0 -318
  15. package/es/application/__tests__/utils.test.mjs +0 -99
  16. package/es/application/demos/demo1.mjs +0 -110
  17. package/es/application/demos/demo2.mjs +0 -126
  18. package/es/application/demos/demo3.mjs +0 -11
  19. package/es/collection-manager/demos/demo2.mjs +0 -106
  20. package/es/collection-manager/demos/demo3.mjs +0 -76
  21. package/es/collection-manager/demos/demo4.mjs +0 -168
  22. package/es/collection-manager/demos/demo5.mjs +0 -152
  23. package/es/collection-manager/interfaces/__tests__/json.mjs +0 -40
  24. package/es/data-source/__tests__/collection/AssociationProvider.test.mjs +0 -113
  25. package/es/data-source/__tests__/collection/Collection.test.mjs +0 -297
  26. package/es/data-source/__tests__/collection/CollectionManager.test.mjs +0 -297
  27. package/es/data-source/__tests__/collection/CollectionManagerProvider.test.mjs +0 -114
  28. package/es/data-source/__tests__/collection/CollectionProvider.test.mjs +0 -106
  29. package/es/data-source/__tests__/collection/ExtendCollectionsProvider.test.mjs +0 -87
  30. package/es/data-source/__tests__/collection-field/CollectionField.test.mjs +0 -67
  31. package/es/data-source/__tests__/collection-field/CollectionFieldProvider.test.mjs +0 -51
  32. package/es/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.mjs +0 -162
  33. package/es/data-source/__tests__/collection-record/CollectionRecord.test.mjs +0 -21
  34. package/es/data-source/__tests__/collection-record/CollectionRecordProvider.test.mjs +0 -253
  35. package/es/data-source/__tests__/collection-record/isNewRecord.test.mjs +0 -45
  36. package/es/data-source/__tests__/collection-template/CollectionTemplateManager.test.mjs +0 -123
  37. package/es/data-source/__tests__/components/CollectionDeletedPlaceholder.test.mjs +0 -43
  38. package/es/data-source/__tests__/data-block/DataBlockProvider.test.mjs +0 -114
  39. package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.mjs +0 -88
  40. package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.mjs +0 -139
  41. package/es/data-source/__tests__/data-block/data-block-demos/collection-form-create.mjs +0 -109
  42. package/es/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.mjs +0 -174
  43. package/es/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.mjs +0 -138
  44. package/es/data-source/__tests__/data-block/data-block-demos/collection-table-list.mjs +0 -94
  45. package/es/data-source/__tests__/data-block/data-block-demos/createApp.mjs +0 -55
  46. package/es/data-source/__tests__/data-source/CollectionDataSourceProvider.test.mjs +0 -35
  47. package/es/data-source/__tests__/data-source/DataSource.test.mjs +0 -75
  48. package/es/data-source/__tests__/data-source/DataSourceManager.test.mjs +0 -166
  49. package/es/data-source/__tests__/data-source/DataSourceManagerProvider.test.mjs +0 -30
  50. package/es/data-source/__tests__/data-source/DataSourceProvider.test.mjs +0 -79
  51. package/es/data-source/__tests__/utils.test.mjs +0 -55
  52. package/es/filter-provider/__tests__/transformToFilter.mjs +0 -65
  53. package/es/filter-provider/__tests__/useFilter.mjs +0 -41
  54. package/es/filter-provider/__tests__/utiles.test.mjs +0 -265
  55. package/es/flag-provider/__tests__/flag-provider.test.mjs +0 -19
  56. package/es/icon/__tests__/icon.test.mjs +0 -25
  57. package/es/icon/demos/antd-icon.mjs +0 -7
  58. package/es/icon/demos/custom-icon.mjs +0 -16
  59. package/es/icon/demos/iconfont.mjs +0 -10
  60. package/es/icon/demos/register-icon.mjs +0 -23
  61. package/es/modules/actions/disassociate/__e2e__/disassociate.test.mjs +0 -39
  62. package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +0 -383
  63. package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.mjs +0 -112
  64. package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.mjs +0 -72
  65. package/es/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.mjs +0 -0
  66. package/es/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +0 -14
  67. package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.mjs +0 -98
  68. package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.mjs +0 -24
  69. package/es/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.mjs +0 -0
  70. package/es/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +0 -14
  71. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.mjs +0 -14
  72. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.mjs +0 -26
  73. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.mjs +0 -168
  74. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.mjs +0 -28
  75. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.mjs +0 -141
  76. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +0 -1254
  77. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +0 -6002
  78. package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.mjs +0 -16
  79. package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.mjs +0 -212
  80. package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.mjs +0 -0
  81. package/es/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +0 -19
  82. package/es/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +0 -18
  83. package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.mjs +0 -220
  84. package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.mjs +0 -48
  85. package/es/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.mjs +0 -0
  86. package/es/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.mjs +0 -26
  87. package/es/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.mjs +0 -211
  88. package/es/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.mjs +0 -23
  89. package/es/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.mjs +0 -0
  90. package/es/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.mjs +0 -24
  91. package/es/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.mjs +0 -9
  92. package/es/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.mjs +0 -33
  93. package/es/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.mjs +0 -19
  94. package/es/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.mjs +0 -31
  95. package/es/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.mjs +0 -419
  96. package/es/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.mjs +0 -869
  97. package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +0 -934
  98. package/es/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.mjs +0 -42
  99. package/es/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +0 -16
  100. package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.mjs +0 -159
  101. package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.mjs +0 -146
  102. package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +0 -692
  103. package/es/modules/blocks/data-blocks/table-selector/__e2e__/utils.mjs +0 -12
  104. package/es/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +0 -14
  105. package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.mjs +0 -59
  106. package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.mjs +0 -62
  107. package/es/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.mjs +0 -0
  108. package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +0 -40
  109. package/es/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.mjs +0 -115
  110. package/es/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.mjs +0 -98
  111. package/es/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.mjs +0 -0
  112. package/es/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +0 -23
  113. package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.mjs +0 -10
  114. package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.mjs +0 -33
  115. package/es/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.mjs +0 -0
  116. package/es/modules/dialog/__e2e__/schemaInitializer.test.mjs +0 -388
  117. package/es/modules/dialog/__e2e__/schemaSettings.test.mjs +0 -59
  118. package/es/modules/dialog/__e2e__/templatesOfBug.mjs +0 -2122
  119. package/es/modules/dialog/__e2e__/zIndex.test.mjs +0 -35
  120. package/es/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.mjs +0 -74
  121. package/es/modules/fields/component/DatePicker/__e2e__/utils.mjs +0 -323
  122. package/es/modules/menu/__e2e__/dragAndDrop.test.mjs +0 -27
  123. package/es/modules/menu/__e2e__/schemaInitializer.test.mjs +0 -101
  124. package/es/modules/menu/__e2e__/schemaSettings.test.mjs +0 -347
  125. package/es/modules/menu/__e2e__/templatesOfBug.mjs +0 -0
  126. package/es/modules/page/__e2e__/blockInitializers.test.mjs +0 -17
  127. package/es/modules/page/__e2e__/dragAndDrop.test.mjs +0 -16
  128. package/es/modules/page/__e2e__/schemaInitailizer.test.mjs +0 -15
  129. package/es/modules/page/__e2e__/schemaSettings.test.mjs +0 -134
  130. package/es/modules/page/__e2e__/templatesOfBug.mjs +0 -0
  131. package/es/modules/plugin-manager/__e2e__/pluginManager.test.mjs +0 -113
  132. package/es/modules/plugin-manager/__e2e__/templatesOfBug.mjs +0 -0
  133. package/es/modules/user-center/__e2e__/settings.test.mjs +0 -12
  134. package/es/schema-component/antd/action/__tests__/action.test.mjs +0 -116
  135. package/es/schema-component/antd/action/demos/demo1.mjs +0 -70
  136. package/es/schema-component/antd/action/demos/demo2.mjs +0 -75
  137. package/es/schema-component/antd/action/demos/demo3.mjs +0 -127
  138. package/es/schema-component/antd/action/demos/demo4.mjs +0 -58
  139. package/es/schema-component/antd/action/demos/demo5.mjs +0 -211
  140. package/es/schema-component/antd/action/demos/demo6.mjs +0 -95
  141. package/es/schema-component/antd/association-select/__tests__/association-select.test.mjs +0 -16
  142. package/es/schema-component/antd/association-select/demos/demo1.mjs +0 -55
  143. package/es/schema-component/antd/block-item/__tests__/block-item.test.mjs +0 -14
  144. package/es/schema-component/antd/block-item/demos/demo1.mjs +0 -60
  145. package/es/schema-component/antd/card-item/__tests__/card-item.test.mjs +0 -11
  146. package/es/schema-component/antd/card-item/demos/demo1.mjs +0 -31
  147. package/es/schema-component/antd/cascader/__tests__/cascader.test.mjs +0 -29
  148. package/es/schema-component/antd/cascader/demos/demo1.mjs +0 -82
  149. package/es/schema-component/antd/cascader/demos/demo2.mjs +0 -115
  150. package/es/schema-component/antd/checkbox/__tests__/checkbox.test.mjs +0 -40
  151. package/es/schema-component/antd/checkbox/demos/checkbox.group.mjs +0 -54
  152. package/es/schema-component/antd/checkbox/demos/checkbox.mjs +0 -40
  153. package/es/schema-component/antd/collection-select/__tests__/collection-select.test.mjs +0 -16
  154. package/es/schema-component/antd/collection-select/demos/demo1.mjs +0 -36
  155. package/es/schema-component/antd/color-picker/demos/demo1.mjs +0 -49
  156. package/es/schema-component/antd/color-select/__tests__/color-select.test.mjs +0 -16
  157. package/es/schema-component/antd/color-select/demos/demo1.mjs +0 -40
  158. package/es/schema-component/antd/cron/__tests__/cron-set.test.mjs +0 -30
  159. package/es/schema-component/antd/cron/demos/demo1.mjs +0 -32
  160. package/es/schema-component/antd/cron/demos/demo2.mjs +0 -51
  161. package/es/schema-component/antd/date-picker/__tests__/date-picker.test.mjs +0 -178
  162. package/es/schema-component/antd/date-picker/__tests__/getDateRanges.test.mjs +0 -110
  163. package/es/schema-component/antd/date-picker/__tests__/mapDatePicker.test.mjs +0 -200
  164. package/es/schema-component/antd/date-picker/__tests__/mapRangePicker.test.mjs +0 -59
  165. package/es/schema-component/antd/date-picker/__tests__/util.test.mjs +0 -166
  166. package/es/schema-component/antd/date-picker/demos/demo1.mjs +0 -57
  167. package/es/schema-component/antd/date-picker/demos/demo10.mjs +0 -61
  168. package/es/schema-component/antd/date-picker/demos/demo11.mjs +0 -65
  169. package/es/schema-component/antd/date-picker/demos/demo2.mjs +0 -60
  170. package/es/schema-component/antd/date-picker/demos/demo3.mjs +0 -58
  171. package/es/schema-component/antd/date-picker/demos/demo4.mjs +0 -72
  172. package/es/schema-component/antd/date-picker/demos/demo5.mjs +0 -71
  173. package/es/schema-component/antd/date-picker/demos/demo6.mjs +0 -71
  174. package/es/schema-component/antd/date-picker/demos/demo7.mjs +0 -61
  175. package/es/schema-component/antd/date-picker/demos/demo8.mjs +0 -61
  176. package/es/schema-component/antd/date-picker/demos/demo9.mjs +0 -61
  177. package/es/schema-component/antd/details/__tests__/details.test.mjs +0 -10
  178. package/es/schema-component/antd/details/demos/demo1.mjs +0 -42
  179. package/es/schema-component/antd/error-fallback/__tests__/error-fallback.test.mjs +0 -17
  180. package/es/schema-component/antd/error-fallback/demos/demo1.mjs +0 -13
  181. package/es/schema-component/antd/filter/__tests__/filter.test.mjs +0 -113
  182. package/es/schema-component/antd/filter/demos/demo2.mjs +0 -129
  183. package/es/schema-component/antd/filter/demos/demo3.mjs +0 -196
  184. package/es/schema-component/antd/filter/demos/demo4.mjs +0 -184
  185. package/es/schema-component/antd/filter/demos/demo5.mjs +0 -131
  186. package/es/schema-component/antd/filter/demos/demo6.mjs +0 -118
  187. package/es/schema-component/antd/form/__tests__/form.test.mjs +0 -113
  188. package/es/schema-component/antd/form/demos/apiClient.mjs +0 -17
  189. package/es/schema-component/antd/form/demos/demo1.mjs +0 -73
  190. package/es/schema-component/antd/form/demos/demo2.mjs +0 -73
  191. package/es/schema-component/antd/form/demos/demo3.mjs +0 -72
  192. package/es/schema-component/antd/form/demos/demo4.mjs +0 -80
  193. package/es/schema-component/antd/form/demos/demo5.mjs +0 -114
  194. package/es/schema-component/antd/form/demos/demo6.mjs +0 -71
  195. package/es/schema-component/antd/form/demos/demo7.mjs +0 -75
  196. package/es/schema-component/antd/form/demos/demo8.mjs +0 -86
  197. package/es/schema-component/antd/form-item/__tests__/form-item.test.mjs +0 -12
  198. package/es/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.mjs +0 -27
  199. package/es/schema-component/antd/form-item/__tests__/utils.test.mjs +0 -65
  200. package/es/schema-component/antd/form-item/demos/demo1.mjs +0 -37
  201. package/es/schema-component/antd/form-v2/__tests__/form-v2.test.mjs +0 -47
  202. package/es/schema-component/antd/form-v2/demos/collections.mjs +0 -1565
  203. package/es/schema-component/antd/form-v2/demos/demo1.mjs +0 -108
  204. package/es/schema-component/antd/form-v2/demos/demo2.mjs +0 -131
  205. package/es/schema-component/antd/form-v2/demos/demo3.mjs +0 -117
  206. package/es/schema-component/antd/grid/__tests__/grid.test.mjs +0 -26
  207. package/es/schema-component/antd/grid/demos/demo1.mjs +0 -194
  208. package/es/schema-component/antd/grid/demos/demo2.mjs +0 -97
  209. package/es/schema-component/antd/grid/demos/demo3.mjs +0 -83
  210. package/es/schema-component/antd/grid-card/__tests__/grid-card.test.mjs +0 -9
  211. package/es/schema-component/antd/grid-card/demos/demo1.mjs +0 -6
  212. package/es/schema-component/antd/icon-picker/__tests__/icon-picker.test.mjs +0 -25
  213. package/es/schema-component/antd/icon-picker/demos/icon-picker.mjs +0 -40
  214. package/es/schema-component/antd/input/__tests__/Input.test.mjs +0 -115
  215. package/es/schema-component/antd/input/demos/input.mjs +0 -40
  216. package/es/schema-component/antd/input/demos/json.mjs +0 -46
  217. package/es/schema-component/antd/input/demos/textarea.mjs +0 -68
  218. package/es/schema-component/antd/input/demos/url.mjs +0 -42
  219. package/es/schema-component/antd/input-number/__tests__/input-number.test.mjs +0 -116
  220. package/es/schema-component/antd/input-number/demos/addonBefore&addonAfter.mjs +0 -48
  221. package/es/schema-component/antd/input-number/demos/highPrecisionDecimals.mjs +0 -50
  222. package/es/schema-component/antd/input-number/demos/inputNumber.mjs +0 -40
  223. package/es/schema-component/antd/list/__tests__/list.test.mjs +0 -9
  224. package/es/schema-component/antd/list/demos/demo1.mjs +0 -6
  225. package/es/schema-component/antd/markdown/__tests__/markdown.test.mjs +0 -27
  226. package/es/schema-component/antd/markdown/demos/demo1.mjs +0 -40
  227. package/es/schema-component/antd/markdown/demos/demo2.mjs +0 -51
  228. package/es/schema-component/antd/menu/__tests__/menu.test.mjs +0 -38
  229. package/es/schema-component/antd/menu/demos/demo1.mjs +0 -93
  230. package/es/schema-component/antd/menu/demos/demo2.mjs +0 -96
  231. package/es/schema-component/antd/menu/demos/demo3.mjs +0 -135
  232. package/es/schema-component/antd/page/__tests__/page.test.mjs +0 -18
  233. package/es/schema-component/antd/page/demos/demo1.mjs +0 -38
  234. package/es/schema-component/antd/password/__tests__/password.test.mjs +0 -28
  235. package/es/schema-component/antd/password/__tests__/utils.test.mjs +0 -21
  236. package/es/schema-component/antd/password/demos/demo1.mjs +0 -40
  237. package/es/schema-component/antd/password/demos/demo2.mjs +0 -43
  238. package/es/schema-component/antd/percent/__tests__/percent.test.mjs +0 -16
  239. package/es/schema-component/antd/percent/demos/percent.mjs +0 -40
  240. package/es/schema-component/antd/preview/__tests__/preview.test.mjs +0 -11
  241. package/es/schema-component/antd/preview/demos/demo1.mjs +0 -81
  242. package/es/schema-component/antd/radio/__tests__/radio.test.mjs +0 -43
  243. package/es/schema-component/antd/radio/demos/demo1.mjs +0 -40
  244. package/es/schema-component/antd/radio/demos/demo2.mjs +0 -52
  245. package/es/schema-component/antd/radio/demos/demo3.mjs +0 -54
  246. package/es/schema-component/antd/record-picker/__tests__/record-picker.test.mjs +0 -27
  247. package/es/schema-component/antd/record-picker/demos/demo1.mjs +0 -175
  248. package/es/schema-component/antd/record-picker/demos/mockData.mjs +0 -211
  249. package/es/schema-component/antd/remote-select/__tests__/remote-select.test.mjs +0 -16
  250. package/es/schema-component/antd/remote-select/demos/demo1.mjs +0 -55
  251. package/es/schema-component/antd/rich-text/__tests__/rich-text.test.mjs +0 -13
  252. package/es/schema-component/antd/rich-text/demos/demo1.mjs +0 -41
  253. package/es/schema-component/antd/select/__tests__/select.test.mjs +0 -41
  254. package/es/schema-component/antd/select/__tests__/utils.test.mjs +0 -129
  255. package/es/schema-component/antd/select/demos/demo1.mjs +0 -72
  256. package/es/schema-component/antd/select/demos/demo2.mjs +0 -76
  257. package/es/schema-component/antd/select/demos/demo3.mjs +0 -84
  258. package/es/schema-component/antd/table/__tests__/table.test.mjs +0 -21
  259. package/es/schema-component/antd/table/demos/demo1.mjs +0 -63
  260. package/es/schema-component/antd/table/demos/demo2.mjs +0 -63
  261. package/es/schema-component/antd/table/demos/demo3.mjs +0 -63
  262. package/es/schema-component/antd/table/demos/demo4.mjs +0 -217
  263. package/es/schema-component/antd/table-v2/__tests__/table-v2.test.mjs +0 -13
  264. package/es/schema-component/antd/table-v2/demos/collections.mjs +0 -1560
  265. package/es/schema-component/antd/table-v2/demos/demo1.mjs +0 -220
  266. package/es/schema-component/antd/table-v2/demos/demo2.mjs +0 -117
  267. package/es/schema-component/antd/tabs/__tests__/tabs.test.mjs +0 -14
  268. package/es/schema-component/antd/tabs/demos/demo1.mjs +0 -67
  269. package/es/schema-component/antd/time-picker/__tests__/time-picker.test.mjs +0 -45
  270. package/es/schema-component/antd/time-picker/demos/demo1.mjs +0 -40
  271. package/es/schema-component/antd/time-picker/demos/demo2.mjs +0 -40
  272. package/es/schema-component/antd/tree-select/__tests__/tree-select.test.mjs +0 -14
  273. package/es/schema-component/antd/tree-select/demos/demo1.mjs +0 -84
  274. package/es/schema-component/antd/upload/__tests__/upload.test.mjs +0 -13
  275. package/es/schema-component/antd/upload/demos/apiClient.mjs +0 -43
  276. package/es/schema-component/antd/upload/demos/demo1.mjs +0 -48
  277. package/es/schema-component/antd/upload/demos/demo2.mjs +0 -115
  278. package/es/schema-component/antd/variable/__tests__/variable.test.mjs +0 -45
  279. package/es/schema-component/antd/variable/demos/demo1.mjs +0 -44
  280. package/es/schema-component/antd/variable/demos/demo2.mjs +0 -44
  281. package/es/schema-component/antd/variable/demos/demo3.mjs +0 -44
  282. package/es/schema-component/demos/demo1.mjs +0 -89
  283. package/es/schema-component/demos/demo2.mjs +0 -23
  284. package/es/schema-component/demos/demo3.mjs +0 -24
  285. package/es/schema-component/demos/demo4.mjs +0 -24
  286. package/es/schema-component/hooks/__tests__/designable.test.mjs +0 -548
  287. package/es/schema-component/hooks/__tests__/splitWrapSchema.test.mjs +0 -89
  288. package/es/schema-initializer/demos/basic.mjs +0 -62
  289. package/es/schema-initializer/demos/build-type.mjs +0 -83
  290. package/es/schema-initializer/demos/custom-button.mjs +0 -94
  291. package/es/schema-initializer/demos/custom-items-component.mjs +0 -100
  292. package/es/schema-initializer/demos/dynamic-visible-children.mjs +0 -81
  293. package/es/schema-initializer/demos/insert-schema-action.mjs +0 -92
  294. package/es/schema-initializer/demos/insert-schema-basic.mjs +0 -112
  295. package/es/schema-initializer/demos/insert-schema-form-item.mjs +0 -136
  296. package/es/schema-initializer/demos/nested-items.mjs +0 -148
  297. package/es/schema-settings/demos/basic.mjs +0 -60
  298. package/es/schema-settings/demos/built-type.mjs +0 -142
  299. package/es/schema-settings/demos/custom-component.mjs +0 -42
  300. package/es/schema-settings/demos/demo3.mjs +0 -100
  301. package/es/schema-settings/demos/schema-basic.mjs +0 -64
  302. package/es/user/__tests__/current-user-settings-menu-provider.test.mjs +0 -36
  303. package/es/variables/__tests__/useVariables.test.mjs +0 -406
  304. package/es/variables/__tests__/utils/filterEmptyValues.test.mjs +0 -46
  305. package/es/variables/__tests__/utils/getPath.test.mjs +0 -4
  306. package/es/variables/__tests__/utils/getVariableName.test.mjs +0 -4
  307. package/es/variables/__tests__/utils/isVariable.test.mjs +0 -22
  308. package/es/variables/__tests__/utils/transformVariableValue.test.mjs +0 -136
  309. package/es/variables/__tests__/utils/uniq.test.mjs +0 -77
  310. package/lib/api-client/__tests__/APIClient.test.js +0 -90
  311. package/lib/api-client/demos/demo1.js +0 -80
  312. package/lib/api-client/demos/demo2.js +0 -79
  313. package/lib/api-client/demos/demo3.js +0 -122
  314. package/lib/application/__tests__/Application.test.js +0 -517
  315. package/lib/application/__tests__/Plugin.test.js +0 -233
  316. package/lib/application/__tests__/PluginSettingsManager.test.js +0 -192
  317. package/lib/application/__tests__/RouterManager.test.js +0 -347
  318. package/lib/application/__tests__/SchemaInitializer.test.js +0 -170
  319. package/lib/application/__tests__/SchemaToolbar.test.js +0 -150
  320. package/lib/application/__tests__/hoc/withDynamicSchemaProps.test.js +0 -194
  321. package/lib/application/__tests__/hooks.test.js +0 -92
  322. package/lib/application/__tests__/utils/remotePlugins.test.js +0 -325
  323. package/lib/application/__tests__/utils.test.js +0 -106
  324. package/lib/application/demos/demo1.js +0 -144
  325. package/lib/application/demos/demo2.js +0 -160
  326. package/lib/application/demos/demo3.js +0 -46
  327. package/lib/collection-manager/demos/demo2.js +0 -140
  328. package/lib/collection-manager/demos/demo3.js +0 -124
  329. package/lib/collection-manager/demos/demo4.js +0 -202
  330. package/lib/collection-manager/demos/demo5.js +0 -186
  331. package/lib/collection-manager/interfaces/__tests__/json.js +0 -47
  332. package/lib/data-source/__tests__/collection/AssociationProvider.test.js +0 -120
  333. package/lib/data-source/__tests__/collection/Collection.test.js +0 -304
  334. package/lib/data-source/__tests__/collection/CollectionManager.test.js +0 -304
  335. package/lib/data-source/__tests__/collection/CollectionManagerProvider.test.js +0 -121
  336. package/lib/data-source/__tests__/collection/CollectionProvider.test.js +0 -113
  337. package/lib/data-source/__tests__/collection/ExtendCollectionsProvider.test.js +0 -94
  338. package/lib/data-source/__tests__/collection-field/CollectionField.test.js +0 -74
  339. package/lib/data-source/__tests__/collection-field/CollectionFieldProvider.test.js +0 -58
  340. package/lib/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.js +0 -169
  341. package/lib/data-source/__tests__/collection-record/CollectionRecord.test.js +0 -28
  342. package/lib/data-source/__tests__/collection-record/CollectionRecordProvider.test.js +0 -260
  343. package/lib/data-source/__tests__/collection-record/isNewRecord.test.js +0 -52
  344. package/lib/data-source/__tests__/collection-template/CollectionTemplateManager.test.js +0 -130
  345. package/lib/data-source/__tests__/components/CollectionDeletedPlaceholder.test.js +0 -50
  346. package/lib/data-source/__tests__/data-block/DataBlockProvider.test.js +0 -154
  347. package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.js +0 -122
  348. package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.js +0 -187
  349. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-create.js +0 -143
  350. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.js +0 -222
  351. package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.js +0 -172
  352. package/lib/data-source/__tests__/data-block/data-block-demos/collection-table-list.js +0 -128
  353. package/lib/data-source/__tests__/data-block/data-block-demos/createApp.js +0 -103
  354. package/lib/data-source/__tests__/data-source/CollectionDataSourceProvider.test.js +0 -42
  355. package/lib/data-source/__tests__/data-source/DataSource.test.js +0 -82
  356. package/lib/data-source/__tests__/data-source/DataSourceManager.test.js +0 -173
  357. package/lib/data-source/__tests__/data-source/DataSourceManagerProvider.test.js +0 -37
  358. package/lib/data-source/__tests__/data-source/DataSourceProvider.test.js +0 -86
  359. package/lib/data-source/__tests__/utils.test.js +0 -62
  360. package/lib/filter-provider/__tests__/transformToFilter.js +0 -72
  361. package/lib/filter-provider/__tests__/useFilter.js +0 -48
  362. package/lib/filter-provider/__tests__/utiles.test.js +0 -272
  363. package/lib/flag-provider/__tests__/flag-provider.test.js +0 -26
  364. package/lib/icon/__tests__/icon.test.js +0 -63
  365. package/lib/icon/demos/antd-icon.js +0 -41
  366. package/lib/icon/demos/custom-icon.js +0 -50
  367. package/lib/icon/demos/iconfont.js +0 -44
  368. package/lib/icon/demos/register-icon.js +0 -57
  369. package/lib/modules/actions/disassociate/__e2e__/disassociate.test.js +0 -46
  370. package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +0 -419
  371. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.js +0 -119
  372. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.js +0 -79
  373. package/lib/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.js +0 -6
  374. package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.js +0 -21
  375. package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.js +0 -105
  376. package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.js +0 -31
  377. package/lib/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.js +0 -6
  378. package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.js +0 -21
  379. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.js +0 -21
  380. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.js +0 -33
  381. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.js +0 -175
  382. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.js +0 -35
  383. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.js +0 -148
  384. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +0 -1261
  385. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +0 -6047
  386. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.js +0 -23
  387. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.js +0 -219
  388. package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.js +0 -6
  389. package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.js +0 -26
  390. package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.js +0 -25
  391. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.js +0 -227
  392. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.js +0 -55
  393. package/lib/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.js +0 -6
  394. package/lib/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.js +0 -33
  395. package/lib/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.js +0 -218
  396. package/lib/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.js +0 -30
  397. package/lib/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.js +0 -6
  398. package/lib/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.js +0 -31
  399. package/lib/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.js +0 -16
  400. package/lib/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.js +0 -40
  401. package/lib/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.js +0 -26
  402. package/lib/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.js +0 -38
  403. package/lib/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.js +0 -426
  404. package/lib/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.js +0 -876
  405. package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +0 -979
  406. package/lib/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.js +0 -49
  407. package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.js +0 -23
  408. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.js +0 -166
  409. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.js +0 -153
  410. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +0 -728
  411. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/utils.js +0 -46
  412. package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js +0 -21
  413. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.js +0 -66
  414. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.js +0 -69
  415. package/lib/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.js +0 -6
  416. package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js +0 -47
  417. package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.js +0 -122
  418. package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.js +0 -105
  419. package/lib/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.js +0 -6
  420. package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.js +0 -30
  421. package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.js +0 -17
  422. package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.js +0 -40
  423. package/lib/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.js +0 -6
  424. package/lib/modules/dialog/__e2e__/schemaInitializer.test.js +0 -395
  425. package/lib/modules/dialog/__e2e__/schemaSettings.test.js +0 -66
  426. package/lib/modules/dialog/__e2e__/templatesOfBug.js +0 -2161
  427. package/lib/modules/dialog/__e2e__/zIndex.test.js +0 -42
  428. package/lib/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.js +0 -109
  429. package/lib/modules/fields/component/DatePicker/__e2e__/utils.js +0 -358
  430. package/lib/modules/menu/__e2e__/dragAndDrop.test.js +0 -34
  431. package/lib/modules/menu/__e2e__/schemaInitializer.test.js +0 -108
  432. package/lib/modules/menu/__e2e__/schemaSettings.test.js +0 -354
  433. package/lib/modules/menu/__e2e__/templatesOfBug.js +0 -6
  434. package/lib/modules/page/__e2e__/blockInitializers.test.js +0 -24
  435. package/lib/modules/page/__e2e__/dragAndDrop.test.js +0 -23
  436. package/lib/modules/page/__e2e__/schemaInitailizer.test.js +0 -22
  437. package/lib/modules/page/__e2e__/schemaSettings.test.js +0 -141
  438. package/lib/modules/page/__e2e__/templatesOfBug.js +0 -6
  439. package/lib/modules/plugin-manager/__e2e__/pluginManager.test.js +0 -120
  440. package/lib/modules/plugin-manager/__e2e__/templatesOfBug.js +0 -6
  441. package/lib/modules/user-center/__e2e__/settings.test.js +0 -19
  442. package/lib/schema-component/antd/action/__tests__/action.test.js +0 -154
  443. package/lib/schema-component/antd/action/demos/demo1.js +0 -104
  444. package/lib/schema-component/antd/action/demos/demo2.js +0 -109
  445. package/lib/schema-component/antd/action/demos/demo3.js +0 -175
  446. package/lib/schema-component/antd/action/demos/demo4.js +0 -92
  447. package/lib/schema-component/antd/action/demos/demo5.js +0 -245
  448. package/lib/schema-component/antd/action/demos/demo6.js +0 -129
  449. package/lib/schema-component/antd/association-select/__tests__/association-select.test.js +0 -51
  450. package/lib/schema-component/antd/association-select/demos/demo1.js +0 -89
  451. package/lib/schema-component/antd/block-item/__tests__/block-item.test.js +0 -49
  452. package/lib/schema-component/antd/block-item/demos/demo1.js +0 -94
  453. package/lib/schema-component/antd/card-item/__tests__/card-item.test.js +0 -46
  454. package/lib/schema-component/antd/card-item/demos/demo1.js +0 -65
  455. package/lib/schema-component/antd/cascader/__tests__/cascader.test.js +0 -65
  456. package/lib/schema-component/antd/cascader/demos/demo1.js +0 -116
  457. package/lib/schema-component/antd/cascader/demos/demo2.js +0 -163
  458. package/lib/schema-component/antd/checkbox/__tests__/checkbox.test.js +0 -76
  459. package/lib/schema-component/antd/checkbox/demos/checkbox.group.js +0 -88
  460. package/lib/schema-component/antd/checkbox/demos/checkbox.js +0 -74
  461. package/lib/schema-component/antd/collection-select/__tests__/collection-select.test.js +0 -51
  462. package/lib/schema-component/antd/collection-select/demos/demo1.js +0 -70
  463. package/lib/schema-component/antd/color-picker/demos/demo1.js +0 -83
  464. package/lib/schema-component/antd/color-select/__tests__/color-select.test.js +0 -51
  465. package/lib/schema-component/antd/color-select/demos/demo1.js +0 -74
  466. package/lib/schema-component/antd/cron/__tests__/cron-set.test.js +0 -66
  467. package/lib/schema-component/antd/cron/demos/demo1.js +0 -66
  468. package/lib/schema-component/antd/cron/demos/demo2.js +0 -85
  469. package/lib/schema-component/antd/date-picker/__tests__/date-picker.test.js +0 -222
  470. package/lib/schema-component/antd/date-picker/__tests__/getDateRanges.test.js +0 -145
  471. package/lib/schema-component/antd/date-picker/__tests__/mapDatePicker.test.js +0 -235
  472. package/lib/schema-component/antd/date-picker/__tests__/mapRangePicker.test.js +0 -94
  473. package/lib/schema-component/antd/date-picker/__tests__/util.test.js +0 -201
  474. package/lib/schema-component/antd/date-picker/demos/demo1.js +0 -91
  475. package/lib/schema-component/antd/date-picker/demos/demo10.js +0 -95
  476. package/lib/schema-component/antd/date-picker/demos/demo11.js +0 -99
  477. package/lib/schema-component/antd/date-picker/demos/demo2.js +0 -94
  478. package/lib/schema-component/antd/date-picker/demos/demo3.js +0 -92
  479. package/lib/schema-component/antd/date-picker/demos/demo4.js +0 -120
  480. package/lib/schema-component/antd/date-picker/demos/demo5.js +0 -119
  481. package/lib/schema-component/antd/date-picker/demos/demo6.js +0 -119
  482. package/lib/schema-component/antd/date-picker/demos/demo7.js +0 -95
  483. package/lib/schema-component/antd/date-picker/demos/demo8.js +0 -95
  484. package/lib/schema-component/antd/date-picker/demos/demo9.js +0 -95
  485. package/lib/schema-component/antd/details/__tests__/details.test.js +0 -45
  486. package/lib/schema-component/antd/details/demos/demo1.js +0 -76
  487. package/lib/schema-component/antd/error-fallback/__tests__/error-fallback.test.js +0 -52
  488. package/lib/schema-component/antd/error-fallback/demos/demo1.js +0 -47
  489. package/lib/schema-component/antd/filter/__tests__/filter.test.js +0 -152
  490. package/lib/schema-component/antd/filter/demos/demo2.js +0 -163
  491. package/lib/schema-component/antd/filter/demos/demo3.js +0 -230
  492. package/lib/schema-component/antd/filter/demos/demo4.js +0 -218
  493. package/lib/schema-component/antd/filter/demos/demo5.js +0 -165
  494. package/lib/schema-component/antd/filter/demos/demo6.js +0 -152
  495. package/lib/schema-component/antd/form/__tests__/form.test.js +0 -155
  496. package/lib/schema-component/antd/form/demos/apiClient.js +0 -65
  497. package/lib/schema-component/antd/form/demos/demo1.js +0 -107
  498. package/lib/schema-component/antd/form/demos/demo2.js +0 -107
  499. package/lib/schema-component/antd/form/demos/demo3.js +0 -106
  500. package/lib/schema-component/antd/form/demos/demo4.js +0 -114
  501. package/lib/schema-component/antd/form/demos/demo5.js +0 -148
  502. package/lib/schema-component/antd/form/demos/demo6.js +0 -105
  503. package/lib/schema-component/antd/form/demos/demo7.js +0 -109
  504. package/lib/schema-component/antd/form/demos/demo8.js +0 -120
  505. package/lib/schema-component/antd/form-item/__tests__/form-item.test.js +0 -47
  506. package/lib/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.js +0 -34
  507. package/lib/schema-component/antd/form-item/__tests__/utils.test.js +0 -72
  508. package/lib/schema-component/antd/form-item/demos/demo1.js +0 -71
  509. package/lib/schema-component/antd/form-v2/__tests__/form-v2.test.js +0 -84
  510. package/lib/schema-component/antd/form-v2/demos/collections.js +0 -1601
  511. package/lib/schema-component/antd/form-v2/demos/demo1.js +0 -156
  512. package/lib/schema-component/antd/form-v2/demos/demo2.js +0 -179
  513. package/lib/schema-component/antd/form-v2/demos/demo3.js +0 -165
  514. package/lib/schema-component/antd/grid/__tests__/grid.test.js +0 -63
  515. package/lib/schema-component/antd/grid/demos/demo1.js +0 -228
  516. package/lib/schema-component/antd/grid/demos/demo2.js +0 -131
  517. package/lib/schema-component/antd/grid/demos/demo3.js +0 -118
  518. package/lib/schema-component/antd/grid-card/__tests__/grid-card.test.js +0 -44
  519. package/lib/schema-component/antd/grid-card/demos/demo1.js +0 -40
  520. package/lib/schema-component/antd/icon-picker/__tests__/icon-picker.test.js +0 -60
  521. package/lib/schema-component/antd/icon-picker/demos/icon-picker.js +0 -74
  522. package/lib/schema-component/antd/input/__tests__/Input.test.js +0 -153
  523. package/lib/schema-component/antd/input/demos/input.js +0 -74
  524. package/lib/schema-component/antd/input/demos/json.js +0 -80
  525. package/lib/schema-component/antd/input/demos/textarea.js +0 -102
  526. package/lib/schema-component/antd/input/demos/url.js +0 -76
  527. package/lib/schema-component/antd/input-number/__tests__/input-number.test.js +0 -153
  528. package/lib/schema-component/antd/input-number/demos/addonBefore&addonAfter.js +0 -82
  529. package/lib/schema-component/antd/input-number/demos/highPrecisionDecimals.js +0 -84
  530. package/lib/schema-component/antd/input-number/demos/inputNumber.js +0 -74
  531. package/lib/schema-component/antd/list/__tests__/list.test.js +0 -44
  532. package/lib/schema-component/antd/list/demos/demo1.js +0 -40
  533. package/lib/schema-component/antd/markdown/__tests__/markdown.test.js +0 -63
  534. package/lib/schema-component/antd/markdown/demos/demo1.js +0 -74
  535. package/lib/schema-component/antd/markdown/demos/demo2.js +0 -85
  536. package/lib/schema-component/antd/menu/__tests__/menu.test.js +0 -75
  537. package/lib/schema-component/antd/menu/demos/demo1.js +0 -127
  538. package/lib/schema-component/antd/menu/demos/demo2.js +0 -130
  539. package/lib/schema-component/antd/menu/demos/demo3.js +0 -169
  540. package/lib/schema-component/antd/page/__tests__/page.test.js +0 -53
  541. package/lib/schema-component/antd/page/demos/demo1.js +0 -72
  542. package/lib/schema-component/antd/password/__tests__/password.test.js +0 -64
  543. package/lib/schema-component/antd/password/__tests__/utils.test.js +0 -28
  544. package/lib/schema-component/antd/password/demos/demo1.js +0 -74
  545. package/lib/schema-component/antd/password/demos/demo2.js +0 -77
  546. package/lib/schema-component/antd/percent/__tests__/percent.test.js +0 -51
  547. package/lib/schema-component/antd/percent/demos/percent.js +0 -74
  548. package/lib/schema-component/antd/preview/__tests__/preview.test.js +0 -46
  549. package/lib/schema-component/antd/preview/demos/demo1.js +0 -129
  550. package/lib/schema-component/antd/radio/__tests__/radio.test.js +0 -80
  551. package/lib/schema-component/antd/radio/demos/demo1.js +0 -74
  552. package/lib/schema-component/antd/radio/demos/demo2.js +0 -86
  553. package/lib/schema-component/antd/radio/demos/demo3.js +0 -88
  554. package/lib/schema-component/antd/record-picker/__tests__/record-picker.test.js +0 -62
  555. package/lib/schema-component/antd/record-picker/demos/demo1.js +0 -223
  556. package/lib/schema-component/antd/record-picker/demos/mockData.js +0 -247
  557. package/lib/schema-component/antd/remote-select/__tests__/remote-select.test.js +0 -51
  558. package/lib/schema-component/antd/remote-select/demos/demo1.js +0 -89
  559. package/lib/schema-component/antd/rich-text/__tests__/rich-text.test.js +0 -48
  560. package/lib/schema-component/antd/rich-text/demos/demo1.js +0 -75
  561. package/lib/schema-component/antd/select/__tests__/select.test.js +0 -78
  562. package/lib/schema-component/antd/select/__tests__/utils.test.js +0 -136
  563. package/lib/schema-component/antd/select/demos/demo1.js +0 -106
  564. package/lib/schema-component/antd/select/demos/demo2.js +0 -110
  565. package/lib/schema-component/antd/select/demos/demo3.js +0 -118
  566. package/lib/schema-component/antd/table/__tests__/table.test.js +0 -59
  567. package/lib/schema-component/antd/table/demos/demo1.js +0 -97
  568. package/lib/schema-component/antd/table/demos/demo2.js +0 -97
  569. package/lib/schema-component/antd/table/demos/demo3.js +0 -97
  570. package/lib/schema-component/antd/table/demos/demo4.js +0 -251
  571. package/lib/schema-component/antd/table-v2/__tests__/table-v2.test.js +0 -49
  572. package/lib/schema-component/antd/table-v2/demos/collections.js +0 -1596
  573. package/lib/schema-component/antd/table-v2/demos/demo1.js +0 -268
  574. package/lib/schema-component/antd/table-v2/demos/demo2.js +0 -151
  575. package/lib/schema-component/antd/tabs/__tests__/tabs.test.js +0 -49
  576. package/lib/schema-component/antd/tabs/demos/demo1.js +0 -101
  577. package/lib/schema-component/antd/time-picker/__tests__/time-picker.test.js +0 -81
  578. package/lib/schema-component/antd/time-picker/demos/demo1.js +0 -74
  579. package/lib/schema-component/antd/time-picker/demos/demo2.js +0 -74
  580. package/lib/schema-component/antd/tree-select/__tests__/tree-select.test.js +0 -49
  581. package/lib/schema-component/antd/tree-select/demos/demo1.js +0 -118
  582. package/lib/schema-component/antd/upload/__tests__/upload.test.js +0 -49
  583. package/lib/schema-component/antd/upload/demos/apiClient.js +0 -77
  584. package/lib/schema-component/antd/upload/demos/demo1.js +0 -96
  585. package/lib/schema-component/antd/upload/demos/demo2.js +0 -163
  586. package/lib/schema-component/antd/variable/__tests__/variable.test.js +0 -82
  587. package/lib/schema-component/antd/variable/demos/demo1.js +0 -78
  588. package/lib/schema-component/antd/variable/demos/demo2.js +0 -78
  589. package/lib/schema-component/antd/variable/demos/demo3.js +0 -78
  590. package/lib/schema-component/demos/demo1.js +0 -123
  591. package/lib/schema-component/demos/demo2.js +0 -57
  592. package/lib/schema-component/demos/demo3.js +0 -58
  593. package/lib/schema-component/demos/demo4.js +0 -58
  594. package/lib/schema-component/hooks/__tests__/designable.test.js +0 -555
  595. package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.js +0 -96
  596. package/lib/schema-initializer/demos/basic.js +0 -96
  597. package/lib/schema-initializer/demos/build-type.js +0 -117
  598. package/lib/schema-initializer/demos/custom-button.js +0 -128
  599. package/lib/schema-initializer/demos/custom-items-component.js +0 -134
  600. package/lib/schema-initializer/demos/dynamic-visible-children.js +0 -115
  601. package/lib/schema-initializer/demos/insert-schema-action.js +0 -126
  602. package/lib/schema-initializer/demos/insert-schema-basic.js +0 -146
  603. package/lib/schema-initializer/demos/insert-schema-form-item.js +0 -170
  604. package/lib/schema-initializer/demos/nested-items.js +0 -182
  605. package/lib/schema-settings/demos/basic.js +0 -94
  606. package/lib/schema-settings/demos/built-type.js +0 -176
  607. package/lib/schema-settings/demos/custom-component.js +0 -76
  608. package/lib/schema-settings/demos/demo3.js +0 -134
  609. package/lib/schema-settings/demos/schema-basic.js +0 -98
  610. package/lib/user/__tests__/current-user-settings-menu-provider.test.js +0 -43
  611. package/lib/variables/__tests__/useVariables.test.js +0 -442
  612. package/lib/variables/__tests__/utils/filterEmptyValues.test.js +0 -53
  613. package/lib/variables/__tests__/utils/getPath.test.js +0 -11
  614. package/lib/variables/__tests__/utils/getVariableName.test.js +0 -11
  615. package/lib/variables/__tests__/utils/isVariable.test.js +0 -29
  616. package/lib/variables/__tests__/utils/transformVariableValue.test.js +0 -143
  617. package/lib/variables/__tests__/utils/uniq.test.js +0 -84
@@ -1,304 +0,0 @@
1
- "use strict";
2
- var __webpack_exports__ = {};
3
- const client_namespaceObject = require("@tachybase/client");
4
- var collections_namespaceObject = JSON.parse('[{"key":"h7b9i8khc3q","name":"users","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"users.users","duplicator":{"dumpable":"optional","with":"rolesUsers"},"sortable":"sort","model":"UserModel","createdBy":true,"updatedBy":true,"logging":true,"from":"db2cm","title":"{{t(\\"Users\\")}}","rawTitle":"{{t(\\"Users\\")}}","fields":[{"uiSchema":{"type":"number","title":"{{t(\\"ID\\")}}","x-component":"InputNumber","x-read-pretty":true,"rawTitle":"{{t(\\"ID\\")}}"},"key":"ffp1f2sula0","name":"id","type":"bigInt","interface":"id","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"autoIncrement":true,"primaryKey":true,"allowNull":false},{"uiSchema":{"type":"string","title":"{{t(\\"Nickname\\")}}","x-component":"Input","rawTitle":"{{t(\\"Nickname\\")}}"},"key":"vrv7yjue90g","name":"nickname","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null},{"uiSchema":{"type":"string","title":"{{t(\\"Username\\")}}","x-component":"Input","x-validator":{"username":true},"required":true,"rawTitle":"{{t(\\"Username\\")}}"},"key":"2ccs6evyrub","name":"username","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"uiSchema":{"type":"string","title":"{{t(\\"Email\\")}}","x-component":"Input","x-validator":"email","required":true,"rawTitle":"{{t(\\"Email\\")}}"},"key":"rrskwjl5wt1","name":"email","type":"string","interface":"email","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"key":"t09bauwm0wb","name":"roles","type":"belongsToMany","interface":"m2m","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"target":"roles","foreignKey":"userId","otherKey":"roleName","onDelete":"CASCADE","sourceKey":"id","targetKey":"name","through":"rolesUsers","uiSchema":{"type":"array","title":"{{t(\\"Roles\\")}}","x-component":"AssociationField","x-component-props":{"multiple":true,"fieldNames":{"label":"title","value":"name"}}}},{"key":"1pz0art9mt7","name":"f_n2fu6hvprct","type":"string","interface":"select","description":null,"collectionName":"t_vwpds9fs4xs","parentKey":null,"reverseKey":null,"uiSchema":{"enum":[{"value":"test1","label":"test1"},{"value":"test2","label":"test2"}],"type":"string","x-component":"Select","title":"test"}}]},{"key":"pqnenvqrzxr","name":"roles","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"acl.acl","duplicator":{"dumpable":"required","with":"uiSchemas"},"autoGenId":false,"model":"RoleModel","filterTargetKey":"name","sortable":true,"from":"db2cm","title":"{{t(\\"Roles\\")}}","rawTitle":"{{t(\\"Roles\\")}}","fields":[{"uiSchema":{"type":"string","title":"{{t(\\"Role UID\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role UID\\")}}"},"key":"jbz9m80bxmp","name":"name","type":"uid","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"prefix":"r_","primaryKey":true},{"uiSchema":{"type":"string","title":"{{t(\\"Role name\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role name\\")}}"},"key":"faywtz4sf3u","name":"title","type":"string","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"unique":true,"translation":true},{"key":"1enkovm9sye","name":"description","type":"string","interface":null,"description":null,"collectionName":"roles","parentKey":null,"reverseKey":null}]}]');
5
- function _define_property(obj, key, value) {
6
- if (key in obj) Object.defineProperty(obj, key, {
7
- value: value,
8
- enumerable: true,
9
- configurable: true,
10
- writable: true
11
- });
12
- else obj[key] = value;
13
- return obj;
14
- }
15
- describe('CollectionManager', ()=>{
16
- let collectionManager;
17
- beforeEach(()=>{
18
- const app = new client_namespaceObject.Application({});
19
- collectionManager = app.getCollectionManager();
20
- });
21
- describe('constructor', ()=>{
22
- it('should initialize with empty collections', ()=>{
23
- expect(collectionManager.collectionInstancesMap).toEqual({});
24
- expect(collectionManager.collectionInstancesArr).toEqual([]);
25
- });
26
- });
27
- describe('addCollections', ()=>{
28
- it('should add new collections', ()=>{
29
- const collections = [
30
- {
31
- name: 'test'
32
- }
33
- ];
34
- collectionManager.addCollections(collections);
35
- expect(collectionManager.collectionInstancesArr.length).toBe(1);
36
- expect(collectionManager.collectionInstancesMap['test']).instanceOf(client_namespaceObject.Collection);
37
- });
38
- it('should merge with existing collections', ()=>{
39
- const initialCollections = [
40
- {
41
- name: 'initial'
42
- }
43
- ];
44
- const additionalCollections = [
45
- {
46
- name: 'additional'
47
- }
48
- ];
49
- collectionManager.addCollections(initialCollections);
50
- collectionManager.addCollections(additionalCollections);
51
- expect(collectionManager.collectionInstancesArr.length).toBe(2);
52
- });
53
- it('should not add duplicate collections', ()=>{
54
- const collections = [
55
- {
56
- name: 'test'
57
- },
58
- {
59
- name: 'test'
60
- }
61
- ];
62
- collectionManager.addCollections(collections);
63
- expect(collectionManager.collectionInstancesArr.length).toBe(1);
64
- });
65
- it('custom Collection class', ()=>{
66
- class CustomCollection extends client_namespaceObject.Collection {
67
- }
68
- class CustomTemplate extends client_namespaceObject.CollectionTemplate {
69
- constructor(...args){
70
- super(...args), _define_property(this, "name", 'custom'), _define_property(this, "Collection", CustomCollection);
71
- }
72
- }
73
- const collections = [
74
- {
75
- name: 'test',
76
- template: 'custom'
77
- }
78
- ];
79
- collectionManager.dataSourceManager.addCollectionTemplates([
80
- CustomTemplate
81
- ]);
82
- collectionManager.addCollections(collections);
83
- const collection = collectionManager.getCollection('test');
84
- expect(collection).instanceOf(CustomCollection);
85
- });
86
- it('custom Template with transform', ()=>{
87
- class CustomTemplate extends client_namespaceObject.CollectionTemplate {
88
- transform(collection) {
89
- collection.test = 'transformed';
90
- return collection;
91
- }
92
- constructor(...args){
93
- super(...args), _define_property(this, "name", 'custom');
94
- }
95
- }
96
- const collections = [
97
- {
98
- name: 'test',
99
- template: 'custom'
100
- }
101
- ];
102
- collectionManager.dataSourceManager.addCollectionTemplates([
103
- CustomTemplate
104
- ]);
105
- collectionManager.addCollections(collections);
106
- const collection = collectionManager.getCollection('test');
107
- expect(collection.getOption('test')).toBe('transformed');
108
- });
109
- });
110
- describe('setCollections', ()=>{
111
- it('should replace existing collections', ()=>{
112
- const initialCollections = [
113
- {
114
- name: 'initial'
115
- }
116
- ];
117
- const newCollections = [
118
- {
119
- name: 'new'
120
- }
121
- ];
122
- collectionManager.addCollections(initialCollections);
123
- collectionManager.setCollections(newCollections);
124
- expect(collectionManager.collectionInstancesArr.length).toBe(1);
125
- expect(Object.keys(collectionManager.collectionInstancesMap)).toEqual([
126
- 'new'
127
- ]);
128
- });
129
- });
130
- describe('reAddCollections', ()=>{
131
- it('should re-add existing collections', ()=>{
132
- const initialCollections = [
133
- {
134
- name: 'a',
135
- rawTitle: 'aa'
136
- },
137
- {
138
- name: 'b',
139
- rawTitle: 'bb'
140
- }
141
- ];
142
- collectionManager.addCollections(initialCollections);
143
- collectionManager.getCollection('a');
144
- const spy = vitest.spyOn(collectionManager, 'addCollections');
145
- collectionManager.reAddCollections();
146
- expect(collectionManager.collectionInstancesArr.length).toBe(2);
147
- expect(spy).toHaveBeenCalledWith([
148
- collectionManager.getCollection('a').getOptions(),
149
- collectionManager.getCollection('b').getOptions()
150
- ]);
151
- });
152
- it('should re-add specified collections with filter', ()=>{
153
- const initialCollections = [
154
- {
155
- name: 'a',
156
- rawTitle: 'aa'
157
- },
158
- {
159
- name: 'b',
160
- rawTitle: 'bb'
161
- }
162
- ];
163
- collectionManager.addCollections(initialCollections);
164
- const spy = vitest.spyOn(collectionManager, 'addCollections');
165
- collectionManager.reAddCollections([
166
- collectionManager.getCollection('a')
167
- ]);
168
- expect(collectionManager.collectionInstancesArr.length).toBe(2);
169
- expect(spy).toHaveBeenCalledWith([
170
- collectionManager.getCollection('a').getOptions()
171
- ]);
172
- });
173
- });
174
- describe('getCollection', ()=>{
175
- it('should get a collection by name', ()=>{
176
- const collections = [
177
- {
178
- name: 'test'
179
- }
180
- ];
181
- collectionManager.addCollections(collections);
182
- const collection = collectionManager.getCollection('test');
183
- expect(collection).toBeDefined();
184
- });
185
- it('should return undefined for non-existing collection', ()=>{
186
- const collection = collectionManager.getCollection('nonExisting');
187
- expect(collection).toBeUndefined();
188
- });
189
- it('should handle path with associations', ()=>{
190
- collectionManager.addCollections(collections_namespaceObject);
191
- const collection = collectionManager.getCollection('users.roles');
192
- expect(collection).toBeDefined();
193
- });
194
- it('if collection is object, should return the collection instance', ()=>{
195
- const collection = collectionManager.getCollection({
196
- name: 'test'
197
- });
198
- expect(collection).instanceOf(client_namespaceObject.Collection);
199
- expect(collection.name).toBe('test');
200
- });
201
- });
202
- describe('getCollections', ()=>{
203
- it('should return all collections', ()=>{
204
- const collections = [
205
- {
206
- name: 'test1'
207
- },
208
- {
209
- name: 'test2'
210
- }
211
- ];
212
- collectionManager.addCollections(collections);
213
- const allCollections = collectionManager.getCollections();
214
- expect(allCollections.length).toBe(2);
215
- });
216
- it('should return filtered collections', ()=>{
217
- const collections = [
218
- {
219
- name: 'test1'
220
- },
221
- {
222
- name: 'test2'
223
- }
224
- ];
225
- collectionManager.addCollections(collections);
226
- const filteredCollections = collectionManager.getCollections((c)=>'test1' === c.name);
227
- expect(filteredCollections.length).toBe(1);
228
- expect(filteredCollections[0].name).toBe('test1');
229
- });
230
- });
231
- describe('getCollectionName', ()=>{
232
- it('should return the name of a collection', ()=>{
233
- const collections = [
234
- {
235
- name: 'test'
236
- }
237
- ];
238
- collectionManager.addCollections(collections);
239
- const name = collectionManager.getCollectionName('test');
240
- expect(name).toBe('test');
241
- });
242
- });
243
- describe('getCollectionField', ()=>{
244
- beforeEach(()=>{
245
- collectionManager.addCollections(collections_namespaceObject);
246
- });
247
- it('should return undefined for invalid path', ()=>{
248
- const field = collectionManager.getCollectionField('invalid');
249
- expect(field).toBeUndefined();
250
- const field2 = collectionManager.getCollectionField(void 0);
251
- expect(field2).toBeUndefined();
252
- });
253
- it('should return a collection field by path', ()=>{
254
- const field = collectionManager.getCollectionField('users.nickname');
255
- expect(field).toBeDefined();
256
- expect(field.name).toBe('nickname');
257
- });
258
- it('if collection not found, should return undefined', ()=>{
259
- const field = collectionManager.getCollectionField('invalid.nickname');
260
- expect(field).toBeUndefined();
261
- });
262
- it('if field is object, should return the field', ()=>{
263
- const field = collectionManager.getCollectionField({
264
- name: 'nickname'
265
- });
266
- expect(field).toEqual({
267
- name: 'nickname'
268
- });
269
- });
270
- });
271
- describe('getCollectionFields', ()=>{
272
- beforeEach(()=>{
273
- collectionManager.addCollections(collections_namespaceObject);
274
- });
275
- it('should return fields of a specified collection', ()=>{
276
- const fields = collectionManager.getCollectionFields('users');
277
- expect(fields.length).greaterThan(1);
278
- });
279
- it('if collection not found, should return an empty array', ()=>{
280
- const fields = collectionManager.getCollectionFields('invalid');
281
- expect(fields).toEqual([]);
282
- });
283
- });
284
- describe('clone', ()=>{
285
- it('should create a clone of the collection manager', ()=>{
286
- const collections = [
287
- {
288
- name: 'test'
289
- }
290
- ];
291
- collectionManager.addCollections(collections);
292
- const clone = collectionManager.clone();
293
- expect(clone).not.toBe(collectionManager);
294
- expect(clone.collectionInstancesArr).toEqual(collectionManager.collectionInstancesArr);
295
- expect(clone.collectionInstancesMap).toEqual(collectionManager.collectionInstancesMap);
296
- expect(clone.dataSource).toBe(collectionManager.dataSource);
297
- });
298
- });
299
- });
300
- var __webpack_export_target__ = exports;
301
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
302
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
303
- value: true
304
- });
@@ -1,121 +0,0 @@
1
- "use strict";
2
- var __webpack_exports__ = {};
3
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
4
- const external_react_namespaceObject = require("react");
5
- const client_namespaceObject = require("@tachybase/client");
6
- const test_client_namespaceObject = require("@tachybase/test/client");
7
- var collections_namespaceObject = JSON.parse('[{"key":"h7b9i8khc3q","name":"users","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"users.users","duplicator":{"dumpable":"optional","with":"rolesUsers"},"sortable":"sort","model":"UserModel","createdBy":true,"updatedBy":true,"logging":true,"from":"db2cm","title":"{{t(\\"Users\\")}}","rawTitle":"{{t(\\"Users\\")}}","fields":[{"uiSchema":{"type":"number","title":"{{t(\\"ID\\")}}","x-component":"InputNumber","x-read-pretty":true,"rawTitle":"{{t(\\"ID\\")}}"},"key":"ffp1f2sula0","name":"id","type":"bigInt","interface":"id","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"autoIncrement":true,"primaryKey":true,"allowNull":false},{"uiSchema":{"type":"string","title":"{{t(\\"Nickname\\")}}","x-component":"Input","rawTitle":"{{t(\\"Nickname\\")}}"},"key":"vrv7yjue90g","name":"nickname","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null},{"uiSchema":{"type":"string","title":"{{t(\\"Username\\")}}","x-component":"Input","x-validator":{"username":true},"required":true,"rawTitle":"{{t(\\"Username\\")}}"},"key":"2ccs6evyrub","name":"username","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"uiSchema":{"type":"string","title":"{{t(\\"Email\\")}}","x-component":"Input","x-validator":"email","required":true,"rawTitle":"{{t(\\"Email\\")}}"},"key":"rrskwjl5wt1","name":"email","type":"string","interface":"email","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"key":"t09bauwm0wb","name":"roles","type":"belongsToMany","interface":"m2m","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"target":"roles","foreignKey":"userId","otherKey":"roleName","onDelete":"CASCADE","sourceKey":"id","targetKey":"name","through":"rolesUsers","uiSchema":{"type":"array","title":"{{t(\\"Roles\\")}}","x-component":"AssociationField","x-component-props":{"multiple":true,"fieldNames":{"label":"title","value":"name"}}}},{"key":"1pz0art9mt7","name":"f_n2fu6hvprct","type":"string","interface":"select","description":null,"collectionName":"t_vwpds9fs4xs","parentKey":null,"reverseKey":null,"uiSchema":{"enum":[{"value":"test1","label":"test1"},{"value":"test2","label":"test2"}],"type":"string","x-component":"Select","title":"test"}}]},{"key":"pqnenvqrzxr","name":"roles","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"acl.acl","duplicator":{"dumpable":"required","with":"uiSchemas"},"autoGenId":false,"model":"RoleModel","filterTargetKey":"name","sortable":true,"from":"db2cm","title":"{{t(\\"Roles\\")}}","rawTitle":"{{t(\\"Roles\\")}}","fields":[{"uiSchema":{"type":"string","title":"{{t(\\"Role UID\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role UID\\")}}"},"key":"jbz9m80bxmp","name":"name","type":"uid","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"prefix":"r_","primaryKey":true},{"uiSchema":{"type":"string","title":"{{t(\\"Role name\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role name\\")}}"},"key":"faywtz4sf3u","name":"title","type":"string","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"unique":true,"translation":true},{"key":"1enkovm9sye","name":"description","type":"string","interface":null,"description":null,"collectionName":"roles","parentKey":null,"reverseKey":null}]}]');
8
- function renderApp(Demo, dataSource) {
9
- const app = new client_namespaceObject.Application({
10
- dataSourceManager: {
11
- collections: collections_namespaceObject,
12
- dataSources: [
13
- {
14
- key: 'a',
15
- displayName: 'a',
16
- collections: [
17
- collections_namespaceObject["0"]
18
- ]
19
- }
20
- ]
21
- }
22
- });
23
- return (0, test_client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.DataSourceApplicationProvider, {
24
- dataSourceManager: app.dataSourceManager,
25
- dataSource: dataSource,
26
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Demo, {})
27
- }));
28
- }
29
- describe('CollectionManagerProvider', ()=>{
30
- test('should render', ()=>{
31
- const Demo = ()=>{
32
- const cm = (0, client_namespaceObject.useCollectionManager)();
33
- (0, external_react_namespaceObject.useEffect)(()=>{
34
- expect(cm instanceof client_namespaceObject.CollectionManager).toBeTruthy();
35
- }, [
36
- cm
37
- ]);
38
- const users = cm.getCollection('users');
39
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
40
- "data-testid": "demo",
41
- children: users.name
42
- });
43
- };
44
- renderApp(Demo);
45
- expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent('users');
46
- });
47
- test('useCollections()', ()=>{
48
- const Demo = ()=>{
49
- const collections = (0, client_namespaceObject.useCollections)();
50
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
51
- "data-testid": "demo",
52
- children: collections.length
53
- });
54
- };
55
- renderApp(Demo);
56
- expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent('2');
57
- });
58
- test('useCollections({ predicate })', ()=>{
59
- const Demo = ()=>{
60
- const collections = (0, client_namespaceObject.useCollections)((collection)=>'users' === collection.name);
61
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
62
- "data-testid": "demo",
63
- children: collections.length
64
- });
65
- };
66
- renderApp(Demo);
67
- expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent('1');
68
- });
69
- test('useCollections() with dataSource', ()=>{
70
- const Demo = ()=>{
71
- const collections = (0, client_namespaceObject.useCollections)();
72
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
73
- "data-testid": "demo",
74
- children: collections.length
75
- });
76
- };
77
- renderApp(Demo, 'a');
78
- expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent('1');
79
- });
80
- test('extend collections by props', ()=>{
81
- const Demo = ()=>{
82
- const collections = (0, client_namespaceObject.useCollections)();
83
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
84
- "data-testid": "demo",
85
- children: collections.length
86
- });
87
- };
88
- const Wrapper = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.CollectionManagerProvider, {
89
- collections: [
90
- collections_namespaceObject["1"]
91
- ],
92
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Demo, {})
93
- });
94
- renderApp(Wrapper, 'a');
95
- expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent('2');
96
- });
97
- test('extend collections by ExtendCollectionsProvider', ()=>{
98
- const Demo = ()=>{
99
- const collections = (0, client_namespaceObject.useCollections)();
100
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
101
- "data-testid": "demo",
102
- children: collections.length
103
- });
104
- };
105
- const Wrapper = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.ExtendCollectionsProvider, {
106
- collections: [
107
- collections_namespaceObject["1"]
108
- ],
109
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.CollectionManagerProvider, {
110
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Demo, {})
111
- })
112
- });
113
- renderApp(Wrapper, 'a');
114
- expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent('2');
115
- });
116
- });
117
- var __webpack_export_target__ = exports;
118
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
119
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
120
- value: true
121
- });
@@ -1,113 +0,0 @@
1
- "use strict";
2
- var __webpack_exports__ = {};
3
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
4
- require("react");
5
- const client_namespaceObject = require("@tachybase/client");
6
- const test_client_namespaceObject = require("@tachybase/test/client");
7
- var collections_namespaceObject = JSON.parse('[{"key":"h7b9i8khc3q","name":"users","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"users.users","duplicator":{"dumpable":"optional","with":"rolesUsers"},"sortable":"sort","model":"UserModel","createdBy":true,"updatedBy":true,"logging":true,"from":"db2cm","title":"{{t(\\"Users\\")}}","rawTitle":"{{t(\\"Users\\")}}","fields":[{"uiSchema":{"type":"number","title":"{{t(\\"ID\\")}}","x-component":"InputNumber","x-read-pretty":true,"rawTitle":"{{t(\\"ID\\")}}"},"key":"ffp1f2sula0","name":"id","type":"bigInt","interface":"id","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"autoIncrement":true,"primaryKey":true,"allowNull":false},{"uiSchema":{"type":"string","title":"{{t(\\"Nickname\\")}}","x-component":"Input","rawTitle":"{{t(\\"Nickname\\")}}"},"key":"vrv7yjue90g","name":"nickname","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null},{"uiSchema":{"type":"string","title":"{{t(\\"Username\\")}}","x-component":"Input","x-validator":{"username":true},"required":true,"rawTitle":"{{t(\\"Username\\")}}"},"key":"2ccs6evyrub","name":"username","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"uiSchema":{"type":"string","title":"{{t(\\"Email\\")}}","x-component":"Input","x-validator":"email","required":true,"rawTitle":"{{t(\\"Email\\")}}"},"key":"rrskwjl5wt1","name":"email","type":"string","interface":"email","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"key":"t09bauwm0wb","name":"roles","type":"belongsToMany","interface":"m2m","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"target":"roles","foreignKey":"userId","otherKey":"roleName","onDelete":"CASCADE","sourceKey":"id","targetKey":"name","through":"rolesUsers","uiSchema":{"type":"array","title":"{{t(\\"Roles\\")}}","x-component":"AssociationField","x-component-props":{"multiple":true,"fieldNames":{"label":"title","value":"name"}}}},{"key":"1pz0art9mt7","name":"f_n2fu6hvprct","type":"string","interface":"select","description":null,"collectionName":"t_vwpds9fs4xs","parentKey":null,"reverseKey":null,"uiSchema":{"enum":[{"value":"test1","label":"test1"},{"value":"test2","label":"test2"}],"type":"string","x-component":"Select","title":"test"}}]},{"key":"pqnenvqrzxr","name":"roles","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"acl.acl","duplicator":{"dumpable":"required","with":"uiSchemas"},"autoGenId":false,"model":"RoleModel","filterTargetKey":"name","sortable":true,"from":"db2cm","title":"{{t(\\"Roles\\")}}","rawTitle":"{{t(\\"Roles\\")}}","fields":[{"uiSchema":{"type":"string","title":"{{t(\\"Role UID\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role UID\\")}}"},"key":"jbz9m80bxmp","name":"name","type":"uid","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"prefix":"r_","primaryKey":true},{"uiSchema":{"type":"string","title":"{{t(\\"Role name\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role name\\")}}"},"key":"faywtz4sf3u","name":"title","type":"string","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"unique":true,"translation":true},{"key":"1enkovm9sye","name":"description","type":"string","interface":null,"description":null,"collectionName":"roles","parentKey":null,"reverseKey":null}]}]');
8
- function renderApp(Demo) {
9
- let props = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
10
- const app = new client_namespaceObject.Application({
11
- dataSourceManager: {
12
- collections: collections_namespaceObject
13
- }
14
- });
15
- const schema = {
16
- name: 'root',
17
- type: 'void',
18
- 'x-component': 'Demo',
19
- 'x-decorator': 'CollectionProvider',
20
- 'x-decorator-props': props
21
- };
22
- return (0, test_client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
23
- "data-testid": "app",
24
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.SchemaComponentProvider, {
25
- designable: true,
26
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.DataSourceApplicationProvider, {
27
- dataSourceManager: app.dataSourceManager,
28
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.SchemaComponent, {
29
- schema: schema,
30
- components: {
31
- Demo,
32
- CollectionProvider: client_namespaceObject.CollectionProvider
33
- }
34
- })
35
- })
36
- })
37
- }));
38
- }
39
- describe('CollectionProvider', ()=>{
40
- test('should render', ()=>{
41
- const Demo = ()=>{
42
- const collection = (0, client_namespaceObject.useCollection)();
43
- const collectionFields = (0, client_namespaceObject.useCollectionFields)();
44
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
45
- children: [
46
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
47
- "data-testid": "name",
48
- children: collection.name
49
- }),
50
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
51
- "data-testid": "fields",
52
- children: collectionFields.length
53
- })
54
- ]
55
- });
56
- };
57
- renderApp(Demo, {
58
- name: 'users'
59
- });
60
- expect(test_client_namespaceObject.screen.getByTestId('name')).toHaveTextContent('users');
61
- const usersOptions = collections_namespaceObject.find((item)=>'users' === item.name);
62
- expect(test_client_namespaceObject.screen.getByTestId('fields')).toHaveTextContent(String(usersOptions.fields.length));
63
- });
64
- test('collection not exists and { allowNull: true }, should render children', ()=>{
65
- const Demo = ()=>{
66
- const collection = (0, client_namespaceObject.useCollection)();
67
- expect(collection).toBeFalsy();
68
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
69
- "data-testid": "children",
70
- children: "children"
71
- });
72
- };
73
- renderApp(Demo, {
74
- name: 'not-exists',
75
- allowNull: true
76
- });
77
- expect(test_client_namespaceObject.screen.getByTestId('children')).toHaveTextContent('children');
78
- });
79
- test('collection not exists and { allowNull: false }, should render `CollectionDeletedPlaceholder` content', ()=>{
80
- const Demo = ()=>{
81
- const collection = (0, client_namespaceObject.useCollection)();
82
- expect(collection).toBeFalsy();
83
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
84
- children: "children"
85
- });
86
- };
87
- renderApp(Demo, {
88
- name: 'not-exists',
89
- allowNull: false
90
- });
91
- expect(document.body.innerHTML).toContain('ant-result');
92
- });
93
- test('useCollectionFields() support predicate', ()=>{
94
- const Demo = ()=>{
95
- const fields = (0, client_namespaceObject.useCollectionFields)({
96
- name: 'id'
97
- });
98
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
99
- "data-testid": "fields",
100
- children: fields.length
101
- });
102
- };
103
- renderApp(Demo, {
104
- name: 'users'
105
- });
106
- expect(test_client_namespaceObject.screen.getByTestId('fields')).toHaveTextContent('1');
107
- });
108
- });
109
- var __webpack_export_target__ = exports;
110
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
111
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
112
- value: true
113
- });
@@ -1,94 +0,0 @@
1
- "use strict";
2
- var __webpack_exports__ = {};
3
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
4
- require("react");
5
- const client_namespaceObject = require("@tachybase/client");
6
- const react_namespaceObject = require("@testing-library/react");
7
- const DataSourceProvider_js_namespaceObject = require("../../data-source/DataSourceProvider.js");
8
- describe('ExtendCollectionsProvider', ()=>{
9
- const app = new client_namespaceObject.Application({
10
- dataSourceManager: {
11
- dataSources: [
12
- {
13
- key: 'test',
14
- displayName: 'test'
15
- }
16
- ]
17
- }
18
- });
19
- const TestComponent = ()=>{
20
- const cm = (0, client_namespaceObject.useCollectionManager)();
21
- const dataSourceKey = (0, DataSourceProvider_js_namespaceObject.useDataSourceKey)();
22
- const collections = cm.getCollections();
23
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
24
- children: [
25
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
26
- "data-testid": "data-source",
27
- children: dataSourceKey
28
- }),
29
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
30
- "data-testid": "collections",
31
- children: collections.map((collection)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
32
- children: collection.name
33
- }, collection.name))
34
- })
35
- ]
36
- });
37
- };
38
- const App = (param)=>{
39
- let { children } = param;
40
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.DataSourceManagerProvider, {
41
- dataSourceManager: app.dataSourceManager,
42
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.CollectionManagerProvider, {
43
- dataSource: "test",
44
- children: children
45
- })
46
- });
47
- };
48
- test('should provide extend collections', ()=>{
49
- const collections = [
50
- {
51
- name: 'collection1'
52
- },
53
- {
54
- name: 'collection2'
55
- }
56
- ];
57
- (0, react_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(App, {
58
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.ExtendCollectionsProvider, {
59
- collections: collections,
60
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TestComponent, {})
61
- })
62
- }));
63
- expect(react_namespaceObject.screen.getByTestId('collections')).toHaveTextContent('collection1');
64
- expect(react_namespaceObject.screen.getByTestId('collections')).toHaveTextContent('collection2');
65
- expect(react_namespaceObject.screen.getByTestId('data-source')).toHaveTextContent('test');
66
- });
67
- it('extends parent collections with the given ones', ()=>{
68
- (0, react_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(App, {
69
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.ExtendCollectionsProvider, {
70
- collections: [
71
- {
72
- name: 'collection1'
73
- }
74
- ],
75
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.ExtendCollectionsProvider, {
76
- collections: [
77
- {
78
- name: 'collection2'
79
- }
80
- ],
81
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TestComponent, {})
82
- })
83
- })
84
- }));
85
- expect(react_namespaceObject.screen.getByTestId('collections')).toHaveTextContent('collection1');
86
- expect(react_namespaceObject.screen.getByTestId('collections')).toHaveTextContent('collection2');
87
- expect(react_namespaceObject.screen.getByTestId('data-source')).toHaveTextContent('test');
88
- });
89
- });
90
- var __webpack_export_target__ = exports;
91
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
92
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
93
- value: true
94
- });