@nice2dev/ui-forms 1.0.25 → 1.0.26

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/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { NiceComponentTutorial } from '@nice2dev/ui';
5
5
  import { NiceComponentTutorial as NiceComponentTutorial_2 } from '@nice2dev/ui-core';
6
6
  import { NiceConsoleTab } from '@nice2dev/ui';
7
7
  import { NiceDataSourceDef } from '@nice2dev/ui';
8
+ import { NiceFieldValidationRule } from '@nice2dev/ui';
8
9
  import { NiceFormItem } from '@nice2dev/ui';
9
10
  import { NiceHookBinding } from '@nice2dev/ui';
10
11
  import { NiceLifecycleHandlerOption } from '@nice2dev/ui';
@@ -234,6 +235,8 @@ export declare interface NiceEntityEditorProps extends NiceStandardProps {
234
235
  fieldSchema?: JsonSchema;
235
236
  /** Property holding the entity's fields. Default `'fields'`. */
236
237
  fieldsKey?: string;
238
+ /** Property holding the entity's validation rules (NiceFieldValidationRule[]). Default `'validations'`. */
239
+ validationsKey?: string;
237
240
  /** Property used as the entity label in the list. Default `'name'`. */
238
241
  nameKey?: string;
239
242
  /** Optional ER preview slot (e.g. NiceDatabaseSchemaViewer from @nice2dev/ui-diagrams). */
@@ -476,6 +479,12 @@ export declare interface NiceSchemaFormProps extends NiceStandardProps {
476
479
  readOnly?: boolean;
477
480
  /** Validate on every change and show inline errors. Default `true`. */
478
481
  liveValidation?: boolean;
482
+ /**
483
+ * Extra entity-level validation rules (cross-field + conditional `when`),
484
+ * e.g. authored with NiceValidationBuilder. Evaluated via `evaluateValidation`
485
+ * and merged into the form errors. Since 1.0.26.
486
+ */
487
+ validationRules?: NiceFieldValidationRule[];
479
488
  /** Optional guided tour. `true` = built-in; array/object = custom steps. Shows a "?" button. */
480
489
  tutorial?: NiceComponentTutorial;
481
490
  }