@cozeloop/components 0.0.5 → 0.0.7-beta-1766595012100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/dist/es/index.css +11 -27
  2. package/dist/es/{index.js → index.mjs} +495 -449
  3. package/dist/lib/code-editor-with-loading/index.d.ts +10 -0
  4. package/dist/lib/codemirror-editor/code-editor.d.ts +23 -2
  5. package/dist/lib/codemirror-editor/index.d.ts +2 -0
  6. package/dist/lib/codemirror-editor/json-editor.d.ts +1 -1
  7. package/dist/lib/codemirror-editor/raw-code-editor.d.ts +20 -0
  8. package/dist/lib/codemirror-editor/text-editor.d.ts +23 -2
  9. package/dist/lib/collapse-card/index.d.ts +2 -1
  10. package/dist/lib/copyable/index.d.ts +5 -0
  11. package/dist/lib/hooks/use-unsave-leave-warning.d.ts +4 -1
  12. package/dist/lib/index.d.ts +5 -5
  13. package/dist/lib/logic-editor/logic-editor.d.ts +2 -4
  14. package/dist/lib/logic-editor/logic-types.d.ts +6 -2
  15. package/dist/lib/loop-icons/index.d.ts +1 -0
  16. package/dist/lib/multi-part-editor/type.d.ts +1 -1
  17. package/dist/lib/provider/index.d.ts +10 -9
  18. package/dist/lib/table/sort-icon.d.ts +3 -3
  19. package/package.json +23 -25
  20. package/dist/lib/base-search-select/base-search-form-select.js +0 -6
  21. package/dist/lib/base-search-select/base-search-form-select.js.map +0 -1
  22. package/dist/lib/base-search-select/base-search-select.js +0 -127
  23. package/dist/lib/base-search-select/base-search-select.js.map +0 -1
  24. package/dist/lib/base-search-select/index.js +0 -3
  25. package/dist/lib/base-search-select/index.js.map +0 -1
  26. package/dist/lib/base-search-select/types.js +0 -2
  27. package/dist/lib/base-search-select/types.js.map +0 -1
  28. package/dist/lib/base-search-select/utils.js +0 -48
  29. package/dist/lib/base-search-select/utils.js.map +0 -1
  30. package/dist/lib/basic-card/index.js +0 -4
  31. package/dist/lib/basic-card/index.js.map +0 -1
  32. package/dist/lib/card-pane/index.js +0 -9
  33. package/dist/lib/card-pane/index.js.map +0 -1
  34. package/dist/lib/chip-select/index.js +0 -6
  35. package/dist/lib/chip-select/index.js.map +0 -1
  36. package/dist/lib/code-editor/index.js +0 -9
  37. package/dist/lib/code-editor/index.js.map +0 -1
  38. package/dist/lib/code-usage/index.d.ts +0 -14
  39. package/dist/lib/code-usage/index.js +0 -31
  40. package/dist/lib/code-usage/index.js.map +0 -1
  41. package/dist/lib/codemirror-editor/code-editor.js +0 -108
  42. package/dist/lib/codemirror-editor/code-editor.js.map +0 -1
  43. package/dist/lib/codemirror-editor/index.js +0 -5
  44. package/dist/lib/codemirror-editor/index.js.map +0 -1
  45. package/dist/lib/codemirror-editor/json-editor.js +0 -97
  46. package/dist/lib/codemirror-editor/json-editor.js.map +0 -1
  47. package/dist/lib/codemirror-editor/raw-text-editor.js +0 -32
  48. package/dist/lib/codemirror-editor/raw-text-editor.js.map +0 -1
  49. package/dist/lib/codemirror-editor/text-editor.js +0 -44
  50. package/dist/lib/codemirror-editor/text-editor.js.map +0 -1
  51. package/dist/lib/codemirror-editor/themes/coze-dark.js +0 -113
  52. package/dist/lib/codemirror-editor/themes/coze-dark.js.map +0 -1
  53. package/dist/lib/codemirror-editor/themes/coze-light.js +0 -119
  54. package/dist/lib/codemirror-editor/themes/coze-light.js.map +0 -1
  55. package/dist/lib/collapse-card/index.js +0 -31
  56. package/dist/lib/collapse-card/index.js.map +0 -1
  57. package/dist/lib/collapsible-card/index.js +0 -13
  58. package/dist/lib/collapsible-card/index.js.map +0 -1
  59. package/dist/lib/column-manage-storage/index.js +0 -48
  60. package/dist/lib/column-manage-storage/index.js.map +0 -1
  61. package/dist/lib/columns-select/index.js +0 -77
  62. package/dist/lib/columns-select/index.js.map +0 -1
  63. package/dist/lib/edit-icon-button/index.js +0 -13
  64. package/dist/lib/edit-icon-button/index.js.map +0 -1
  65. package/dist/lib/footer-actions/index.js +0 -9
  66. package/dist/lib/footer-actions/index.js.map +0 -1
  67. package/dist/lib/hooks/use-infinite-scroll.js +0 -133
  68. package/dist/lib/hooks/use-infinite-scroll.js.map +0 -1
  69. package/dist/lib/hooks/use-mouse-down-offset.js +0 -39
  70. package/dist/lib/hooks/use-mouse-down-offset.js.map +0 -1
  71. package/dist/lib/hooks/use-unsave-leave-warning.js +0 -33
  72. package/dist/lib/hooks/use-unsave-leave-warning.js.map +0 -1
  73. package/dist/lib/id-render/icon-button-container.js +0 -8
  74. package/dist/lib/id-render/icon-button-container.js.map +0 -1
  75. package/dist/lib/id-render/index.js +0 -21
  76. package/dist/lib/id-render/index.js.map +0 -1
  77. package/dist/lib/index-controller/record-navigation.js +0 -9
  78. package/dist/lib/index-controller/record-navigation.js.map +0 -1
  79. package/dist/lib/index-controller/use-item-index-controller.js +0 -123
  80. package/dist/lib/index-controller/use-item-index-controller.js.map +0 -1
  81. package/dist/lib/index.js +0 -76
  82. package/dist/lib/index.js.map +0 -1
  83. package/dist/lib/infinite-scroll-table/index.js +0 -34
  84. package/dist/lib/infinite-scroll-table/index.js.map +0 -1
  85. package/dist/lib/info-tooltip/index.js +0 -9
  86. package/dist/lib/info-tooltip/index.js.map +0 -1
  87. package/dist/lib/input-components/radio-button.js +0 -21
  88. package/dist/lib/input-components/radio-button.js.map +0 -1
  89. package/dist/lib/input-slider/index.js +0 -81
  90. package/dist/lib/input-slider/index.js.map +0 -1
  91. package/dist/lib/input-with-count/index.js +0 -7
  92. package/dist/lib/input-with-count/index.js.map +0 -1
  93. package/dist/lib/jump-button/jump-icon-button.js +0 -7
  94. package/dist/lib/jump-button/jump-icon-button.js.map +0 -1
  95. package/dist/lib/large-txt-render/index.js +0 -26
  96. package/dist/lib/large-txt-render/index.js.map +0 -1
  97. package/dist/lib/layout/content.js +0 -5
  98. package/dist/lib/layout/content.js.map +0 -1
  99. package/dist/lib/layout/header.js +0 -6
  100. package/dist/lib/layout/header.js.map +0 -1
  101. package/dist/lib/layout/index.js +0 -9
  102. package/dist/lib/layout/index.js.map +0 -1
  103. package/dist/lib/layout/tabs.js +0 -10
  104. package/dist/lib/layout/tabs.js.map +0 -1
  105. package/dist/lib/lazy-load-component/index.js +0 -42
  106. package/dist/lib/lazy-load-component/index.js.map +0 -1
  107. package/dist/lib/logic-editor/index.js +0 -3
  108. package/dist/lib/logic-editor/index.js.map +0 -1
  109. package/dist/lib/logic-editor/logic-editor.js +0 -69
  110. package/dist/lib/logic-editor/logic-editor.js.map +0 -1
  111. package/dist/lib/logic-editor/logic-left-render.js +0 -60
  112. package/dist/lib/logic-editor/logic-left-render.js.map +0 -1
  113. package/dist/lib/logic-editor/logic-operator-render.js +0 -29
  114. package/dist/lib/logic-editor/logic-operator-render.js.map +0 -1
  115. package/dist/lib/logic-editor/logic-right-render.js +0 -25
  116. package/dist/lib/logic-editor/logic-right-render.js.map +0 -1
  117. package/dist/lib/logic-editor/logic-types.js +0 -136
  118. package/dist/lib/logic-editor/logic-types.js.map +0 -1
  119. package/dist/lib/logic-editor/utils.js +0 -18
  120. package/dist/lib/logic-editor/utils.js.map +0 -1
  121. package/dist/lib/logic-expr/consts.js +0 -5
  122. package/dist/lib/logic-expr/consts.js.map +0 -1
  123. package/dist/lib/logic-expr/expr-group-render.js +0 -61
  124. package/dist/lib/logic-expr/expr-group-render.js.map +0 -1
  125. package/dist/lib/logic-expr/expr-render.js +0 -85
  126. package/dist/lib/logic-expr/expr-render.js.map +0 -1
  127. package/dist/lib/logic-expr/index.js +0 -2
  128. package/dist/lib/logic-expr/index.js.map +0 -1
  129. package/dist/lib/logic-expr/logic-expr.js +0 -187
  130. package/dist/lib/logic-expr/logic-expr.js.map +0 -1
  131. package/dist/lib/logic-expr/logic-not.js +0 -21
  132. package/dist/lib/logic-expr/logic-not.js.map +0 -1
  133. package/dist/lib/logic-expr/logic-toggle.js +0 -33
  134. package/dist/lib/logic-expr/logic-toggle.js.map +0 -1
  135. package/dist/lib/logic-expr/types.js +0 -2
  136. package/dist/lib/logic-expr/types.js.map +0 -1
  137. package/dist/lib/loop-radio-group/index.js +0 -7
  138. package/dist/lib/loop-radio-group/index.js.map +0 -1
  139. package/dist/lib/multi-part-editor/components/image-item-renderer.js +0 -57
  140. package/dist/lib/multi-part-editor/components/image-item-renderer.js.map +0 -1
  141. package/dist/lib/multi-part-editor/components/multipart-item-renderer.js +0 -25
  142. package/dist/lib/multi-part-editor/components/multipart-item-renderer.js.map +0 -1
  143. package/dist/lib/multi-part-editor/components/url-input-modal.js +0 -150
  144. package/dist/lib/multi-part-editor/components/url-input-modal.js.map +0 -1
  145. package/dist/lib/multi-part-editor/components/video-item-renderer.js +0 -57
  146. package/dist/lib/multi-part-editor/components/video-item-renderer.js.map +0 -1
  147. package/dist/lib/multi-part-editor/index.js +0 -300
  148. package/dist/lib/multi-part-editor/index.js.map +0 -1
  149. package/dist/lib/multi-part-editor/multi-part-render.js +0 -40
  150. package/dist/lib/multi-part-editor/multi-part-render.js.map +0 -1
  151. package/dist/lib/multi-part-editor/type.js +0 -25
  152. package/dist/lib/multi-part-editor/type.js.map +0 -1
  153. package/dist/lib/multi-part-editor/upload-button.js +0 -103
  154. package/dist/lib/multi-part-editor/upload-button.js.map +0 -1
  155. package/dist/lib/multi-part-editor/utils.js +0 -43
  156. package/dist/lib/multi-part-editor/utils.js.map +0 -1
  157. package/dist/lib/open-detail-button/index.js +0 -11
  158. package/dist/lib/open-detail-button/index.js.map +0 -1
  159. package/dist/lib/page-content/index.js +0 -23
  160. package/dist/lib/page-content/index.js.map +0 -1
  161. package/dist/lib/primary-page/index.js +0 -2
  162. package/dist/lib/primary-page/index.js.map +0 -1
  163. package/dist/lib/primary-page/primary-header.js +0 -4
  164. package/dist/lib/primary-page/primary-header.js.map +0 -1
  165. package/dist/lib/primary-title/index.js +0 -8
  166. package/dist/lib/primary-title/index.js.map +0 -1
  167. package/dist/lib/provider/index.js +0 -43
  168. package/dist/lib/provider/index.js.map +0 -1
  169. package/dist/lib/resizable-side-sheet/index.js +0 -32
  170. package/dist/lib/resizable-side-sheet/index.js.map +0 -1
  171. package/dist/lib/resize-sidesheet/index.js +0 -15
  172. package/dist/lib/resize-sidesheet/index.js.map +0 -1
  173. package/dist/lib/resize-sidesheet/use-drag.js +0 -30
  174. package/dist/lib/resize-sidesheet/use-drag.js.map +0 -1
  175. package/dist/lib/schema-editor/index.js +0 -5
  176. package/dist/lib/schema-editor/index.js.map +0 -1
  177. package/dist/lib/search-form/index.d.ts +0 -15
  178. package/dist/lib/search-form/index.js +0 -77
  179. package/dist/lib/search-form/index.js.map +0 -1
  180. package/dist/lib/semi-schema-form/components/tmpls/array-field-item.js +0 -19
  181. package/dist/lib/semi-schema-form/components/tmpls/array-field-item.js.map +0 -1
  182. package/dist/lib/semi-schema-form/components/tmpls/array-field.js +0 -39
  183. package/dist/lib/semi-schema-form/components/tmpls/array-field.js.map +0 -1
  184. package/dist/lib/semi-schema-form/components/tmpls/base-input.js +0 -32
  185. package/dist/lib/semi-schema-form/components/tmpls/base-input.js.map +0 -1
  186. package/dist/lib/semi-schema-form/components/tmpls/description-field.js +0 -13
  187. package/dist/lib/semi-schema-form/components/tmpls/description-field.js.map +0 -1
  188. package/dist/lib/semi-schema-form/components/tmpls/error-list.js +0 -14
  189. package/dist/lib/semi-schema-form/components/tmpls/error-list.js.map +0 -1
  190. package/dist/lib/semi-schema-form/components/tmpls/field-error.js +0 -16
  191. package/dist/lib/semi-schema-form/components/tmpls/field-error.js.map +0 -1
  192. package/dist/lib/semi-schema-form/components/tmpls/field.js +0 -21
  193. package/dist/lib/semi-schema-form/components/tmpls/field.js.map +0 -1
  194. package/dist/lib/semi-schema-form/components/tmpls/icon-button.js +0 -29
  195. package/dist/lib/semi-schema-form/components/tmpls/icon-button.js.map +0 -1
  196. package/dist/lib/semi-schema-form/components/tmpls/index.js +0 -31
  197. package/dist/lib/semi-schema-form/components/tmpls/index.js.map +0 -1
  198. package/dist/lib/semi-schema-form/components/tmpls/object-field.js +0 -81
  199. package/dist/lib/semi-schema-form/components/tmpls/object-field.js.map +0 -1
  200. package/dist/lib/semi-schema-form/components/tmpls/submit.js +0 -13
  201. package/dist/lib/semi-schema-form/components/tmpls/submit.js.map +0 -1
  202. package/dist/lib/semi-schema-form/components/tmpls/title-field.js +0 -12
  203. package/dist/lib/semi-schema-form/components/tmpls/title-field.js.map +0 -1
  204. package/dist/lib/semi-schema-form/components/widgets/checkbox.js +0 -26
  205. package/dist/lib/semi-schema-form/components/widgets/checkbox.js.map +0 -1
  206. package/dist/lib/semi-schema-form/components/widgets/checkboxs.js +0 -27
  207. package/dist/lib/semi-schema-form/components/widgets/checkboxs.js.map +0 -1
  208. package/dist/lib/semi-schema-form/components/widgets/index.js +0 -15
  209. package/dist/lib/semi-schema-form/components/widgets/index.js.map +0 -1
  210. package/dist/lib/semi-schema-form/components/widgets/radio.js +0 -27
  211. package/dist/lib/semi-schema-form/components/widgets/radio.js.map +0 -1
  212. package/dist/lib/semi-schema-form/components/widgets/range.js +0 -26
  213. package/dist/lib/semi-schema-form/components/widgets/range.js.map +0 -1
  214. package/dist/lib/semi-schema-form/components/widgets/select.js +0 -44
  215. package/dist/lib/semi-schema-form/components/widgets/select.js.map +0 -1
  216. package/dist/lib/semi-schema-form/components/widgets/textarea.js +0 -18
  217. package/dist/lib/semi-schema-form/components/widgets/textarea.js.map +0 -1
  218. package/dist/lib/semi-schema-form/index.js +0 -9
  219. package/dist/lib/semi-schema-form/index.js.map +0 -1
  220. package/dist/lib/sentinel-form/enum.js +0 -15
  221. package/dist/lib/sentinel-form/enum.js.map +0 -1
  222. package/dist/lib/sentinel-form/index.js +0 -289
  223. package/dist/lib/sentinel-form/index.js.map +0 -1
  224. package/dist/lib/step-nav/index.js +0 -13
  225. package/dist/lib/step-nav/index.js.map +0 -1
  226. package/dist/lib/table/index.js +0 -6
  227. package/dist/lib/table/index.js.map +0 -1
  228. package/dist/lib/table/sort-icon.js +0 -30
  229. package/dist/lib/table/sort-icon.js.map +0 -1
  230. package/dist/lib/table/table-with-pagination.js +0 -74
  231. package/dist/lib/table/table-with-pagination.js.map +0 -1
  232. package/dist/lib/table/table-without-pagniation.js +0 -37
  233. package/dist/lib/table/table-without-pagniation.js.map +0 -1
  234. package/dist/lib/table-batch-operate/table-batch-operation.js +0 -14
  235. package/dist/lib/table-batch-operate/table-batch-operation.js.map +0 -1
  236. package/dist/lib/table-batch-operate/use-batch-operate.js +0 -71
  237. package/dist/lib/table-batch-operate/use-batch-operate.js.map +0 -1
  238. package/dist/lib/table-col-actions/index.js +0 -35
  239. package/dist/lib/table-col-actions/index.js.map +0 -1
  240. package/dist/lib/table-cols-config/index.js +0 -57
  241. package/dist/lib/table-cols-config/index.js.map +0 -1
  242. package/dist/lib/table-cols-config/type.js +0 -2
  243. package/dist/lib/table-cols-config/type.js.map +0 -1
  244. package/dist/lib/table-cols-config/use-hidden-col-keys.js +0 -32
  245. package/dist/lib/table-cols-config/use-hidden-col-keys.js.map +0 -1
  246. package/dist/lib/table-cols-config/util.js +0 -39
  247. package/dist/lib/table-cols-config/util.js.map +0 -1
  248. package/dist/lib/table-empty/index.js +0 -10
  249. package/dist/lib/table-empty/index.js.map +0 -1
  250. package/dist/lib/table-header/index.js +0 -11
  251. package/dist/lib/table-header/index.js.map +0 -1
  252. package/dist/lib/tabs/index.js +0 -9
  253. package/dist/lib/tabs/index.js.map +0 -1
  254. package/dist/lib/text-area-pro/index.js +0 -10
  255. package/dist/lib/text-area-pro/index.js.map +0 -1
  256. package/dist/lib/text-with-copy/index.js +0 -24
  257. package/dist/lib/text-with-copy/index.js.map +0 -1
  258. package/dist/lib/title-with-sub/index.js +0 -6
  259. package/dist/lib/title-with-sub/index.js.map +0 -1
  260. package/dist/lib/tooltip-when-disabled/index.js +0 -9
  261. package/dist/lib/tooltip-when-disabled/index.js.map +0 -1
  262. package/dist/lib/tooltip-with-disabled/index.js +0 -9
  263. package/dist/lib/tooltip-with-disabled/index.js.map +0 -1
  264. package/dist/lib/tsconfig.build.tsbuildinfo +0 -1
  265. package/dist/lib/upload/index.js +0 -25
  266. package/dist/lib/upload/index.js.map +0 -1
  267. package/dist/lib/user-profile/index.js +0 -21
  268. package/dist/lib/user-profile/index.js.map +0 -1
  269. package/dist/lib/utils/basic.js +0 -29
  270. package/dist/lib/utils/basic.js.map +0 -1
  271. package/dist/lib/version-list/version-descriptions.js +0 -14
  272. package/dist/lib/version-list/version-descriptions.js.map +0 -1
  273. package/dist/lib/version-list/version-item.js +0 -6
  274. package/dist/lib/version-list/version-item.js.map +0 -1
  275. package/dist/lib/version-list/version-list.js +0 -11
  276. package/dist/lib/version-list/version-list.js.map +0 -1
  277. package/dist/lib/version-list/version-switch-panel.js +0 -10
  278. package/dist/lib/version-list/version-switch-panel.js.map +0 -1
@@ -1,81 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-field.js","sourceRoot":"","sources":["../../../../../src/semi-schema-form/components/tmpls/object-field.tsx"],"names":[],"mappings":";AAEA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IAAC,EAAE,EAAE,QAAQ,CAAC,GAAG,GAAI,CAAC;IACxC,CAAC;IACD,OAAO,CACL,oBACE,EAAE,EAAE,QAAQ,CAAC,GAAG,EAChB,SAAS,EAAE,sCAAsC,aAEjD,KAAC,GAAG,IAAC,MAAM,EAAE,SAAS,YAwBnB,UAAU;qBACR,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,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"}
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,26 +0,0 @@
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
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AC,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"}
@@ -1,27 +0,0 @@
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
@@ -1 +0,0 @@
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,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C,CAAC,YAEf,MAAM,CAAC,KAAK,GACJ,EACV,CAAC,MAAM,IAAI,cAAM,KAZT,CAAC,CAaL,CACR,CAAC,GACW,GAChB,CACJ,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
@@ -1,15 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,27 +0,0 @@
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
@@ -1 +0,0 @@
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,OAAO,EAAE,KAAK,EAAwB,MAAM,wBAAwB,CAAC;AAErE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAIjC,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,WAAg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AAO,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"}
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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,IAAI,EAAE,GAAG,WAAgC,CAAC;IAEvE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAE7C,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,EAAE,CAAC;IAE5C,MAAM,YAAY,GAA4B,SAAS,CAAC,EAAE,CACxD,QAAQ,CAAC,OAAO,SAAS,KAAK,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEtE,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAE3C,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAE7C,iHAAiH;IACjH,8GAA8G;IAC9G,MAAM,UAAU,GAAG;QACjB,WAAW;QACX,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;IAEF,OAAO,CACL,KAAC,MAAM,IACL,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,IAAI,CAAC,kBAAkB,IAAI,QAAQ,CAAC,EACtD,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAC9C,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,KACR,UAAU,sBACI,kBAAkB,CAAI,EAAE,CAAC,GAC3C,CACH,CAAC;AACJ,CAAC"}
@@ -1,44 +0,0 @@
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
@@ -1 +0,0 @@
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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K,EAAE,MAAM,CAAC,KAAK,CAAC;gBACpB,KAAK,EAAE,WAAW;aACnB,CAAC,CACH,CAAC;YAEF,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC;IAEhC,OAAO,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"}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,9 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,15 +0,0 @@
1
- export var EventNames;
2
- (function (EventNames) {
3
- // 进入相关
4
- EventNames["INIT_LOOP_FORM"] = "init_loop_form";
5
- // 保点击保存,表单报错
6
- EventNames["LOOP_FORM_FIELD_VALIDATE_ERROR"] = "loop_form_field_validate_error";
7
- // 点击保存,接口报错
8
- EventNames["LOOP_FORM_SUBMIT_INTERFACE_ERROR"] = "loop_form_submit_interface_error";
9
- // 点击保存,成功
10
- EventNames["LOOP_FORM_SUBMIT_SUCCESS"] = "loop_form_submit_success";
11
- // 离开表单
12
- EventNames["LOOP_FORM_FIELD_CHANGE_TIMELINE"] = "loop_form_field_change_timeline";
13
- EventNames["LOOP_FORM_CLOSE"] = "loop_form_close";
14
- })(EventNames || (EventNames = {}));
15
- //# sourceMappingURL=enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/sentinel-form/enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAeX;AAfD,WAAY,UAAU;IACpB,OAAO;IACP,+CAAiC,CAAA;IACjC,aAAa;IACb,+EAAiE,CAAA;IAEjE,YAAY;IACZ,mFAAqE,CAAA;IAErE,UAAU;IACV,mEAAqD,CAAA;IAErD,OAAO;IACP,iFAAmE,CAAA;IACnE,iDAAmC,CAAA;AACrC,CAAC,EAfW,UAAU,KAAV,UAAU,QAerB"}