@trustme24/flext 1.7.3 → 1.8.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.
package/dist/index.d.ts CHANGED
@@ -17,18 +17,27 @@ export type Field = {
17
17
  label?: string | null;
18
18
  descr?: string | null;
19
19
  hint?: string | null;
20
+ order?: number | null;
20
21
  options?: FieldValueOption[] | null;
21
22
  value?: FieldValue;
22
23
  isRequired: boolean;
24
+ extra?: {
25
+ macroName?: string | null;
26
+ absoluteOrder?: number | null;
27
+ };
23
28
  };
24
29
  export type MetadataModelNode = DataModelNode & {
25
30
  type: FieldType;
26
31
  label?: string | null;
27
32
  descr?: string | null;
28
33
  hint?: string | null;
34
+ order?: number | null;
29
35
  options?: FieldValueOption[] | null;
30
36
  value?: string | null;
31
37
  isRequired: boolean;
38
+ extra?: {
39
+ fieldName?: string | null;
40
+ };
32
41
  };
33
42
  export declare const DEFAULT_HELPER_NAME = "__default";
34
43
  export declare const DEFAULT_FIELD_TYPE: FieldType;
@@ -70,9 +79,11 @@ export declare class Flext extends SimpleFlext {
70
79
  get model(): MetadataModelNode[];
71
80
  get isValid(): boolean;
72
81
  }
82
+ export declare function ensureFieldOrder(val: any): number | null;
73
83
  export declare function ensureFieldValue(val: any): FieldValue;
74
84
  export declare function macroToModuleNames(val: Macro): string[];
75
85
  export declare function macroToField(val: Macro): Field;
76
86
  export declare function macroToFieldValueOption(val: Macro): FieldValueOption;
77
87
  export declare function applyValueOptionsToFields(options: FieldValueOption[], fields: Field[]): void;
88
+ export declare function applyAbsoluteOrderToFields(fields: Field[]): void;
78
89
  export default Flext;