@aeriajs/types 0.0.123 → 0.0.125

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.
@@ -3,7 +3,7 @@ export type FinalOperator = 'equal' | 'in' | 'gt' | 'lt' | 'gte' | 'lte';
3
3
  export type FinalCondition<TSchema extends JsonSchema> = {
4
4
  operator: FinalOperator;
5
5
  term1: PropertiesWithId<TSchema>;
6
- term2: string | boolean | number | readonly unknown[] | Condition;
6
+ term2: string | boolean | number | null | readonly unknown[] | Condition;
7
7
  fromState?: boolean;
8
8
  };
9
9
  export type RegexCondition<TSchema extends JsonSchema> = {
@@ -39,19 +39,19 @@ export type CollectionAction<TDescription extends Description = Description> = C
39
39
  export type CollectionActions<TDescription extends Description = Description> = Record<string, CollectionAction<TDescription> & {
40
40
  button?: boolean;
41
41
  } | null>;
42
- export type FormLayout<TDescription extends Description> = {
43
- fields?: Partial<Record<PropertiesWithId<TDescription>, FormLayoutField<TDescription>>>;
44
- };
45
42
  export type FormLayoutField<TDescription extends Description> = {
46
43
  span?: number;
47
44
  verticalSpacing?: number;
48
- separator?: true | 'top' | 'bottom';
45
+ separator?: boolean | 'top' | 'bottom';
49
46
  if?: Condition<TDescription>;
50
47
  component?: {
51
48
  name: string;
52
49
  props?: Record<string, unknown>;
53
50
  };
54
51
  };
52
+ export type FormLayout<TDescription extends Description> = {
53
+ fields?: Partial<Record<PropertiesWithId<TDescription>, FormLayoutField<TDescription>>>;
54
+ };
55
55
  export type TableLayoutAction<TDescription extends Description> = {
56
56
  button?: boolean | Condition<TDescription>;
57
57
  if?: Condition<TDescription>;
@@ -11,7 +11,7 @@ export type PropertyInputType = typeof PROPERTY_INPUT_TYPES[number];
11
11
  export type PropertyInputElement = typeof PROPERTY_INPUT_ELEMENTS[number];
12
12
  export type PropertyFormat = typeof PROPERTY_FORMATS[number];
13
13
  export type PropertiesWithId<TJsonSchema extends JsonSchema> = Extract<keyof TJsonSchema['properties'], string> | '_id';
14
- export type RequiredProperties<TJsonSchema extends JsonSchema> = readonly PropertiesWithId<TJsonSchema>[] | Partial<Record<PropertiesWithId<TJsonSchema>, Condition<TJsonSchema> | boolean>>;
14
+ export type RequiredProperties<TJsonSchema extends JsonSchema = JsonSchema> = readonly PropertiesWithId<TJsonSchema>[] | Partial<Record<PropertiesWithId<TJsonSchema>, Condition<TJsonSchema> | boolean>>;
15
15
  export type JsonSchema<TJsonSchema extends JsonSchema = any> = {
16
16
  $id: string;
17
17
  type?: 'object';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
- "version": "0.0.123",
3
+ "version": "0.0.125",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",