@cozeloop/components 0.0.1 → 0.0.3

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 (727) hide show
  1. package/.eslintcache +1 -0
  2. package/.rush/temp/shrinkwrap-deps.json +770 -0
  3. package/OWNERS +5 -0
  4. package/README.md +82 -1
  5. package/config/rush-project.json +8 -0
  6. package/dist/es/index.css +661 -0
  7. package/dist/es/index.js +6044 -65
  8. package/dist/es/static/svg/select.svg +1 -0
  9. package/dist/lib/base-search-select/base-search-form-select.js.map +1 -0
  10. package/dist/{base-search-select → lib/base-search-select}/base-search-select.js +5 -3
  11. package/dist/lib/base-search-select/base-search-select.js.map +1 -0
  12. package/dist/{base-search-select → lib/base-search-select}/index.d.ts +1 -1
  13. package/dist/lib/base-search-select/index.js.map +1 -0
  14. package/dist/{base-search-select → lib/base-search-select}/types.d.ts +6 -3
  15. package/dist/{base-search-select → lib/base-search-select}/types.js.map +1 -1
  16. package/dist/{base-search-select → lib/base-search-select}/utils.d.ts +1 -1
  17. package/dist/lib/base-search-select/utils.js.map +1 -0
  18. package/dist/lib/basic-card/index.d.ts +7 -0
  19. package/dist/lib/basic-card/index.js +4 -0
  20. package/dist/lib/basic-card/index.js.map +1 -0
  21. package/dist/lib/card-pane/index.d.ts +5 -0
  22. package/dist/lib/card-pane/index.js +9 -0
  23. package/dist/lib/card-pane/index.js.map +1 -0
  24. package/dist/lib/chip-select/index.d.ts +2 -0
  25. package/dist/lib/chip-select/index.js +6 -0
  26. package/dist/lib/chip-select/index.js.map +1 -0
  27. package/dist/{code-editor → lib/code-editor}/index.js +1 -0
  28. package/dist/lib/code-editor/index.js.map +1 -0
  29. package/dist/lib/code-usage/index.d.ts +14 -0
  30. package/dist/lib/code-usage/index.js +31 -0
  31. package/dist/lib/code-usage/index.js.map +1 -0
  32. package/dist/lib/codemirror-editor/code-editor.d.ts +2 -0
  33. package/dist/lib/codemirror-editor/code-editor.js +108 -0
  34. package/dist/lib/codemirror-editor/code-editor.js.map +1 -0
  35. package/dist/lib/codemirror-editor/index.d.ts +4 -0
  36. package/dist/lib/codemirror-editor/index.js +5 -0
  37. package/dist/lib/codemirror-editor/index.js.map +1 -0
  38. package/dist/lib/codemirror-editor/json-editor.d.ts +19 -0
  39. package/dist/lib/codemirror-editor/json-editor.js +97 -0
  40. package/dist/lib/codemirror-editor/json-editor.js.map +1 -0
  41. package/dist/lib/codemirror-editor/raw-text-editor.d.ts +11 -0
  42. package/dist/lib/codemirror-editor/raw-text-editor.js +32 -0
  43. package/dist/lib/codemirror-editor/raw-text-editor.js.map +1 -0
  44. package/dist/lib/codemirror-editor/text-editor.d.ts +2 -0
  45. package/dist/lib/codemirror-editor/text-editor.js +44 -0
  46. package/dist/lib/codemirror-editor/text-editor.js.map +1 -0
  47. package/dist/lib/codemirror-editor/themes/coze-dark.d.ts +1 -0
  48. package/dist/lib/codemirror-editor/themes/coze-dark.js +113 -0
  49. package/dist/lib/codemirror-editor/themes/coze-dark.js.map +1 -0
  50. package/dist/lib/codemirror-editor/themes/coze-light.d.ts +1 -0
  51. package/dist/lib/codemirror-editor/themes/coze-light.js +119 -0
  52. package/dist/lib/codemirror-editor/themes/coze-light.js.map +1 -0
  53. package/dist/{collapse-card → lib/collapse-card}/index.d.ts +2 -2
  54. package/dist/{collapse-card → lib/collapse-card}/index.js +2 -2
  55. package/dist/lib/collapse-card/index.js.map +1 -0
  56. package/dist/lib/collapsible-card/index.js +12 -78
  57. package/dist/lib/collapsible-card/index.js.map +1 -0
  58. package/dist/{column-manage-storage → lib/column-manage-storage}/index.d.ts +1 -1
  59. package/dist/lib/column-manage-storage/index.js +43 -93
  60. package/dist/lib/column-manage-storage/index.js.map +1 -0
  61. package/dist/lib/columns-select/index.js +73 -237
  62. package/dist/lib/columns-select/index.js.map +1 -0
  63. package/dist/{edit-icon-button → lib/edit-icon-button}/index.d.ts +2 -2
  64. package/dist/{edit-icon-button → lib/edit-icon-button}/index.js +2 -2
  65. package/dist/lib/edit-icon-button/index.js.map +1 -0
  66. package/dist/lib/footer-actions/index.d.ts +15 -0
  67. package/dist/lib/footer-actions/index.js +9 -0
  68. package/dist/lib/footer-actions/index.js.map +1 -0
  69. package/dist/lib/hooks/use-infinite-scroll.js +130 -192
  70. package/dist/lib/hooks/use-infinite-scroll.js.map +1 -0
  71. package/dist/lib/hooks/use-mouse-down-offset.js +38 -64
  72. package/dist/lib/hooks/use-mouse-down-offset.js.map +1 -0
  73. package/dist/lib/hooks/use-unsave-leave-warning.d.ts +12 -0
  74. package/dist/lib/hooks/use-unsave-leave-warning.js +33 -0
  75. package/dist/lib/hooks/use-unsave-leave-warning.js.map +1 -0
  76. package/dist/{id-render → lib/id-render}/icon-button-container.d.ts +3 -1
  77. package/dist/lib/id-render/icon-button-container.js +7 -88
  78. package/dist/lib/id-render/icon-button-container.js.map +1 -0
  79. package/dist/lib/id-render/index.js +20 -111
  80. package/dist/lib/id-render/index.js.map +1 -0
  81. package/dist/lib/index-controller/record-navigation.d.ts +6 -0
  82. package/dist/lib/index-controller/record-navigation.js +9 -0
  83. package/dist/lib/index-controller/record-navigation.js.map +1 -0
  84. package/dist/lib/index-controller/use-item-index-controller.d.ts +47 -0
  85. package/dist/lib/index-controller/use-item-index-controller.js +123 -0
  86. package/dist/lib/index-controller/use-item-index-controller.js.map +1 -0
  87. package/dist/lib/index.d.ts +70 -0
  88. package/dist/lib/index.js +76 -110
  89. package/dist/lib/index.js.map +1 -0
  90. package/dist/lib/infinite-scroll-table/index.js +31 -123
  91. package/dist/lib/infinite-scroll-table/index.js.map +1 -0
  92. package/dist/lib/info-tooltip/index.d.ts +9 -0
  93. package/dist/lib/info-tooltip/index.js +9 -0
  94. package/dist/lib/info-tooltip/index.js.map +1 -0
  95. package/dist/lib/input-components/radio-button.d.ts +14 -0
  96. package/dist/lib/input-components/radio-button.js +21 -0
  97. package/dist/lib/input-components/radio-button.js.map +1 -0
  98. package/dist/{input-slider → lib/input-slider}/index.d.ts +1 -0
  99. package/dist/lib/input-slider/index.js +73 -146
  100. package/dist/lib/input-slider/index.js.map +1 -0
  101. package/dist/lib/input-with-count/index.d.ts +2 -0
  102. package/dist/lib/input-with-count/index.js +7 -0
  103. package/dist/lib/input-with-count/index.js.map +1 -0
  104. package/dist/{jump-button → lib/jump-button}/jump-icon-button.d.ts +1 -1
  105. package/dist/{jump-button → lib/jump-button}/jump-icon-button.js +2 -2
  106. package/dist/lib/jump-button/jump-icon-button.js.map +1 -0
  107. package/dist/lib/large-txt-render/index.js +24 -60
  108. package/dist/lib/large-txt-render/index.js.map +1 -0
  109. package/dist/lib/layout/content.d.ts +7 -0
  110. package/dist/lib/layout/content.js +5 -0
  111. package/dist/lib/layout/content.js.map +1 -0
  112. package/dist/lib/layout/header.d.ts +7 -0
  113. package/dist/lib/layout/header.js +6 -0
  114. package/dist/lib/layout/header.js.map +1 -0
  115. package/dist/lib/layout/index.d.ts +12 -0
  116. package/dist/lib/layout/index.js +9 -0
  117. package/dist/lib/layout/index.js.map +1 -0
  118. package/dist/lib/layout/tabs.d.ts +6 -0
  119. package/dist/lib/layout/tabs.js +10 -0
  120. package/dist/lib/layout/tabs.js.map +1 -0
  121. package/dist/lib/lazy-load-component/index.d.ts +5 -0
  122. package/dist/lib/lazy-load-component/index.js +42 -0
  123. package/dist/lib/lazy-load-component/index.js.map +1 -0
  124. package/dist/lib/logic-editor/index.d.ts +3 -0
  125. package/dist/lib/logic-editor/index.js +3 -0
  126. package/dist/lib/logic-editor/index.js.map +1 -0
  127. package/dist/lib/logic-editor/logic-editor.d.ts +17 -0
  128. package/dist/lib/logic-editor/logic-editor.js +69 -0
  129. package/dist/lib/logic-editor/logic-editor.js.map +1 -0
  130. package/dist/lib/logic-editor/logic-left-render.d.ts +3 -0
  131. package/dist/lib/logic-editor/logic-left-render.js +60 -0
  132. package/dist/lib/logic-editor/logic-left-render.js.map +1 -0
  133. package/dist/lib/logic-editor/logic-operator-render.d.ts +3 -0
  134. package/dist/lib/logic-editor/logic-operator-render.js +29 -0
  135. package/dist/lib/logic-editor/logic-operator-render.js.map +1 -0
  136. package/dist/lib/logic-editor/logic-right-render.d.ts +3 -0
  137. package/dist/lib/logic-editor/logic-right-render.js +25 -0
  138. package/dist/lib/logic-editor/logic-right-render.js.map +1 -0
  139. package/dist/lib/logic-editor/logic-types.d.ts +49 -0
  140. package/dist/lib/logic-editor/logic-types.js +136 -0
  141. package/dist/lib/logic-editor/logic-types.js.map +1 -0
  142. package/dist/lib/logic-editor/utils.d.ts +2 -0
  143. package/dist/lib/logic-editor/utils.js +18 -0
  144. package/dist/lib/logic-editor/utils.js.map +1 -0
  145. package/dist/lib/logic-expr/consts.d.ts +2 -0
  146. package/dist/lib/logic-expr/consts.js.map +1 -0
  147. package/dist/{logic-expr → lib/logic-expr}/expr-group-render.js +2 -1
  148. package/dist/lib/logic-expr/expr-group-render.js.map +1 -0
  149. package/dist/{logic-expr → lib/logic-expr}/expr-render.js +3 -2
  150. package/dist/lib/logic-expr/expr-render.js.map +1 -0
  151. package/dist/lib/logic-expr/index.js.map +1 -0
  152. package/dist/{logic-expr → lib/logic-expr}/logic-expr.js +1 -1
  153. package/dist/lib/logic-expr/logic-expr.js.map +1 -0
  154. package/dist/{logic-expr → lib/logic-expr}/logic-not.js +2 -1
  155. package/dist/lib/logic-expr/logic-not.js.map +1 -0
  156. package/dist/{logic-expr → lib/logic-expr}/logic-toggle.js +3 -2
  157. package/dist/lib/logic-expr/logic-toggle.js.map +1 -0
  158. package/dist/{logic-expr → lib/logic-expr}/types.js.map +1 -1
  159. package/dist/lib/loop-radio-group/index.d.ts +2 -0
  160. package/dist/lib/loop-radio-group/index.js +7 -0
  161. package/dist/lib/loop-radio-group/index.js.map +1 -0
  162. package/dist/lib/multi-part-editor/components/image-item-renderer.d.ts +14 -0
  163. package/dist/lib/multi-part-editor/components/image-item-renderer.js +57 -0
  164. package/dist/lib/multi-part-editor/components/image-item-renderer.js.map +1 -0
  165. package/dist/lib/multi-part-editor/components/multipart-item-renderer.d.ts +10 -0
  166. package/dist/lib/multi-part-editor/components/multipart-item-renderer.js +25 -0
  167. package/dist/lib/multi-part-editor/components/multipart-item-renderer.js.map +1 -0
  168. package/dist/lib/multi-part-editor/components/url-input-modal.d.ts +14 -0
  169. package/dist/lib/multi-part-editor/components/url-input-modal.js +150 -0
  170. package/dist/lib/multi-part-editor/components/url-input-modal.js.map +1 -0
  171. package/dist/lib/multi-part-editor/components/video-item-renderer.d.ts +14 -0
  172. package/dist/lib/multi-part-editor/components/video-item-renderer.js +57 -0
  173. package/dist/lib/multi-part-editor/components/video-item-renderer.js.map +1 -0
  174. package/dist/lib/multi-part-editor/index.d.ts +3 -0
  175. package/dist/lib/multi-part-editor/index.js +300 -0
  176. package/dist/lib/multi-part-editor/index.js.map +1 -0
  177. package/dist/lib/multi-part-editor/multi-part-render.d.ts +10 -0
  178. package/dist/lib/multi-part-editor/multi-part-render.js +40 -0
  179. package/dist/lib/multi-part-editor/multi-part-render.js.map +1 -0
  180. package/dist/lib/multi-part-editor/type.d.ts +81 -0
  181. package/dist/lib/multi-part-editor/type.js +25 -0
  182. package/dist/lib/multi-part-editor/type.js.map +1 -0
  183. package/dist/lib/multi-part-editor/upload-button.d.ts +23 -0
  184. package/dist/lib/multi-part-editor/upload-button.js +103 -0
  185. package/dist/lib/multi-part-editor/upload-button.js.map +1 -0
  186. package/dist/lib/multi-part-editor/utils.d.ts +16 -0
  187. package/dist/lib/multi-part-editor/utils.js +43 -0
  188. package/dist/lib/multi-part-editor/utils.js.map +1 -0
  189. package/dist/lib/open-detail-button/index.js.map +1 -0
  190. package/dist/lib/page-content/index.js +17 -130
  191. package/dist/lib/page-content/index.js.map +1 -0
  192. package/dist/lib/primary-page/index.js +2 -28
  193. package/dist/lib/primary-page/index.js.map +1 -0
  194. package/dist/lib/primary-page/primary-header.d.ts +13 -0
  195. package/dist/lib/primary-page/primary-header.js +4 -72
  196. package/dist/lib/primary-page/primary-header.js.map +1 -0
  197. package/dist/lib/primary-title/index.d.ts +6 -0
  198. package/dist/lib/primary-title/index.js +8 -0
  199. package/dist/lib/primary-title/index.js.map +1 -0
  200. package/dist/lib/provider/index.d.ts +18 -0
  201. package/dist/lib/provider/index.js +43 -0
  202. package/dist/lib/provider/index.js.map +1 -0
  203. package/dist/lib/resizable-side-sheet/index.d.ts +10 -0
  204. package/dist/lib/resizable-side-sheet/index.js +32 -0
  205. package/dist/lib/resizable-side-sheet/index.js.map +1 -0
  206. package/dist/{resize-sidesheet → lib/resize-sidesheet}/index.d.ts +1 -0
  207. package/dist/lib/resize-sidesheet/index.js +15 -129
  208. package/dist/lib/resize-sidesheet/index.js.map +1 -0
  209. package/dist/{resize-sidesheet → lib/resize-sidesheet}/use-drag.d.ts +1 -0
  210. package/dist/lib/resize-sidesheet/use-drag.js +26 -51
  211. package/dist/lib/resize-sidesheet/use-drag.js.map +1 -0
  212. package/dist/lib/schema-editor/index.d.ts +11 -0
  213. package/dist/lib/schema-editor/index.js +5 -0
  214. package/dist/lib/schema-editor/index.js.map +1 -0
  215. package/dist/lib/search-form/index.d.ts +15 -0
  216. package/dist/lib/search-form/index.js +77 -0
  217. package/dist/lib/search-form/index.js.map +1 -0
  218. package/dist/lib/semi-schema-form/components/tmpls/array-field-item.d.ts +6 -0
  219. package/dist/lib/semi-schema-form/components/tmpls/array-field-item.js +19 -0
  220. package/dist/lib/semi-schema-form/components/tmpls/array-field-item.js.map +1 -0
  221. package/dist/lib/semi-schema-form/components/tmpls/array-field.d.ts +6 -0
  222. package/dist/lib/semi-schema-form/components/tmpls/array-field.js +39 -0
  223. package/dist/lib/semi-schema-form/components/tmpls/array-field.js.map +1 -0
  224. package/dist/lib/semi-schema-form/components/tmpls/base-input.d.ts +8 -0
  225. package/dist/lib/semi-schema-form/components/tmpls/base-input.js +32 -0
  226. package/dist/lib/semi-schema-form/components/tmpls/base-input.js.map +1 -0
  227. package/dist/lib/semi-schema-form/components/tmpls/description-field.d.ts +6 -0
  228. package/dist/lib/semi-schema-form/components/tmpls/description-field.js +13 -0
  229. package/dist/lib/semi-schema-form/components/tmpls/description-field.js.map +1 -0
  230. package/dist/lib/semi-schema-form/components/tmpls/error-list.d.ts +6 -0
  231. package/dist/lib/semi-schema-form/components/tmpls/error-list.js +14 -0
  232. package/dist/lib/semi-schema-form/components/tmpls/error-list.js.map +1 -0
  233. package/dist/lib/semi-schema-form/components/tmpls/field-error.d.ts +6 -0
  234. package/dist/lib/semi-schema-form/components/tmpls/field-error.js +16 -0
  235. package/dist/lib/semi-schema-form/components/tmpls/field-error.js.map +1 -0
  236. package/dist/lib/semi-schema-form/components/tmpls/field.d.ts +7 -0
  237. package/dist/lib/semi-schema-form/components/tmpls/field.js +21 -0
  238. package/dist/lib/semi-schema-form/components/tmpls/field.js.map +1 -0
  239. package/dist/lib/semi-schema-form/components/tmpls/icon-button.d.ts +11 -0
  240. package/dist/lib/semi-schema-form/components/tmpls/icon-button.js +29 -0
  241. package/dist/lib/semi-schema-form/components/tmpls/icon-button.js.map +1 -0
  242. package/dist/lib/semi-schema-form/components/tmpls/index.d.ts +2 -0
  243. package/dist/lib/semi-schema-form/components/tmpls/index.js +31 -0
  244. package/dist/lib/semi-schema-form/components/tmpls/index.js.map +1 -0
  245. package/dist/lib/semi-schema-form/components/tmpls/object-field.d.ts +8 -0
  246. package/dist/lib/semi-schema-form/components/tmpls/object-field.js +81 -0
  247. package/dist/lib/semi-schema-form/components/tmpls/object-field.js.map +1 -0
  248. package/dist/lib/semi-schema-form/components/tmpls/submit.d.ts +4 -0
  249. package/dist/lib/semi-schema-form/components/tmpls/submit.js +13 -0
  250. package/dist/lib/semi-schema-form/components/tmpls/submit.js.map +1 -0
  251. package/dist/lib/semi-schema-form/components/tmpls/title-field.d.ts +6 -0
  252. package/dist/lib/semi-schema-form/components/tmpls/title-field.js +12 -0
  253. package/dist/lib/semi-schema-form/components/tmpls/title-field.js.map +1 -0
  254. package/dist/lib/semi-schema-form/components/widgets/checkbox.d.ts +7 -0
  255. package/dist/lib/semi-schema-form/components/widgets/checkbox.js +26 -0
  256. package/dist/lib/semi-schema-form/components/widgets/checkbox.js.map +1 -0
  257. package/dist/lib/semi-schema-form/components/widgets/checkboxs.d.ts +7 -0
  258. package/dist/lib/semi-schema-form/components/widgets/checkboxs.js +27 -0
  259. package/dist/lib/semi-schema-form/components/widgets/checkboxs.js.map +1 -0
  260. package/dist/lib/semi-schema-form/components/widgets/index.d.ts +2 -0
  261. package/dist/lib/semi-schema-form/components/widgets/index.js +15 -0
  262. package/dist/lib/semi-schema-form/components/widgets/index.js.map +1 -0
  263. package/dist/lib/semi-schema-form/components/widgets/radio.d.ts +7 -0
  264. package/dist/lib/semi-schema-form/components/widgets/radio.js +27 -0
  265. package/dist/lib/semi-schema-form/components/widgets/radio.js.map +1 -0
  266. package/dist/lib/semi-schema-form/components/widgets/range.d.ts +7 -0
  267. package/dist/lib/semi-schema-form/components/widgets/range.js +26 -0
  268. package/dist/lib/semi-schema-form/components/widgets/range.js.map +1 -0
  269. package/dist/lib/semi-schema-form/components/widgets/select.d.ts +7 -0
  270. package/dist/lib/semi-schema-form/components/widgets/select.js +44 -0
  271. package/dist/lib/semi-schema-form/components/widgets/select.js.map +1 -0
  272. package/dist/lib/semi-schema-form/components/widgets/textarea.d.ts +6 -0
  273. package/dist/lib/semi-schema-form/components/widgets/textarea.js +18 -0
  274. package/dist/lib/semi-schema-form/components/widgets/textarea.js.map +1 -0
  275. package/dist/lib/semi-schema-form/index.d.ts +4 -0
  276. package/dist/lib/semi-schema-form/index.js +9 -0
  277. package/dist/lib/semi-schema-form/index.js.map +1 -0
  278. package/dist/lib/sentinel-form/enum.d.ts +8 -0
  279. package/dist/lib/sentinel-form/enum.js +15 -0
  280. package/dist/lib/sentinel-form/enum.js.map +1 -0
  281. package/dist/lib/sentinel-form/index.d.ts +20 -0
  282. package/dist/lib/sentinel-form/index.js +289 -0
  283. package/dist/lib/sentinel-form/index.js.map +1 -0
  284. package/dist/lib/step-nav/index.d.ts +12 -0
  285. package/dist/lib/step-nav/index.js +13 -0
  286. package/dist/lib/step-nav/index.js.map +1 -0
  287. package/dist/lib/table/index.js +6 -88
  288. package/dist/lib/table/index.js.map +1 -0
  289. package/dist/lib/table/sort-icon.js +25 -132
  290. package/dist/lib/table/sort-icon.js.map +1 -0
  291. package/dist/{table → lib/table}/table-with-pagination.d.ts +10 -3
  292. package/dist/lib/table/table-with-pagination.js +71 -143
  293. package/dist/lib/table/table-with-pagination.js.map +1 -0
  294. package/dist/lib/table/table-without-pagniation.d.ts +6 -0
  295. package/dist/lib/table/table-without-pagniation.js +36 -107
  296. package/dist/lib/table/table-without-pagniation.js.map +1 -0
  297. package/dist/lib/table-batch-operate/table-batch-operation.d.ts +9 -0
  298. package/dist/lib/table-batch-operate/table-batch-operation.js +14 -0
  299. package/dist/lib/table-batch-operate/table-batch-operation.js.map +1 -0
  300. package/dist/lib/table-batch-operate/use-batch-operate.d.ts +30 -0
  301. package/dist/lib/table-batch-operate/use-batch-operate.js +71 -0
  302. package/dist/lib/table-batch-operate/use-batch-operate.js.map +1 -0
  303. package/dist/lib/table-col-actions/index.d.ts +22 -0
  304. package/dist/lib/table-col-actions/index.js +34 -122
  305. package/dist/lib/table-col-actions/index.js.map +1 -0
  306. package/dist/lib/table-cols-config/index.d.ts +11 -0
  307. package/dist/lib/table-cols-config/index.js +57 -0
  308. package/dist/lib/table-cols-config/index.js.map +1 -0
  309. package/dist/lib/table-cols-config/type.d.ts +6 -0
  310. package/dist/lib/table-cols-config/type.js +2 -0
  311. package/dist/lib/table-cols-config/type.js.map +1 -0
  312. package/dist/lib/table-cols-config/use-hidden-col-keys.d.ts +5 -0
  313. package/dist/lib/table-cols-config/use-hidden-col-keys.js +32 -0
  314. package/dist/lib/table-cols-config/use-hidden-col-keys.js.map +1 -0
  315. package/dist/lib/table-cols-config/util.d.ts +3 -0
  316. package/dist/lib/table-cols-config/util.js +39 -0
  317. package/dist/lib/table-cols-config/util.js.map +1 -0
  318. package/dist/lib/table-empty/index.d.ts +2 -0
  319. package/dist/lib/table-empty/index.js +10 -0
  320. package/dist/lib/table-empty/index.js.map +1 -0
  321. package/dist/{table-header → lib/table-header}/index.d.ts +4 -2
  322. package/dist/lib/table-header/index.js +10 -95
  323. package/dist/lib/table-header/index.js.map +1 -0
  324. package/dist/lib/tabs/index.js +9 -74
  325. package/dist/lib/tabs/index.js.map +1 -0
  326. package/dist/lib/text-area-pro/index.d.ts +6 -0
  327. package/dist/lib/text-area-pro/index.js +10 -0
  328. package/dist/lib/text-area-pro/index.js.map +1 -0
  329. package/dist/lib/text-with-copy/index.js +23 -104
  330. package/dist/lib/text-with-copy/index.js.map +1 -0
  331. package/dist/lib/title-with-sub/index.d.ts +7 -0
  332. package/dist/lib/title-with-sub/index.js +6 -0
  333. package/dist/lib/title-with-sub/index.js.map +1 -0
  334. package/dist/{tooltip-with-disabled → lib/tooltip-when-disabled}/index.d.ts +2 -1
  335. package/dist/lib/tooltip-when-disabled/index.js +9 -0
  336. package/dist/lib/tooltip-when-disabled/index.js.map +1 -0
  337. package/dist/lib/tooltip-with-disabled/index.d.ts +5 -0
  338. package/dist/lib/tooltip-with-disabled/index.js +7 -69
  339. package/dist/lib/tooltip-with-disabled/index.js.map +1 -0
  340. package/dist/lib/tsconfig.build.tsbuildinfo +1 -0
  341. package/dist/lib/upload/index.js.map +1 -0
  342. package/dist/{user-profile → lib/user-profile}/index.d.ts +2 -1
  343. package/dist/lib/user-profile/index.js +21 -0
  344. package/dist/lib/user-profile/index.js.map +1 -0
  345. package/dist/{utils → lib/utils}/basic.d.ts +1 -0
  346. package/dist/lib/utils/basic.js +27 -76
  347. package/dist/lib/utils/basic.js.map +1 -0
  348. package/dist/lib/version-list/version-descriptions.js.map +1 -0
  349. package/dist/lib/version-list/version-item.js.map +1 -0
  350. package/dist/lib/version-list/version-list.js.map +1 -0
  351. package/dist/lib/version-list/version-switch-panel.js.map +1 -0
  352. package/eslint.config.js +7 -0
  353. package/package.json +29 -23
  354. package/rslib.config.js +7 -0
  355. package/script/publish.js +146 -0
  356. package/src/base-search-select/base-search-form-select.tsx +10 -0
  357. package/src/base-search-select/base-search-select.tsx +200 -0
  358. package/src/base-search-select/index.module.less +16 -0
  359. package/src/base-search-select/index.tsx +3 -0
  360. package/src/base-search-select/types.ts +16 -0
  361. package/src/base-search-select/utils.ts +78 -0
  362. package/src/basic-card/index.tsx +23 -0
  363. package/src/card-pane/index.module.less +14 -0
  364. package/src/card-pane/index.tsx +25 -0
  365. package/src/chip-select/index.module.less +17 -0
  366. package/src/chip-select/index.tsx +7 -0
  367. package/src/code-editor/index.tsx +9 -0
  368. package/src/code-usage/code-item.module.less +32 -0
  369. package/src/code-usage/index.tsx +91 -0
  370. package/src/codemirror-editor/code-editor.tsx +139 -0
  371. package/src/codemirror-editor/index.ts +4 -0
  372. package/src/codemirror-editor/json-editor.tsx +183 -0
  373. package/src/codemirror-editor/raw-text-editor.tsx +68 -0
  374. package/src/codemirror-editor/text-editor.tsx +58 -0
  375. package/src/codemirror-editor/themes/coze-dark.ts +116 -0
  376. package/src/codemirror-editor/themes/coze-light.ts +122 -0
  377. package/src/collapse-card/index.module.less +27 -0
  378. package/src/collapse-card/index.tsx +93 -0
  379. package/src/collapsible-card/index.module.less +63 -0
  380. package/src/collapsible-card/index.tsx +57 -0
  381. package/src/column-manage-storage/index.tsx +64 -0
  382. package/src/columns-select/index.tsx +244 -0
  383. package/src/edit-icon-button/index.tsx +36 -0
  384. package/src/footer-actions/index.tsx +33 -0
  385. package/src/hooks/use-infinite-scroll.ts +183 -0
  386. package/src/hooks/use-mouse-down-offset.ts +50 -0
  387. package/src/hooks/use-unsave-leave-warning.ts +49 -0
  388. package/src/id-render/icon-button-container.tsx +37 -0
  389. package/src/id-render/index.tsx +64 -0
  390. package/src/index-controller/record-navigation.tsx +57 -0
  391. package/src/index-controller/use-item-index-controller.ts +197 -0
  392. package/src/index.ts +208 -0
  393. package/src/infinite-scroll-table/index.tsx +99 -0
  394. package/src/info-tooltip/index.tsx +41 -0
  395. package/src/input-components/radio-button.tsx +63 -0
  396. package/src/input-slider/index.module.less +30 -0
  397. package/src/input-slider/index.tsx +161 -0
  398. package/src/input-with-count/index.tsx +31 -0
  399. package/src/jump-button/jump-icon-button.tsx +12 -0
  400. package/src/large-txt-render/index.tsx +46 -0
  401. package/src/layout/content.tsx +28 -0
  402. package/src/layout/header.tsx +15 -0
  403. package/src/layout/index.module.less +28 -0
  404. package/src/layout/index.tsx +9 -0
  405. package/src/layout/tabs.tsx +11 -0
  406. package/src/lazy-load-component/index.tsx +55 -0
  407. package/src/logic-editor/index.ts +3 -0
  408. package/src/logic-editor/logic-editor.module.less +13 -0
  409. package/src/logic-editor/logic-editor.tsx +200 -0
  410. package/src/logic-editor/logic-left-render.tsx +100 -0
  411. package/src/logic-editor/logic-operator-render.tsx +54 -0
  412. package/src/logic-editor/logic-right-render.tsx +51 -0
  413. package/src/logic-editor/logic-types.tsx +238 -0
  414. package/src/logic-editor/utils.ts +22 -0
  415. package/src/logic-expr/assets/select.svg +1 -0
  416. package/src/logic-expr/consts.ts +6 -0
  417. package/src/logic-expr/expr-group-render.tsx +238 -0
  418. package/src/logic-expr/expr-render.tsx +226 -0
  419. package/src/logic-expr/index.module.less +252 -0
  420. package/src/logic-expr/index.ts +13 -0
  421. package/src/logic-expr/logic-expr.tsx +261 -0
  422. package/src/logic-expr/logic-not.tsx +46 -0
  423. package/src/logic-expr/logic-toggle.tsx +96 -0
  424. package/src/logic-expr/types.ts +95 -0
  425. package/src/loop-radio-group/index.tsx +16 -0
  426. package/src/multi-part-editor/components/image-item-renderer.tsx +134 -0
  427. package/src/multi-part-editor/components/index.module.less +21 -0
  428. package/src/multi-part-editor/components/multipart-item-renderer.tsx +74 -0
  429. package/src/multi-part-editor/components/url-input-modal.tsx +317 -0
  430. package/src/multi-part-editor/components/video-item-renderer.tsx +145 -0
  431. package/src/multi-part-editor/index.module.less +8 -0
  432. package/src/multi-part-editor/index.tsx +571 -0
  433. package/src/multi-part-editor/multi-part-render.tsx +87 -0
  434. package/src/multi-part-editor/type.tsx +103 -0
  435. package/src/multi-part-editor/upload-button.tsx +256 -0
  436. package/src/multi-part-editor/utils.ts +64 -0
  437. package/src/open-detail-button/index.tsx +30 -0
  438. package/src/page-content/index.tsx +99 -0
  439. package/{dist/primary-page/index.js → src/primary-page/index.tsx} +0 -1
  440. package/src/primary-page/primary-header.tsx +64 -0
  441. package/src/primary-title/index.module.less +14 -0
  442. package/src/primary-title/index.tsx +18 -0
  443. package/src/provider/index.tsx +89 -0
  444. package/src/resizable-side-sheet/index.tsx +69 -0
  445. package/src/resize-sidesheet/index.module.less +14 -0
  446. package/src/resize-sidesheet/index.tsx +68 -0
  447. package/src/resize-sidesheet/use-drag.ts +43 -0
  448. package/src/schema-editor/index.tsx +52 -0
  449. package/src/search-form/index.tsx +134 -0
  450. package/src/semi-schema-form/components/tmpls/array-field-item.tsx +97 -0
  451. package/src/semi-schema-form/components/tmpls/array-field.tsx +127 -0
  452. package/src/semi-schema-form/components/tmpls/base-input.tsx +126 -0
  453. package/src/semi-schema-form/components/tmpls/description-field.tsx +23 -0
  454. package/src/semi-schema-form/components/tmpls/error-list.tsx +44 -0
  455. package/src/semi-schema-form/components/tmpls/field-error.tsx +33 -0
  456. package/src/semi-schema-form/components/tmpls/field.tsx +54 -0
  457. package/src/semi-schema-form/components/tmpls/icon-button.tsx +112 -0
  458. package/src/semi-schema-form/components/tmpls/index.ts +39 -0
  459. package/src/semi-schema-form/components/tmpls/object-field.tsx +173 -0
  460. package/src/semi-schema-form/components/tmpls/submit.tsx +31 -0
  461. package/src/semi-schema-form/components/tmpls/title-field.tsx +30 -0
  462. package/src/semi-schema-form/components/widgets/checkbox.tsx +67 -0
  463. package/src/semi-schema-form/components/widgets/checkboxs.tsx +100 -0
  464. package/src/semi-schema-form/components/widgets/index.ts +17 -0
  465. package/src/semi-schema-form/components/widgets/radio.tsx +105 -0
  466. package/src/semi-schema-form/components/widgets/range.tsx +73 -0
  467. package/src/semi-schema-form/components/widgets/select.tsx +108 -0
  468. package/src/semi-schema-form/components/widgets/textarea.tsx +63 -0
  469. package/src/semi-schema-form/index.tsx +14 -0
  470. package/src/sentinel-form/enum.ts +16 -0
  471. package/src/sentinel-form/index.tsx +382 -0
  472. package/src/step-nav/index.module.less +45 -0
  473. package/src/step-nav/index.tsx +53 -0
  474. package/src/table/index.module.less +144 -0
  475. package/src/table/index.tsx +18 -0
  476. package/src/table/sort-icon.tsx +73 -0
  477. package/src/table/table-with-pagination.tsx +150 -0
  478. package/src/table/table-without-pagniation.tsx +66 -0
  479. package/src/table-batch-operate/table-batch-operation.tsx +47 -0
  480. package/src/table-batch-operate/use-batch-operate.ts +111 -0
  481. package/src/table-col-actions/index.module.less +8 -0
  482. package/src/table-col-actions/index.tsx +149 -0
  483. package/src/table-cols-config/index.module.less +34 -0
  484. package/src/table-cols-config/index.tsx +171 -0
  485. package/src/table-cols-config/type.ts +12 -0
  486. package/src/table-cols-config/use-hidden-col-keys.ts +53 -0
  487. package/src/table-cols-config/util.ts +56 -0
  488. package/src/table-empty/index.tsx +23 -0
  489. package/src/table-header/index.module.less +7 -0
  490. package/src/table-header/index.tsx +70 -0
  491. package/src/tabs/index.module.less +48 -0
  492. package/src/tabs/index.tsx +9 -0
  493. package/src/text-area-pro/index.module.less +5 -0
  494. package/src/text-area-pro/index.tsx +49 -0
  495. package/src/text-with-copy/index.tsx +95 -0
  496. package/src/title-with-sub/index.tsx +27 -0
  497. package/src/tooltip-when-disabled/index.tsx +23 -0
  498. package/src/tooltip-with-disabled/index.tsx +17 -0
  499. package/src/types.d.ts +24 -0
  500. package/src/upload/index.ts +39 -0
  501. package/src/user-profile/index.tsx +49 -0
  502. package/src/utils/basic.ts +29 -0
  503. package/src/version-list/index.module.less +16 -0
  504. package/src/version-list/version-descriptions.tsx +80 -0
  505. package/src/version-list/version-item.tsx +30 -0
  506. package/src/version-list/version-list.tsx +59 -0
  507. package/src/version-list/version-switch-panel.tsx +31 -0
  508. package/tailwind.config.ts +6 -0
  509. package/tsconfig.build.json +44 -0
  510. package/tsconfig.json +17 -0
  511. package/tsconfig.misc.json +28 -0
  512. package/vitest.config.mts +7 -0
  513. package/dist/base-search-select/base-search-form-select.js.map +0 -1
  514. package/dist/base-search-select/base-search-select.js.map +0 -1
  515. package/dist/base-search-select/index.js.map +0 -1
  516. package/dist/base-search-select/utils.js.map +0 -1
  517. package/dist/code-editor/index.js.map +0 -1
  518. package/dist/collapse-card/index.js.map +0 -1
  519. package/dist/collapsible-card/index.js +0 -13
  520. package/dist/collapsible-card/index.js.map +0 -1
  521. package/dist/column-manage-storage/index.js +0 -48
  522. package/dist/column-manage-storage/index.js.map +0 -1
  523. package/dist/columns-select/index.js +0 -79
  524. package/dist/columns-select/index.js.map +0 -1
  525. package/dist/edit-icon-button/index.js.map +0 -1
  526. package/dist/es/collapsible-card/index.js +0 -45
  527. package/dist/es/collapsible-card/index.module.js +0 -5
  528. package/dist/es/collapsible-card/index_module.css +0 -48
  529. package/dist/es/column-manage-storage/index.js +0 -73
  530. package/dist/es/columns-select/index.js +0 -219
  531. package/dist/es/hooks/use-infinite-scroll.js +0 -178
  532. package/dist/es/hooks/use-mouse-down-offset.js +0 -41
  533. package/dist/es/id-render/icon-button-container.js +0 -61
  534. package/dist/es/id-render/index.js +0 -78
  535. package/dist/es/infinite-scroll-table/index.js +0 -98
  536. package/dist/es/input-slider/index.js +0 -123
  537. package/dist/es/input-slider/index.module.js +0 -5
  538. package/dist/es/input-slider/index_module.css +0 -21
  539. package/dist/es/large-txt-render/index.js +0 -38
  540. package/dist/es/page-content/index.js +0 -108
  541. package/dist/es/primary-page/index.js +0 -4
  542. package/dist/es/primary-page/primary-header.js +0 -38
  543. package/dist/es/resize-sidesheet/index.js +0 -100
  544. package/dist/es/resize-sidesheet/index.module.js +0 -5
  545. package/dist/es/resize-sidesheet/index_module.css +0 -9
  546. package/dist/es/resize-sidesheet/use-drag.js +0 -31
  547. package/dist/es/table/index.js +0 -56
  548. package/dist/es/table/index.module.js +0 -5
  549. package/dist/es/table/index_module.css +0 -90
  550. package/dist/es/table/sort-icon.js +0 -105
  551. package/dist/es/table/table-with-pagination.js +0 -112
  552. package/dist/es/table/table-without-pagniation.js +0 -74
  553. package/dist/es/table-col-actions/index.js +0 -103
  554. package/dist/es/table-header/index.js +0 -68
  555. package/dist/es/table-header/index.module.js +0 -5
  556. package/dist/es/table-header/index_module.css +0 -3
  557. package/dist/es/tabs/index.js +0 -42
  558. package/dist/es/tabs/index.module.js +0 -5
  559. package/dist/es/tabs/index_module.css +0 -37
  560. package/dist/es/text-with-copy/index.js +0 -71
  561. package/dist/es/tooltip-with-disabled/index.js +0 -49
  562. package/dist/es/utils/basic.js +0 -44
  563. package/dist/es/utils/rect.js +0 -37
  564. package/dist/hooks/use-infinite-scroll.js +0 -133
  565. package/dist/hooks/use-infinite-scroll.js.map +0 -1
  566. package/dist/hooks/use-mouse-down-offset.js +0 -39
  567. package/dist/hooks/use-mouse-down-offset.js.map +0 -1
  568. package/dist/id-render/icon-button-container.js +0 -6
  569. package/dist/id-render/icon-button-container.js.map +0 -1
  570. package/dist/id-render/index.js +0 -21
  571. package/dist/id-render/index.js.map +0 -1
  572. package/dist/index.d.ts +0 -19
  573. package/dist/index.js +0 -22
  574. package/dist/index.js.map +0 -1
  575. package/dist/infinite-scroll-table/index.js +0 -34
  576. package/dist/infinite-scroll-table/index.js.map +0 -1
  577. package/dist/info-tooltip/index.d.ts +0 -6
  578. package/dist/info-tooltip/index.js +0 -6
  579. package/dist/info-tooltip/index.js.map +0 -1
  580. package/dist/input-slider/index.js +0 -81
  581. package/dist/input-slider/index.js.map +0 -1
  582. package/dist/jump-button/jump-icon-button.js.map +0 -1
  583. package/dist/large-txt-render/index.js +0 -26
  584. package/dist/large-txt-render/index.js.map +0 -1
  585. package/dist/lib/collapsible-card/index.module.js +0 -25
  586. package/dist/lib/collapsible-card/index_module.css +0 -48
  587. package/dist/lib/input-slider/index.module.js +0 -25
  588. package/dist/lib/input-slider/index_module.css +0 -21
  589. package/dist/lib/resize-sidesheet/index.module.js +0 -25
  590. package/dist/lib/resize-sidesheet/index_module.css +0 -9
  591. package/dist/lib/table/index.module.js +0 -25
  592. package/dist/lib/table/index_module.css +0 -90
  593. package/dist/lib/table-header/index.module.js +0 -25
  594. package/dist/lib/table-header/index_module.css +0 -3
  595. package/dist/lib/tabs/index.module.js +0 -25
  596. package/dist/lib/tabs/index_module.css +0 -37
  597. package/dist/lib/utils/rect.js +0 -65
  598. package/dist/logic-expr/consts.d.ts +0 -4
  599. package/dist/logic-expr/consts.js.map +0 -1
  600. package/dist/logic-expr/expr-group-render.js.map +0 -1
  601. package/dist/logic-expr/expr-render.js.map +0 -1
  602. package/dist/logic-expr/index.js.map +0 -1
  603. package/dist/logic-expr/logic-expr.js.map +0 -1
  604. package/dist/logic-expr/logic-not.js.map +0 -1
  605. package/dist/logic-expr/logic-toggle.js.map +0 -1
  606. package/dist/open-detail-button/index.js.map +0 -1
  607. package/dist/page-content/index.js +0 -23
  608. package/dist/page-content/index.js.map +0 -1
  609. package/dist/primary-page/index.js.map +0 -1
  610. package/dist/primary-page/primary-header.d.ts +0 -10
  611. package/dist/primary-page/primary-header.js +0 -4
  612. package/dist/primary-page/primary-header.js.map +0 -1
  613. package/dist/resize-sidesheet/index.js +0 -15
  614. package/dist/resize-sidesheet/index.js.map +0 -1
  615. package/dist/resize-sidesheet/use-drag.js +0 -25
  616. package/dist/resize-sidesheet/use-drag.js.map +0 -1
  617. package/dist/route/route-back-action.d.ts +0 -6
  618. package/dist/route/route-back-action.js +0 -29
  619. package/dist/route/route-back-action.js.map +0 -1
  620. package/dist/table/index.js +0 -6
  621. package/dist/table/index.js.map +0 -1
  622. package/dist/table/sort-icon.js +0 -30
  623. package/dist/table/sort-icon.js.map +0 -1
  624. package/dist/table/table-with-pagination.js +0 -55
  625. package/dist/table/table-with-pagination.js.map +0 -1
  626. package/dist/table/table-without-pagniation.d.ts +0 -8
  627. package/dist/table/table-without-pagniation.js +0 -36
  628. package/dist/table/table-without-pagniation.js.map +0 -1
  629. package/dist/table-col-actions/index.d.ts +0 -17
  630. package/dist/table-col-actions/index.js +0 -24
  631. package/dist/table-col-actions/index.js.map +0 -1
  632. package/dist/table-header/index.js +0 -10
  633. package/dist/table-header/index.js.map +0 -1
  634. package/dist/tabs/index.js +0 -9
  635. package/dist/tabs/index.js.map +0 -1
  636. package/dist/text-with-copy/index.js +0 -21
  637. package/dist/text-with-copy/index.js.map +0 -1
  638. package/dist/tooltip-with-disabled/index.js +0 -9
  639. package/dist/tooltip-with-disabled/index.js.map +0 -1
  640. package/dist/tsconfig.build.tsbuildinfo +0 -1
  641. package/dist/types/collapsible-card/index.d.ts +0 -22
  642. package/dist/types/column-manage-storage/index.d.ts +0 -11
  643. package/dist/types/columns-select/index.d.ts +0 -29
  644. package/dist/types/hooks/use-infinite-scroll.d.ts +0 -23
  645. package/dist/types/hooks/use-mouse-down-offset.d.ts +0 -9
  646. package/dist/types/id-render/icon-button-container.d.ts +0 -12
  647. package/dist/types/id-render/index.d.ts +0 -13
  648. package/dist/types/index.d.ts +0 -19
  649. package/dist/types/infinite-scroll-table/index.d.ts +0 -19
  650. package/dist/types/input-slider/index.d.ts +0 -14
  651. package/dist/types/large-txt-render/index.d.ts +0 -4
  652. package/dist/types/page-content/index.d.ts +0 -36
  653. package/dist/types/primary-page/index.d.ts +0 -1
  654. package/dist/types/primary-page/primary-header.d.ts +0 -17
  655. package/dist/types/resize-sidesheet/index.d.ts +0 -6
  656. package/dist/types/resize-sidesheet/use-drag.d.ts +0 -10
  657. package/dist/types/table/index.d.ts +0 -2
  658. package/dist/types/table/sort-icon.d.ts +0 -13
  659. package/dist/types/table/table-with-pagination.d.ts +0 -14
  660. package/dist/types/table/table-without-pagniation.d.ts +0 -8
  661. package/dist/types/table-col-actions/index.d.ts +0 -21
  662. package/dist/types/table-header/index.d.ts +0 -20
  663. package/dist/types/tabs/index.d.ts +0 -2
  664. package/dist/types/text-with-copy/index.d.ts +0 -24
  665. package/dist/types/tooltip-with-disabled/index.d.ts +0 -9
  666. package/dist/types/utils/basic.d.ts +0 -1
  667. package/dist/types/utils/rect.d.ts +0 -10
  668. package/dist/upload/index.js.map +0 -1
  669. package/dist/user-profile/index.js +0 -16
  670. package/dist/user-profile/index.js.map +0 -1
  671. package/dist/user-select/index.d.ts +0 -0
  672. package/dist/user-select/index.js +0 -188
  673. package/dist/user-select/index.js.map +0 -1
  674. package/dist/user-select/user-info.d.ts +0 -8
  675. package/dist/user-select/user-info.js +0 -16
  676. package/dist/user-select/user-info.js.map +0 -1
  677. package/dist/utils/basic.js +0 -24
  678. package/dist/utils/basic.js.map +0 -1
  679. package/dist/utils/rect.d.ts +0 -10
  680. package/dist/utils/rect.js +0 -35
  681. package/dist/utils/rect.js.map +0 -1
  682. package/dist/version-list/version-descriptions.js.map +0 -1
  683. package/dist/version-list/version-item.js.map +0 -1
  684. package/dist/version-list/version-list.js.map +0 -1
  685. package/dist/version-list/version-switch-panel.js.map +0 -1
  686. /package/dist/{base-search-select → lib/base-search-select}/base-search-form-select.d.ts +0 -0
  687. /package/dist/{base-search-select → lib/base-search-select}/base-search-form-select.js +0 -0
  688. /package/dist/{base-search-select → lib/base-search-select}/base-search-select.d.ts +0 -0
  689. /package/dist/{base-search-select → lib/base-search-select}/index.js +0 -0
  690. /package/dist/{base-search-select → lib/base-search-select}/types.js +0 -0
  691. /package/dist/{base-search-select → lib/base-search-select}/utils.js +0 -0
  692. /package/dist/{code-editor → lib/code-editor}/index.d.ts +0 -0
  693. /package/dist/{collapsible-card → lib/collapsible-card}/index.d.ts +0 -0
  694. /package/dist/{columns-select → lib/columns-select}/index.d.ts +0 -0
  695. /package/dist/{hooks → lib/hooks}/use-infinite-scroll.d.ts +0 -0
  696. /package/dist/{hooks → lib/hooks}/use-mouse-down-offset.d.ts +0 -0
  697. /package/dist/{id-render → lib/id-render}/index.d.ts +0 -0
  698. /package/dist/{infinite-scroll-table → lib/infinite-scroll-table}/index.d.ts +0 -0
  699. /package/dist/{large-txt-render → lib/large-txt-render}/index.d.ts +0 -0
  700. /package/dist/{logic-expr → lib/logic-expr}/consts.js +0 -0
  701. /package/dist/{logic-expr → lib/logic-expr}/expr-group-render.d.ts +0 -0
  702. /package/dist/{logic-expr → lib/logic-expr}/expr-render.d.ts +0 -0
  703. /package/dist/{logic-expr → lib/logic-expr}/index.d.ts +0 -0
  704. /package/dist/{logic-expr → lib/logic-expr}/index.js +0 -0
  705. /package/dist/{logic-expr → lib/logic-expr}/logic-expr.d.ts +0 -0
  706. /package/dist/{logic-expr → lib/logic-expr}/logic-not.d.ts +0 -0
  707. /package/dist/{logic-expr → lib/logic-expr}/logic-toggle.d.ts +0 -0
  708. /package/dist/{logic-expr → lib/logic-expr}/types.d.ts +0 -0
  709. /package/dist/{logic-expr → lib/logic-expr}/types.js +0 -0
  710. /package/dist/{open-detail-button → lib/open-detail-button}/index.d.ts +0 -0
  711. /package/dist/{open-detail-button → lib/open-detail-button}/index.js +0 -0
  712. /package/dist/{page-content → lib/page-content}/index.d.ts +0 -0
  713. /package/dist/{primary-page → lib/primary-page}/index.d.ts +0 -0
  714. /package/dist/{table → lib/table}/index.d.ts +0 -0
  715. /package/dist/{table → lib/table}/sort-icon.d.ts +0 -0
  716. /package/dist/{tabs → lib/tabs}/index.d.ts +0 -0
  717. /package/dist/{text-with-copy → lib/text-with-copy}/index.d.ts +0 -0
  718. /package/dist/{upload → lib/upload}/index.d.ts +0 -0
  719. /package/dist/{upload → lib/upload}/index.js +0 -0
  720. /package/dist/{version-list → lib/version-list}/version-descriptions.d.ts +0 -0
  721. /package/dist/{version-list → lib/version-list}/version-descriptions.js +0 -0
  722. /package/dist/{version-list → lib/version-list}/version-item.d.ts +0 -0
  723. /package/dist/{version-list → lib/version-list}/version-item.js +0 -0
  724. /package/dist/{version-list → lib/version-list}/version-list.d.ts +0 -0
  725. /package/dist/{version-list → lib/version-list}/version-list.js +0 -0
  726. /package/dist/{version-list → lib/version-list}/version-switch-panel.d.ts +0 -0
  727. /package/dist/{version-list → lib/version-list}/version-switch-panel.js +0 -0
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Form, Typography } from '@coze-arch/coze-design';
3
+ /** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
4
+ * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.
5
+ *
6
+ * @param props - The `FieldTemplateProps` for this component
7
+ */
8
+ export default function FieldTemplate(props) {
9
+ const { children, description, rawErrors, hidden, label, rawDescription, required, } = props;
10
+ if (hidden) {
11
+ return _jsx("div", { className: "field-hidden", children: children });
12
+ }
13
+ // check to see if there is rawDescription(string) before using description(ReactNode)
14
+ // to prevent showing a blank description area
15
+ const descriptionNode = rawDescription ? description : undefined;
16
+ return (_jsxs(Form.Slot, { label: { text: label, required }, className: "mb-4", error: {
17
+ error: rawErrors,
18
+ validateStatus: rawErrors?.length ? 'error' : undefined,
19
+ }, children: [children, _jsx(Typography.Paragraph, { className: "text-xs w-full text-gray-500", children: descriptionNode })] }));
20
+ }
21
+ //# sourceMappingURL=field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/tmpls/field.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAInC,KAAkC;IAClC,MAAM,EACJ,QAAQ,EACR,WAAW,EACX,SAAS,EACT,MAAM,EACN,KAAK,EACL,cAAc,EACd,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,cAAK,SAAS,EAAC,cAAc,YAAE,QAAQ,GAAO,CAAC;IACxD,CAAC;IAED,sFAAsF;IACtF,8CAA8C;IAC9C,MAAM,eAAe,GAAG,cAAc,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;IAEjE,OAAO,CACL,MAAC,IAAI,CAAC,IAAI,IACR,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAChC,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE;YACL,KAAK,EAAE,SAAS;YAChB,cAAc,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;SACxD,aAEA,QAAQ,EAET,KAAC,UAAU,CAAC,SAAS,IAAC,SAAS,EAAC,8BAA8B,YAC3D,eAAe,GACK,IACb,CACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type FormContextType, type IconButtonProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ import { type IconButtonProps as SemiIconBaseButtonProps } from '@coze-arch/coze-design';
3
+ export type BaseIconButtonProps<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object> = Omit<IconButtonProps<T, S, F>, 'type' | 'color'>;
4
+ type IconButtonComponent = <T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: BaseIconButtonProps<T, S, F>) => JSX.Element;
5
+ export default function BaseIconButton<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: BaseIconButtonProps<T, S, F> & SemiIconBaseButtonProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare const AddButton: IconButtonComponent;
7
+ export declare const CopyButton: IconButtonComponent;
8
+ export declare const MoveDownButton: IconButtonComponent;
9
+ export declare const MoveUpButton: IconButtonComponent;
10
+ export declare const RemoveButton: IconButtonComponent;
11
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { TranslatableString, } from '@rjsf/utils';
3
+ import { IconCozCopy, IconCozLongArrowUp, IconCozPlusCircle, IconCozTrashCan, } from '@coze-arch/coze-design/icons';
4
+ import { IconButton, } from '@coze-arch/coze-design';
5
+ export default function BaseIconButton(props) {
6
+ const { iconType, icon, onClick, uiSchema, registry, style, ...otherProps } = props;
7
+ return (_jsx(IconButton, { onClick: onClick, icon: icon, ...otherProps, size: "small" }));
8
+ }
9
+ export const AddButton = props => {
10
+ const { registry: { translateString }, } = props;
11
+ return (_jsx(BaseIconButton, { title: translateString(TranslatableString.AddItemButton), ...props, icon: _jsx(IconCozPlusCircle, {}) }));
12
+ };
13
+ export const CopyButton = props => {
14
+ const { registry: { translateString }, } = props;
15
+ return (_jsx(BaseIconButton, { title: translateString(TranslatableString.CopyButton), ...props, icon: _jsx(IconCozCopy, {}) }));
16
+ };
17
+ export const MoveDownButton = props => {
18
+ const { registry: { translateString }, } = props;
19
+ return (_jsx(BaseIconButton, { title: translateString(TranslatableString.MoveDownButton), ...props, icon: _jsx(IconCozLongArrowUp, { className: "rotate-180" }) }));
20
+ };
21
+ export const MoveUpButton = props => {
22
+ const { registry: { translateString }, } = props;
23
+ return (_jsx(BaseIconButton, { title: translateString(TranslatableString.MoveUpButton), ...props, icon: _jsx(IconCozLongArrowUp, {}) }));
24
+ };
25
+ export const RemoveButton = props => {
26
+ const { registry: { translateString }, } = props;
27
+ return (_jsx(BaseIconButton, { title: translateString(TranslatableString.RemoveButton), ...props, type: "danger", icon: _jsx(IconCozTrashCan, {}) }));
28
+ };
29
+ //# sourceMappingURL=icon-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/tmpls/icon-button.tsx"],"names":[],"mappings":";AAEA,OAAO,EAKL,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,UAAU,GAEX,MAAM,wBAAwB,CAAC;AAgBhC,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,KAA6D;IAC7D,MAAM,EAAE,QAA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EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,cAAc,IACb,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,KACnD,KAAK,EACT,IAAI,EAAE,KAAC,kBAAkB,KAAG,GAC5B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAwB,KAAK,CAAC,EAAE;IACvD,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,cAAc,IACb,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,KACnD,KAAK,EACT,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,KAAC,eAAe,KAAG,GACzB,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type TemplatesType } from '@rjsf/utils';
2
+ export declare const templates: Partial<TemplatesType>;
@@ -0,0 +1,31 @@
1
+ import TitleFieldTemplate from './title-field';
2
+ import SubmitButton from './submit';
3
+ import ObjectFieldTemplate from './object-field';
4
+ import { AddButton, CopyButton, MoveDownButton, MoveUpButton, RemoveButton, } from './icon-button';
5
+ import FieldErrorTemplate from './field-error';
6
+ import FieldTemplate from './field';
7
+ import ErrorListTemplate from './error-list';
8
+ import DescriptionFieldTemplate from './description-field';
9
+ import BaseInputTemplate from './base-input';
10
+ import ArrayFieldItemTemplate from './array-field-item';
11
+ import ArrayFieldTemplate from './array-field';
12
+ export const templates = {
13
+ ArrayFieldTemplate,
14
+ ArrayFieldItemTemplate,
15
+ BaseInputTemplate,
16
+ FieldTemplate,
17
+ ObjectFieldTemplate,
18
+ ButtonTemplates: {
19
+ AddButton,
20
+ CopyButton,
21
+ MoveDownButton,
22
+ MoveUpButton,
23
+ RemoveButton,
24
+ SubmitButton,
25
+ },
26
+ TitleFieldTemplate,
27
+ DescriptionFieldTemplate,
28
+ FieldErrorTemplate,
29
+ ErrorListTemplate,
30
+ };
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/tmpls/index.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,MAAM,eAAe,CAAC;AAC/C,OAAO,YAAY,MAAM,UAAU,CAAC;AACpC,OAAO,mBAAmB,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,YAAY,EACZ,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,kBAAkB,MAAM,eAAe,CAAC;AAC/C,OAAO,aAAa,MAAM,SAAS,CAAC;AACpC,OAAO,iBAAiB,MAAM,cAAc,CAAC;AAC7C,OAAO,wBAAwB,MAAM,qBAAqB,CAAC;AAC3D,OAAO,iBAAiB,MAAM,cAAc,CAAC;AAC7C,OAAO,sBAAsB,MAAM,oBAAoB,CAAC;AACxD,OAAO,kBAAkB,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,SAAS,GAA2B;IAC/C,kBAAkB;IAClB,sBAAsB;IACtB,iBAAiB;IACjB,aAAa;IACb,mBAAmB;IACnB,eAAe,EAAE;QACf,SAAS;QACT,UAAU;QACV,cAAc;QACd,YAAY;QACZ,YAAY;QACZ,YAAY;KACb;IACD,kBAAkB;IAClB,wBAAwB;IACxB,kBAAkB;IAClB,iBAAiB;CAClB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type FormContextType, type ObjectFieldTemplateProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
3
+ * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
4
+ * the properties.
5
+ *
6
+ * @param props - The `ObjectFieldTemplateProps` for this component
7
+ */
8
+ export default function ObjectFieldTemplate<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: ObjectFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,81 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { isString, isObject, isNumber } from 'lodash-es';
3
+ import { canExpand,
4
+ // descriptionId,
5
+ // getTemplate,
6
+ getUiOptions,
7
+ // titleId,
8
+ } from '@rjsf/utils';
9
+ import { Col, Row, TextArea } from '@coze-arch/coze-design';
10
+ // const DESCRIPTION_COL_STYLE = {
11
+ // paddingBottom: '8px',
12
+ // };
13
+ /** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
14
+ * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
15
+ * the properties.
16
+ *
17
+ * @param props - The `ObjectFieldTemplateProps` for this component
18
+ */
19
+ export default function ObjectFieldTemplate(props) {
20
+ const {
21
+ // description,
22
+ disabled, formContext, formData, idSchema, onAddClick, properties, readonly,
23
+ // required,
24
+ registry, schema,
25
+ // title,
26
+ uiSchema, } = props;
27
+ // const uiOptions = getUiOptions<T, S, F>(uiSchema);
28
+ // const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>(
29
+ // 'TitleFieldTemplate',
30
+ // registry,
31
+ // uiOptions,
32
+ // );
33
+ // const DescriptionFieldTemplate = getTemplate<
34
+ // 'DescriptionFieldTemplate',
35
+ // T,
36
+ // S,
37
+ // F
38
+ // >('DescriptionFieldTemplate', registry, uiOptions);
39
+ // Button templates are not overridden in the uiSchema
40
+ const { ButtonTemplates: { AddButton }, } = registry.templates;
41
+ const { colSpan = 24, rowGutter = 24 } = formContext;
42
+ const findSchema = (element) => element.content.props.schema;
43
+ const findSchemaType = (element) => findSchema(element).type;
44
+ const findUiSchema = (element) => element.content.props.uiSchema;
45
+ const findUiSchemaField = (element) => getUiOptions(findUiSchema(element)).field;
46
+ const findUiSchemaWidget = (element) => getUiOptions(findUiSchema(element)).widget;
47
+ const calculateColSpan = (element) => {
48
+ const type = findSchemaType(element);
49
+ const field = findUiSchemaField(element);
50
+ const widget = findUiSchemaWidget(element);
51
+ const defaultColSpan = properties.length < 2 || // Single or no field in object.
52
+ type === 'object' ||
53
+ type === 'array' ||
54
+ widget === 'textarea'
55
+ ? 24
56
+ : 12;
57
+ if (isObject(colSpan)) {
58
+ const colSpanObj = colSpan;
59
+ if (isString(widget)) {
60
+ return colSpanObj[widget];
61
+ }
62
+ if (isString(field)) {
63
+ return colSpanObj[field];
64
+ }
65
+ if (isString(type)) {
66
+ return colSpanObj[type];
67
+ }
68
+ }
69
+ if (isNumber(colSpan)) {
70
+ return colSpan;
71
+ }
72
+ return defaultColSpan;
73
+ };
74
+ if (!props.properties.length) {
75
+ return _jsx(TextArea, { id: idSchema.$id });
76
+ }
77
+ return (_jsxs("fieldset", { id: idSchema.$id, className: 'p-3 semi-card-bordered rounded-[4px]', children: [_jsx(Row, { gutter: rowGutter, children: properties
78
+ .filter(e => !e.hidden)
79
+ .map((element) => (_jsx(Col, { span: calculateColSpan(element), children: element.content }, element.name))) }), canExpand(schema, uiSchema, formData) && (_jsx(Col, { span: 24, children: _jsx(Row, { gutter: rowGutter, justify: "end", children: _jsx(Col, { span: 6, children: _jsx(AddButton, { className: "object-property-expand", disabled: disabled || readonly, onClick: onAddClick(schema), uiSchema: uiSchema, registry: registry }) }) }) }))] }));
80
+ }
81
+ //# sourceMappingURL=object-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-field.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/tmpls/object-field.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAQL,SAAS;AACT,iBAAiB;AACjB,eAAe;AACf,YAAY;AACZ,WAAW;EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAE5D,kCAAkC;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MAAM,CAAC;qBACtB,GAAG,CAAC,CAAC,OAAwC,EAAE,EAAE,CAAC,CACjD,KAAC,GAAG,IAAoB,IAAI,EAAE,gBAAgB,CAAC,OAAO,CAAC,YACpD,OAAO,CAAC,OAAO,IADR,OAAO,CAAC,IAAI,CAEhB,CACP,CAAC,GACA,EAEL,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CACxC,KAAC,GAAG,IAAC,IAAI,EAAE,EAAE,YACX,KAAC,GAAG,IAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAC,KAAK,YACnC,KAAC,GAAG,IAAC,IAAI,EAAE,CAAC,YACV,KAAC,SAAS,IACR,SAAS,EAAC,wBAAwB,EAClC,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,EAC3B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACE,GACF,GACF,CACP,IACQ,CACZ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type SubmitButtonProps } from '@rjsf/utils';
2
+ /** The `SubmitButton` renders a button that represent the `Submit` action on a form
3
+ */
4
+ export default function SubmitButton<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ uiSchema }: SubmitButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getSubmitButtonOptions, } from '@rjsf/utils';
3
+ import { Button } from '@coze-arch/coze-design';
4
+ /** The `SubmitButton` renders a button that represent the `Submit` action on a form
5
+ */
6
+ export default function SubmitButton({ uiSchema }) {
7
+ const { submitText, norender, props: submitButtonProps, } = getSubmitButtonOptions(uiSchema);
8
+ if (norender) {
9
+ return null;
10
+ }
11
+ return (_jsx(Button, { type: "primary", ...submitButtonProps, htmlType: "submit", children: submitText }));
12
+ }
13
+ //# sourceMappingURL=submit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submit.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/tmpls/submit.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,sBAAsB,GAKvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD;GACG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAIlC,EAAE,QAAQ,EAA8B;IACxC,MAAM,EACJ,UAAU,EACV,QAAQ,EACR,KAAK,EAAE,iBAAiB,GACzB,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IACrC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,KAAC,MAAM,IAAC,IAAI,EAAC,SAAS,KAAK,iBAAiB,EAAE,QAAQ,EAAC,QAAQ,YAC5D,UAAU,GACJ,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type FormContextType, type TitleFieldProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `TitleField` is the template to use to render the title of a field
3
+ *
4
+ * @param props - The `TitleFieldProps` for this component
5
+ */
6
+ export default function TitleField<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ id, uiSchema, title }: TitleFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getUiOptions, } from '@rjsf/utils';
3
+ import { Typography } from '@coze-arch/coze-design';
4
+ /** The `TitleField` is the template to use to render the title of a field
5
+ *
6
+ * @param props - The `TitleFieldProps` for this component
7
+ */
8
+ export default function TitleField({ id, uiSchema, title }) {
9
+ const uiOptions = getUiOptions(uiSchema);
10
+ return (_jsxs("div", { id: id, className: "my-1", children: [_jsx(Typography.Title, { heading: 5, children: uiOptions.title || title }), _jsx("hr", { className: "border-0 bg-secondary", style: { height: '1px' } })] }));
11
+ }
12
+ //# sourceMappingURL=title-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"title-field.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/tmpls/title-field.tsx"],"names":[],"mappings":";AACA,OAAO,EAKL,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAIhC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAA4B;IACjD,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAElD,OAAO,CACL,eAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,MAAM,aAC3B,KAAC,UAAU,CAAC,KAAK,IAAC,OAAO,EAAE,CAAC,YACzB,SAAS,CAAC,KAAK,IAAI,KAAK,GACR,EACnB,aAAI,SAAS,EAAC,uBAAuB,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAI,IAC9D,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `CheckBoxWidget` is a widget for rendering boolean properties.
3
+ * It is typically used to represent a boolean.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function CheckboxWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, } from '@rjsf/utils';
3
+ import { Checkbox } from '@coze-arch/coze-design';
4
+ /** The `CheckBoxWidget` is a widget for rendering boolean properties.
5
+ * It is typically used to represent a boolean.
6
+ *
7
+ * @param props - The `WidgetProps` for this component
8
+ */
9
+ export default function CheckboxWidget(props) {
10
+ const { autofocus, disabled, formContext, id,
11
+ // label,
12
+ // hideLabel,
13
+ onBlur, onChange, onFocus, readonly, value, } = props;
14
+ const { readonlyAsDisabled = true } = formContext;
15
+ const handleChange = ({ target }) => onChange(target.checked);
16
+ const handleBlur = ({ target }) => onBlur(id, target && target.checked);
17
+ const handleFocus = ({ target }) => onFocus(id, target && target.checked);
18
+ // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,
19
+ // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors
20
+ const extraProps = {
21
+ onBlur: !readonly ? handleBlur : undefined,
22
+ onFocus: !readonly ? handleFocus : undefined,
23
+ };
24
+ return (_jsx(Checkbox, { autoFocus: autofocus, checked: typeof value === 'undefined' ? false : value, disabled: disabled || (readonlyAsDisabled && readonly), id: id, onChange: !readonly ? handleChange : undefined, ...extraProps, "aria-describedby": ariaDescribedByIds(id) }));
25
+ }
26
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/widgets/checkbox.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,GAOnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAsB,MAAM,wBAAwB,CAAC;AAEtE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,KAA2B;IAC3B,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,WAAW,EACX,EAAE;IACF,SAAS;IACT,aAAa;IACb,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,KAAK,GACN,GAAG,KAAK,CAAC;IACV,MAAM,EAAE,kBAAkB,GAAG,IAAI,EAAE,GAAG,WAAgC,CAAC;IAEvE,MAAM,YAAY,GAA8B,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAC7D,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE3B,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAC9D,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IAEvC,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAC/D,OAAO,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IAExC,iHAAiH;IACjH,8GAA8G;IAC9G,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;QAC1C,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;KAC7C,CAAC;IACF,OAAO,CACL,KAAC,QAAQ,IACP,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EACrD,QAAQ,EAAE,QAAQ,IAAI,CAAC,kBAAkB,IAAI,QAAQ,CAAC,EACtD,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,KAC1C,UAAU,sBACI,kBAAkB,CAAI,EAAE,CAAC,GAGlC,CACZ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type WidgetProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `CheckboxesWidget` is a widget for rendering checkbox groups.
3
+ * It is typically used to represent an array of enums.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function CheckboxesWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, enumOptionsIndexForValue, enumOptionsValueForIndex, optionId, } from '@rjsf/utils';
3
+ import { Checkbox } from '@coze-arch/coze-design';
4
+ /** The `CheckboxesWidget` is a widget for rendering checkbox groups.
5
+ * It is typically used to represent an array of enums.
6
+ *
7
+ * @param props - The `WidgetProps` for this component
8
+ */
9
+ export default function CheckboxesWidget({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }) {
10
+ const { readonlyAsDisabled = true } = formContext;
11
+ const { enumOptions, enumDisabled, inline, emptyValue } = options;
12
+ const handleChange = nextValue => onChange(enumOptionsValueForIndex(nextValue, enumOptions, emptyValue));
13
+ const handleBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex(target.value, enumOptions, emptyValue));
14
+ const handleFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex(target.value, enumOptions, emptyValue));
15
+ // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,
16
+ // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors
17
+ const extraProps = {
18
+ id,
19
+ onBlur: !readonly ? handleBlur : undefined,
20
+ onFocus: !readonly ? handleFocus : undefined,
21
+ };
22
+ const selectedIndexes = enumOptionsIndexForValue(value, enumOptions, true);
23
+ return Array.isArray(enumOptions) && enumOptions.length > 0 ? (_jsx(_Fragment, { children: _jsx(Checkbox.Group, { disabled: disabled || (readonlyAsDisabled && readonly), name: id, onChange: !readonly ? handleChange : undefined, value: selectedIndexes, ...extraProps, "aria-describedby": ariaDescribedByIds(id), children: Array.isArray(enumOptions) &&
24
+ enumOptions.map((option, i) => (_jsxs("span", { children: [_jsx(Checkbox, { id: optionId(id, i), autoFocus: i === 0 ? autofocus : false, disabled: Array.isArray(enumDisabled) &&
25
+ enumDisabled.indexOf(option.value) !== -1, value: String(i), children: option.label }), !inline && _jsx("br", {})] }, i))) }) })) : null;
26
+ }
27
+ //# sourceMappingURL=checkboxs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkboxs.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/widgets/checkboxs.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,QAAQ,GAMT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAA2B,MAAM,wBAAwB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,EACA,SAAS,EACT,QAAQ,EACR,WAAW,EACX,EAAE,EACF,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,KAAK,GACgB;IACrB,MAAM,EAAE,kBAAkB,GAAG,IAAI,EAAE,GAAG,WAAgC,CAAC;IAEvE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAElE,MAAM,YAAY,GAAmC,SAAS,CAAC,EAAE,CAC/D,QAAQ,CAAC,wBAAwB,CAAI,SAAS,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;IAE5E,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAC9D,MAAM,CACJ,EAAE,EACF,wBAAwB,CAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,CACnE,CAAC;IAEJ,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAC/D,OAAO,CACL,EAAE,EACF,wBAAwB,CAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,CACnE,CAAC;IAEJ,iHAAiH;IACjH,8GAA8G;IAC9G,MAAM,UAAU,GAAG;QACjB,EAAE;QACF,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,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/utils';
2
+ export declare const widgets: RegistryWidgetsType;
@@ -0,0 +1,15 @@
1
+ import TextAreaWidget from './textarea';
2
+ import SelectWidget from './select';
3
+ import RangeWidget from './range';
4
+ import RadioWidget from './radio';
5
+ import CheckboxesWidget from './checkboxs';
6
+ import CheckboxWidget from './checkbox';
7
+ export const widgets = {
8
+ TextAreaWidget,
9
+ SelectWidget,
10
+ CheckboxWidget,
11
+ CheckboxesWidget,
12
+ RadioWidget,
13
+ RangeWidget,
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/widgets/index.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,YAAY,CAAC;AACxC,OAAO,YAAY,MAAM,UAAU,CAAC;AACpC,OAAO,WAAW,MAAM,SAAS,CAAC;AAClC,OAAO,WAAW,MAAM,SAAS,CAAC;AAClC,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,cAAc,MAAM,YAAY,CAAC;AAExC,MAAM,CAAC,MAAM,OAAO,GAAwB;IAC1C,cAAc;IACd,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,WAAW;IACX,WAAW;CACZ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `RadioWidget` is a widget for rendering a radio group.
3
+ * It is typically used with a string property constrained with enum options.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function RadioWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, enumOptionsIndexForValue, enumOptionsValueForIndex, } from '@rjsf/utils';
3
+ import { Radio } from '@coze-arch/coze-design';
4
+ /** The `RadioWidget` is a widget for rendering a radio group.
5
+ * It is typically used with a string property constrained with enum options.
6
+ *
7
+ * @param props - The `WidgetProps` for this component
8
+ */
9
+ export default function RadioWidget({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }) {
10
+ const { readonlyAsDisabled = true } = formContext;
11
+ const { enumOptions, enumDisabled, emptyValue } = options;
12
+ const handleChange = ({ target: { value: nextValue }, }) => onChange(enumOptionsValueForIndex(nextValue, enumOptions, emptyValue));
13
+ const handleBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
14
+ const handleFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
15
+ const selectedIndexes = enumOptionsIndexForValue(value, enumOptions);
16
+ // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,
17
+ // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors
18
+ const extraProps = {
19
+ onBlur: !readonly ? handleBlur : undefined,
20
+ onFocus: !readonly ? handleFocus : undefined,
21
+ };
22
+ return (_jsx(Radio.Group, { disabled: disabled || (readonlyAsDisabled && readonly), id: id, name: id, onChange: !readonly ? handleChange : undefined, ...extraProps, value: selectedIndexes, "aria-describedby": ariaDescribedByIds(id), children: Array.isArray(enumOptions) &&
23
+ enumOptions.map((option, i) => (_jsx(Radio, { name: id, autoFocus: i === 0 ? autofocus : false, disabled: disabled ||
24
+ (Array.isArray(enumDisabled) &&
25
+ enumDisabled.indexOf(option.value) !== -1), value: String(i), children: option.label }, i))) }));
26
+ }
27
+ //# sourceMappingURL=radio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/widgets/radio.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,GAMzB,MAAM,aAAa,CAAC;AACrB,OAA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Q,EAAE,QAAQ,IAAI,CAAC,kBAAkB,IAAI,QAAQ,CAAC,EACtD,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,EAAE,EACR,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,KAC1C,UAAU,EACd,KAAK,EAAE,eAAe,sBACJ,kBAAkB,CAAI,EAAE,CAAC,YAE1C,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;YACzB,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAC7B,KAAC,KAAK,IACJ,IAAI,EAAE,EAAE,EACR,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EACtC,QAAQ,EACN,QAAQ;oBACR,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;wBAC1B,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAG9C,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,YAEf,MAAM,CAAC,KAAK,IAHR,CAAC,CAIA,CACT,CAAC,GACQ,CACf,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
3
+ * in a div, with the value along side it.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function RangeWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, rangeSpec, } from '@rjsf/utils';
3
+ import { Slider } from '@coze-arch/coze-design';
4
+ /** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
5
+ * in a div, with the value along side it.
6
+ *
7
+ * @param props - The `WidgetProps` for this component
8
+ */
9
+ export default function RangeWidget(props) {
10
+ const { autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, schema, value, } = props;
11
+ const { readonlyAsDisabled = true } = formContext;
12
+ const { min, max, step } = rangeSpec(schema);
13
+ const emptyValue = options.emptyValue || '';
14
+ const handleChange = nextValue => onChange(typeof nextValue === 'undefined' ? emptyValue : nextValue);
15
+ const handleBlur = () => onBlur(id, value);
16
+ const handleFocus = () => onFocus(id, value);
17
+ // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,
18
+ // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors
19
+ const extraProps = {
20
+ placeholder,
21
+ onBlur: !readonly ? handleBlur : undefined,
22
+ onFocus: !readonly ? handleFocus : undefined,
23
+ };
24
+ return (_jsx(Slider, { autoFocus: autofocus, disabled: disabled || (readonlyAsDisabled && readonly), id: id, max: max, min: min, onChange: !readonly ? handleChange : undefined, range: false, step: step, value: value, ...extraProps, "aria-describedby": ariaDescribedByIds(id) }));
25
+ }
26
+ //# sourceMappingURL=range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/widgets/range.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAClB,SAAS,GAMV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAIjC,KAA2B;IAC3B,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,WAAW,EACX,EAAE,EACF,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,QAAQ,EACR,MAAM,EACN,KAAK,GACN,GAAG,KAAK,CAAC;IACV,MAAM,EAAE,kBAAkB,GAAG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rjsf/utils';
2
+ /** The `SelectWidget` is a widget for rendering dropdowns.
3
+ * It is typically used with string properties constrained with enum options.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function SelectWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ autofocus, disabled, formContext, id, multiple, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
3
+ import { ariaDescribedByIds, enumOptionsIndexForValue, enumOptionsValueForIndex, } from '@rjsf/utils';
4
+ import { Select, } from '@coze-arch/coze-design';
5
+ const SELECT_STYLE = {
6
+ width: '100%',
7
+ };
8
+ /** The `SelectWidget` is a widget for rendering dropdowns.
9
+ * It is typically used with string properties constrained with enum options.
10
+ *
11
+ * @param props - The `WidgetProps` for this component
12
+ */
13
+ export default function SelectWidget({ autofocus, disabled, formContext = {}, id, multiple, onBlur, onChange, onFocus, options, placeholder, readonly, value, }) {
14
+ const { readonlyAsDisabled = true } = formContext;
15
+ const { enumOptions, enumDisabled, emptyValue } = options;
16
+ const handleChange = nextValue => {
17
+ if (typeof nextValue === 'object' && !Array.isArray(nextValue)) {
18
+ throw new Error('Object type value is not supported');
19
+ }
20
+ else {
21
+ onChange(typeof nextValue === 'undefined'
22
+ ? undefined
23
+ : enumOptionsValueForIndex(nextValue, enumOptions, emptyValue));
24
+ }
25
+ };
26
+ const handleBlur = () => onBlur(id, enumOptionsValueForIndex(value, enumOptions, emptyValue));
27
+ const handleFocus = () => onFocus(id, enumOptionsValueForIndex(value, enumOptions, emptyValue));
28
+ const selectedIndexes = enumOptionsIndexForValue(value, enumOptions, multiple);
29
+ const selectOptions = useMemo(() => {
30
+ if (Array.isArray(enumOptions)) {
31
+ const opts = enumOptions.map(({ value: optionValue, label: optionLabel }, index) => ({
32
+ disabled: Array.isArray(enumDisabled) &&
33
+ enumDisabled.indexOf(optionValue) !== -1,
34
+ key: String(index),
35
+ value: String(index),
36
+ label: optionLabel,
37
+ }));
38
+ return opts;
39
+ }
40
+ return undefined;
41
+ }, [enumDisabled, enumOptions]);
42
+ return (_jsx(Select, { autoFocus: autofocus, disabled: disabled || (readonlyAsDisabled && readonly), id: id, multiple: multiple, onBlur: !readonly ? handleBlur : undefined, onChange: !readonly ? handleChange : undefined, onFocus: !readonly ? handleFocus : undefined, placeholder: placeholder, style: SELECT_STYLE, value: selectedIndexes, "aria-describedby": ariaDescribedByIds(id), optionList: selectOptions }));
43
+ }
44
+ //# sourceMappingURL=select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/widgets/select.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,GAMzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,MAAM,GACP,MAAM,wBAAwB,CAAC;AAEhC,MAAM,YAAY,GAAG;IACnB,KAAK,EAAE,MAAM;CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAIlC,EACA,SAAS,EACT,QAAQ,EACR,WAAW,GAAG,EAAkB,EAChC,EAAE,EACF,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,QAAQ,EACR,KAAK,GACgB;IACrB,MAAM,EAAE,kBAAkB,GAAG,IAAI,EAAE,GAAG,WAAgC,CAAC;IAEvE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAE1D,MAAM,YAAY,GAA4B,SAAS,CAAC,EAAE;QACxD,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;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O,CACL,KAAC,MAAM,IACL,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,IAAI,CAAC,kBAAkB,IAAI,QAAQ,CAAC,EACtD,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAC1C,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAC9C,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAC5C,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,eAAe,sBACJ,kBAAkB,CAAI,EAAE,CAAC,EAC3C,UAAU,EAAE,aAAa,GACzB,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `TextareaWidget` is a widget for rendering input fields as textarea.
3
+ *
4
+ * @param props - The `WidgetProps` for this component
5
+ */
6
+ export default function TextareaWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, } from '@rjsf/utils';
3
+ import { TextArea } from '@coze-arch/coze-design';
4
+ const INPUT_STYLE = {
5
+ width: '100%',
6
+ };
7
+ /** The `TextareaWidget` is a widget for rendering input fields as textarea.
8
+ *
9
+ * @param props - The `WidgetProps` for this component
10
+ */
11
+ export default function TextareaWidget({ disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value, }) {
12
+ const { readonlyAsDisabled = true } = formContext;
13
+ const handleChange = nextValue => onChange(nextValue === '' ? options.emptyValue : nextValue);
14
+ const handleBlur = ({ target }) => onBlur(id, target && target.value);
15
+ const handleFocus = ({ target }) => onFocus(id, target && target.value);
16
+ return (_jsx(TextArea, { disabled: disabled || (readonlyAsDisabled && readonly), id: id, name: id, onBlur: !readonly ? handleBlur : undefined, onChange: !readonly ? handleChange : undefined, onFocus: !readonly ? handleFocus : undefined, placeholder: placeholder, rows: options.rows || 4, style: INPUT_STYLE, value: value, "aria-describedby": ariaDescribedByIds(id) }));
17
+ }
18
+ //# sourceMappingURL=textarea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/widgets/textarea.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,GAMnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAsB,MAAM,wBAAwB,CAAC;AAEtE,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE,MAAM;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,EACA,QAAQ,EACR,WAAW,EACX,EAAE,EACF,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,QAAQ,EACR,KAAK,GACgB;IACrB,MAAM,EAAE,kBAAkB,GAAG,IAAI,EAAE,GAAG,WAAgC,CAAC;IAEvE,MAAM,YAAY,GAA8B,SAAS,CAAC,EAAE,CAC1D,QAAQ,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAE9D,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAmC,EAAE,EAAE,CACjE,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAErC,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAmC,EAAE,EAAE,CAClE,OAAO,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAEtC,OAAO,CACL,KAAC,QAAQ,IACP,QAAQ,EAAE,QAAQ,IAAI,CAAC,kBAAkB,IAAI,QAAQ,CAAC,EACtD,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,EAAE,EACR,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAC1C,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAC9C,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAC5C,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,EACvB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,KAAK,sBACM,kBAAkB,CAAI,EAAE,CAAC,GAC3C,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type Form from '@rjsf/core';
2
+ export { default as schemaValidators } from '@rjsf/validator-ajv8';
3
+ export declare const SemiSchemaForm: import("react").ComponentType<import("@rjsf/core").FormProps<any, import("@rjsf/utils").RJSFSchema, any>>;
4
+ export type SemiSchemaFormInstance = Form;
@@ -0,0 +1,9 @@
1
+ import { withTheme } from '@rjsf/core';
2
+ export { default as schemaValidators } from '@rjsf/validator-ajv8';
3
+ import { widgets } from './components/widgets';
4
+ import { templates } from './components/tmpls';
5
+ export const SemiSchemaForm = withTheme({
6
+ widgets,
7
+ templates,
8
+ });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/semi-schema-form/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC;IACtC,OAAO;IACP,SAAS;CACV,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare enum EventNames {
2
+ INIT_LOOP_FORM = "init_loop_form",
3
+ LOOP_FORM_FIELD_VALIDATE_ERROR = "loop_form_field_validate_error",// 表单项报错次数
4
+ LOOP_FORM_SUBMIT_INTERFACE_ERROR = "loop_form_submit_interface_error",// 提交接口报错次数
5
+ LOOP_FORM_SUBMIT_SUCCESS = "loop_form_submit_success",// 提交成功
6
+ LOOP_FORM_FIELD_CHANGE_TIMELINE = "loop_form_field_change_timeline",// 表单项变更时间轴
7
+ LOOP_FORM_CLOSE = "loop_form_close"
8
+ }