@object-ui/components 14.1.0 → 16.0.0

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 CHANGED
@@ -1,5 +1,80 @@
1
1
  # @object-ui/components
2
2
 
3
+ ## 16.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5534535: feat(grid): built-in row Edit/Delete honor per-record CEL predicates (#2614)
8
+
9
+ The object's `userActions.edit` / `userActions.delete` now also accept an
10
+ object form `{ enabled?, visibleWhen?, disabledWhen? }`. The predicates are
11
+ evaluated per row on the canonical CEL engine (`useRowPredicate`, the same
12
+ machinery custom row actions use): `visibleWhen` false → the built-in
13
+ Edit/Delete item is not rendered for that row (fail-closed); `disabledWhen`
14
+ true → rendered disabled (fail-soft). Wired through ObjectGrid's
15
+ RowActionMenu and the data-table's row overflow menu (the related-list
16
+ path), with the app-shell `crudAffordances` mirror kept in lockstep.
17
+ Omitting the predicates (or using plain booleans) keeps today's behavior
18
+ bit-for-bit; declared predicates evaluate only when a row's menu opens, so
19
+ grid rendering cost is unchanged.
20
+
21
+ ### Patch Changes
22
+
23
+ - 4c7c47f: fix(form): thread live `dependentValues` to cascading option fields (#2284/#1583)
24
+
25
+ The form renderer only injected the live form record into data-source widgets
26
+ (`lookup`/`master_detail`/… — the `DATA_SOURCE_FIELD_TYPES` set). Registered
27
+ option widgets (`field:select`/`field:radio`/`field:multiselect`) that carry
28
+ per-option `visibleWhen` + `dependsOn` cascading were **excluded**, so
29
+ `stripRegisteredFieldProps` dropped `dependentValues` before it reached
30
+ `SelectField`. With no live record and no `formValues` context fallback, a
31
+ cascading `select` never saw its controlling field: in a create form the
32
+ dependent field stayed permanently gated on the "Select the parent first" hint
33
+ even after the parent was chosen (reproduced on the showcase `showcase_cascade`
34
+ B3 fixture — country → province never unlocked).
35
+
36
+ Option field types now receive `dependentValues` too, so the widget's
37
+ `dependsOn` gate lifts and its `visibleWhen` set re-filters live as the parent
38
+ changes — the same channel the lookup fix (#2215/#2216) already used. Regression
39
+ guard added in `form-dependent-values.test.tsx` (drives the registered
40
+ `field:select` path, not just the builtin `case 'select'` fallback the prior
41
+ cascading-select test covered).
42
+
43
+ - 33b4995: Welcome-page "Create your environment" deep-links straight into the create
44
+ dialog (#844): `action:button` gains a client-side `autoTrigger` flag (runs
45
+ the action once on mount — same execute path as a click, so param dialogs /
46
+ confirms / entitlement gates still apply), and the environments list consumes
47
+ `?runAction=create_environment` to mark its create action once entitlements
48
+ resolve (upgrade-locked orgs get the upgrade prompt instead; the param is
49
+ stripped after consumption so refresh/back don't re-open). Also localizes the
50
+ EnvironmentListToolbar's state-aware label overrides ({en,zh}) — they were
51
+ hard-coded English inside a zh console.
52
+ - Updated dependencies [d3e19ed]
53
+ - Updated dependencies [59d4fa9]
54
+ - Updated dependencies [210806a]
55
+ - Updated dependencies [b4ef588]
56
+ - Updated dependencies [ca0f5f0]
57
+ - Updated dependencies [5534535]
58
+ - Updated dependencies [9b8f978]
59
+ - Updated dependencies [195a651]
60
+ - @object-ui/react@16.0.0
61
+ - @object-ui/types@16.0.0
62
+ - @object-ui/i18n@16.0.0
63
+ - @object-ui/core@16.0.0
64
+ - @object-ui/react-runtime@16.0.0
65
+ - @object-ui/sdui-parser@16.0.0
66
+
67
+ ## 15.0.0
68
+
69
+ ### Patch Changes
70
+
71
+ - @object-ui/types@15.0.0
72
+ - @object-ui/core@15.0.0
73
+ - @object-ui/i18n@15.0.0
74
+ - @object-ui/react@15.0.0
75
+ - @object-ui/react-runtime@15.0.0
76
+ - @object-ui/sdui-parser@15.0.0
77
+
3
78
  ## 14.1.0
4
79
 
5
80
  ### Minor Changes