@aeriajs/types 0.0.123 → 0.0.124
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/condition.d.ts +1 -1
- package/dist/description.d.ts +4 -4
- package/package.json +1 -1
package/dist/condition.d.ts
CHANGED
|
@@ -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> = {
|
package/dist/description.d.ts
CHANGED
|
@@ -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?:
|
|
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>;
|