@overmap-ai/forms 1.0.34 → 1.0.35
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/form/builder/list/sectionSerialization.d.ts +6 -0
- package/dist/form/schema/FieldSchema.d.ts +5 -0
- package/dist/forms.js +2920 -2731
- package/dist/forms.umd.cjs +70 -55
- package/package.json +2 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SerializedFieldSection } from '../../fields';
|
|
2
|
+
export interface ReseedOptions {
|
|
3
|
+
conditions?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const reseedSerializedSection: (sectionIdMap: Map<SerializedFieldSection["identifier"], SerializedFieldSection["identifier"]>, serialized: SerializedFieldSection, options?: ReseedOptions) => SerializedFieldSection;
|
|
6
|
+
export declare const reseedSerializedSections: (sections: SerializedFieldSection[], options?: ReseedOptions) => SerializedFieldSection[];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { DirectedGraph } from 'graphology';
|
|
1
2
|
import { FieldValues, SerializedFieldValues } from '../typings';
|
|
3
|
+
import { ReseedOptions } from '../builder/list/sectionSerialization';
|
|
2
4
|
import { SerializedCondition } from '../conditions';
|
|
3
5
|
import { Field, FieldSection, FieldSectionManager, SerializedFieldSection } from '../fields';
|
|
4
6
|
import { Observable } from '../Observable';
|
|
@@ -7,6 +9,7 @@ export declare class FieldSchema extends Observable<FieldSchema> implements Fiel
|
|
|
7
9
|
constructor(fields: FieldSection[]);
|
|
8
10
|
serialize(): SerializedFieldSection[];
|
|
9
11
|
static deserialize(serializedSections: SerializedFieldSection[]): FieldSchema;
|
|
12
|
+
static reseedFieldSections(serializedSections: SerializedFieldSection[], options?: ReseedOptions): SerializedFieldSection[];
|
|
10
13
|
private fieldObserver;
|
|
11
14
|
private initFields;
|
|
12
15
|
getFields(): Field[];
|
|
@@ -18,4 +21,6 @@ export declare class FieldSchema extends Observable<FieldSchema> implements Fiel
|
|
|
18
21
|
serializeValues(values: FieldValues): SerializedFieldValues;
|
|
19
22
|
deserializeConditions(conditions: SerializedCondition[]): import('..').Condition[];
|
|
20
23
|
initializeValues(values: FieldValues): FieldValues;
|
|
24
|
+
getSectionDependencyGraph(): DirectedGraph<import('graphology-types').Attributes, import('graphology-types').Attributes, import('graphology-types').Attributes>;
|
|
25
|
+
getDependenciesOfSection(fieldSectionId: FieldSection["identifier"]): FieldSection[];
|
|
21
26
|
}
|