@asteby/metacore-runtime-react 37.0.1 → 37.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.
- package/CHANGELOG.md +12 -0
- package/dist/addon-loader.d.ts.map +1 -1
- package/dist/addon-loader.js +18 -10
- package/dist/dynamic-form-schema.d.ts +27 -0
- package/dist/dynamic-form-schema.d.ts.map +1 -1
- package/dist/dynamic-form-schema.js +79 -0
- package/dist/dynamic-table.d.ts +1 -8
- package/dist/dynamic-table.d.ts.map +1 -1
- package/dist/dynamic-table.js +100 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/model-action-toolbar.d.ts +16 -1
- package/dist/model-action-toolbar.d.ts.map +1 -1
- package/dist/model-action-toolbar.js +30 -2
- package/dist/types.d.ts +7 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/model-action-toolbar-i18n.test.tsx +29 -6
- package/src/__tests__/visible-when.test.ts +41 -1
- package/src/addon-loader.tsx +22 -10
- package/src/dynamic-form-schema.ts +81 -0
- package/src/dynamic-table.tsx +89 -27
- package/src/index.ts +3 -0
- package/src/model-action-toolbar.tsx +42 -3
- package/src/types.ts +7 -6
package/src/types.ts
CHANGED
|
@@ -337,12 +337,13 @@ export interface ColumnDefinition {
|
|
|
337
337
|
/** snake_case alias served by the kernel for `itemFields`. */
|
|
338
338
|
item_fields?: ColumnItemField[]
|
|
339
339
|
/**
|
|
340
|
-
* Conditional visibility
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
340
|
+
* Conditional visibility (kernel v3 `Column.visible_when`):
|
|
341
|
+
* - create/edit modal → `evaluateVisibleWhen` against live form values
|
|
342
|
+
* - list/board → `evaluateVisibleWhenForListScope` against known filter
|
|
343
|
+
* scope (`defaultFilters` / single-eq chips), so a locked nav scope
|
|
344
|
+
* like `party_type=customer` hides `supplier_id` without each nav
|
|
345
|
+
* item re-declaring a full column allowlist.
|
|
346
|
+
* Tolerates the camelCase alias. Absent = always visible.
|
|
346
347
|
*/
|
|
347
348
|
visible_when?: VisibleWhen
|
|
348
349
|
/** camelCase alias for `visible_when`. */
|