@cosmicdrift/kumiko-types 0.248.0 → 0.249.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/screen.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-types",
3
- "version": "0.248.0",
3
+ "version": "0.249.0",
4
4
  "description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
package/src/screen.ts CHANGED
@@ -89,15 +89,19 @@ export type FormatSpec = {
89
89
  export type FieldRenderer = PlatformComponent | string | FormatSpec;
90
90
 
91
91
  // Declarative field-state condition. Evaluated by the renderer against the
92
- // current row/form values. Three forms:
92
+ // current row/form values. Five forms:
93
93
  // boolean — static on/off (e.g. readOnly: true)
94
94
  // { field, eq } — true when row[field] === eq
95
95
  // { field, ne } — true when row[field] !== ne
96
+ // { field, in } — true when row[field] is one of the given values
97
+ // { field, notIn } — true when row[field] is none of the given values
96
98
  // JSON-safe: survives buildAppSchema → window.__KUMIKO_SCHEMA__ stringify.
97
99
  export type FieldCondition =
98
100
  | boolean
99
101
  | { readonly field: string; readonly eq: unknown }
100
- | { readonly field: string; readonly ne: unknown };
102
+ | { readonly field: string; readonly ne: unknown }
103
+ | { readonly field: string; readonly in: readonly unknown[] }
104
+ | { readonly field: string; readonly notIn: readonly unknown[] };
101
105
 
102
106
  // --- entityList ---
103
107