@object-ui/plugin-form 3.3.2 → 4.0.1
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.
- package/CHANGELOG.md +68 -0
- package/dist/index.js +310 -280
- package/dist/index.umd.cjs +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# @object-ui/plugin-form
|
|
2
2
|
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @object-ui/types@4.0.1
|
|
8
|
+
- @object-ui/core@4.0.1
|
|
9
|
+
- @object-ui/react@4.0.1
|
|
10
|
+
- @object-ui/components@4.0.1
|
|
11
|
+
- @object-ui/fields@4.0.1
|
|
12
|
+
|
|
13
|
+
## 4.0.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @object-ui/types@4.0.0
|
|
19
|
+
- @object-ui/components@4.0.0
|
|
20
|
+
- @object-ui/core@4.0.0
|
|
21
|
+
- @object-ui/fields@4.0.0
|
|
22
|
+
- @object-ui/react@4.0.0
|
|
23
|
+
|
|
24
|
+
## 3.4.0
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- de881ef: Mobile UX round 3 — Form: sticky save bar, fullscreen long-text editor, and auto-stepper for long forms on small viewports.
|
|
29
|
+
|
|
30
|
+
**`@object-ui/types`** — `ObjectFormSchema.mobile` (new) lets a single form opt into all three behaviours:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
{
|
|
34
|
+
type: 'object-form',
|
|
35
|
+
objectName: 'leads',
|
|
36
|
+
mode: 'create',
|
|
37
|
+
mobile: {
|
|
38
|
+
stickyActions: true, // pin Submit/Cancel to bottom on phones
|
|
39
|
+
stepper: 'auto', // long forms render one field per step
|
|
40
|
+
stepperMinFields: 8, // …but only past this many fields
|
|
41
|
+
stepperFieldsPerStep: 1, // … (default 1)
|
|
42
|
+
fullscreenLongText: true, // textarea fields get an "expand" affordance
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
`FormSchema.mobileStickyActions` (new) is the lower-level escape hatch — applied automatically when `mobile.stickyActions` is set on `ObjectFormSchema`.
|
|
48
|
+
|
|
49
|
+
**`@object-ui/plugin-form`** — `ObjectForm` now:
|
|
50
|
+
- propagates `mobile.fullscreenLongText` to every textarea/markdown/html field as `mobile_fullscreen: true`,
|
|
51
|
+
- sets `mobileStickyActions` on the inner form schema and adds `pb-20` padding so content isn't covered by the fixed bar,
|
|
52
|
+
- when `mobile.stepper === true` (or `'auto'` + `useIsMobile()` + > `stepperMinFields` fields), routes the flat field list through the existing `WizardForm` with synthetic single-field "steps" — keeping per-step validation and the existing `Next`/`Back`/`Submit` flow.
|
|
53
|
+
|
|
54
|
+
**`@object-ui/components`** — the registered `form` renderer adds:
|
|
55
|
+
- a `mobileStickyActions` opt-in that turns the action row into a `position: sticky; bottom: 0` bar on small viewports, and
|
|
56
|
+
- an inline `FullscreenTextarea` wrapper used when no field-package widget is registered, providing the same expand-button + edit-dialog UX so the feature works even in lighter setups.
|
|
57
|
+
|
|
58
|
+
**`@object-ui/fields`** — `TextAreaField` ships the actual fullscreen UX: a top-right `Maximize2` button opens a near-fullscreen `Dialog` containing a full-height `Textarea` with a draft-then-commit save model (Cancel reverts).
|
|
59
|
+
|
|
60
|
+
All three behaviours are off by default — existing forms render unchanged.
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [a2d7023]
|
|
63
|
+
- Updated dependencies [f1ca238]
|
|
64
|
+
- Updated dependencies [de881ef]
|
|
65
|
+
- @object-ui/components@3.4.0
|
|
66
|
+
- @object-ui/fields@3.4.0
|
|
67
|
+
- @object-ui/types@3.4.0
|
|
68
|
+
- @object-ui/core@3.4.0
|
|
69
|
+
- @object-ui/react@3.4.0
|
|
70
|
+
|
|
3
71
|
## 3.3.2
|
|
4
72
|
|
|
5
73
|
### Patch Changes
|