|
| 1 | +--- |
| 2 | +'@object-ui/plugin-form': minor |
| 3 | +--- |
| 4 | + |
| 5 | +The `object-form`, `view:form`, `embeddable-form` and |
| 6 | +`object-master-detail-form` registrations no longer declare `objectName` |
| 7 | +required, so the page compile accepts a node whose `dataSource` binding names the |
| 8 | +object, and a form that names its object in neither place shows a hint instead of |
| 9 | +a form with no fields (objectui#11605). |
| 10 | + |
| 11 | +`@objectstack/spec`'s `object-form` and `object-master-detail-form` rows leave |
| 12 | +`objectName` optional, because the node's `dataSource` binding can supply it; |
| 13 | +`embeddable-form` has no spec row, and the binding doc says a bound node needs no |
| 14 | +`objectName` of its own. Each renderer agrees: `dataSource.object` lands on |
| 15 | +`objectName` before the form reads the node. The registrations still declared |
| 16 | +`required: true`, and the page compile reads them, so a bound form with no |
| 17 | +`objectName` of its own was refused with `missing-required-prop` and the save |
| 18 | +failed. |
| 19 | + |
| 20 | +**Clause-②: yes (widening)** — an `object-form`, `view:form`, `embeddable-form` |
| 21 | +or `object-master-detail-form` node that names its object through |
| 22 | +`dataSource.object` and sets no `objectName` now compiles and saves. A node that |
| 23 | +names its object in neither place also compiles now, and shows "No object named: |
| 24 | +set objectName or dataSource.object." where it used to draw a field-less card, a |
| 25 | +public form that could not submit, or an empty parent form. An `object-form` |
| 26 | +or `view:form` whose fields are declared inline shows no hint and renders as |
| 27 | +before: non-empty `customFields`, or `sections` whose every field is an inline |
| 28 | +field, the target-less collector the `tabbed`, `wizard`, `split`, `drawer` and |
| 29 | +`modal` variants render. `formId` on `embeddable-form` and `details` on |
| 30 | +`object-master-detail-form` are still required. The published `objectName` |
| 31 | +inputs now carry a description that says the binding can supply them. |
0 commit comments