@contember/binding 1.1.0-alpha.6 → 1.1.0-alpha.9
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/development/accessorTree/AccessorTreeStateContext.js +1 -3
- package/dist/development/accessorTree/AccessorTreeStateContext.js.map +1 -1
- package/dist/development/accessorTree/NormalizedPersistedData.js.map +1 -1
- package/dist/development/accessorTree/accessorTreeStateReducer.js +7 -1
- package/dist/development/accessorTree/accessorTreeStateReducer.js.map +1 -1
- package/dist/development/accessorTree/useAccessorTreeState.js +8 -1
- package/dist/development/accessorTree/useAccessorTreeState.js.map +1 -1
- package/dist/development/accessorTree/useDataBinding.js +18 -16
- package/dist/development/accessorTree/useDataBinding.js.map +1 -1
- package/dist/development/core/AccessorErrorManager.js +2 -2
- package/dist/development/core/AccessorErrorManager.js.map +1 -1
- package/dist/development/core/DataBinding.js +14 -13
- package/dist/development/core/DataBinding.js.map +1 -1
- package/dist/development/core/ErrorsPreprocessor.js +9 -13
- package/dist/development/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/development/core/MutationGenerator.js +79 -43
- package/dist/development/core/MutationGenerator.js.map +1 -1
- package/dist/development/core/RequestResponseNormalizer.js +93 -130
- package/dist/development/core/RequestResponseNormalizer.js.map +1 -1
- package/dist/development/core/StateInitializer.js +5 -1
- package/dist/development/core/StateInitializer.js.map +1 -1
- package/dist/development/core/TreeAugmenter.js +4 -4
- package/dist/development/core/TreeAugmenter.js.map +1 -1
- package/dist/development/core/TreeStore.js +4 -4
- package/dist/development/core/TreeStore.js.map +1 -1
- package/dist/development/core/VariableInputTransformer.js.map +1 -1
- package/dist/development/core/requestAliases/MutationAlias.js +2 -40
- package/dist/development/core/requestAliases/MutationAlias.js.map +1 -1
- package/dist/development/helperComponents/helpers/evaluateCondition.js.map +1 -1
- package/dist/production/accessorTree/AccessorTreeStateContext.js +1 -3
- package/dist/production/accessorTree/AccessorTreeStateContext.js.map +1 -1
- package/dist/production/accessorTree/NormalizedPersistedData.js.map +1 -1
- package/dist/production/accessorTree/accessorTreeStateReducer.js +7 -1
- package/dist/production/accessorTree/accessorTreeStateReducer.js.map +1 -1
- package/dist/production/accessorTree/useAccessorTreeState.js +8 -1
- package/dist/production/accessorTree/useAccessorTreeState.js.map +1 -1
- package/dist/production/accessorTree/useDataBinding.js +18 -16
- package/dist/production/accessorTree/useDataBinding.js.map +1 -1
- package/dist/production/core/AccessorErrorManager.js +2 -2
- package/dist/production/core/AccessorErrorManager.js.map +1 -1
- package/dist/production/core/DataBinding.js +14 -13
- package/dist/production/core/DataBinding.js.map +1 -1
- package/dist/production/core/ErrorsPreprocessor.js +9 -13
- package/dist/production/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/production/core/MutationGenerator.js +79 -43
- package/dist/production/core/MutationGenerator.js.map +1 -1
- package/dist/production/core/RequestResponseNormalizer.js +93 -130
- package/dist/production/core/RequestResponseNormalizer.js.map +1 -1
- package/dist/production/core/StateInitializer.js +5 -1
- package/dist/production/core/StateInitializer.js.map +1 -1
- package/dist/production/core/TreeAugmenter.js +4 -4
- package/dist/production/core/TreeAugmenter.js.map +1 -1
- package/dist/production/core/TreeStore.js +4 -4
- package/dist/production/core/TreeStore.js.map +1 -1
- package/dist/production/core/VariableInputTransformer.js.map +1 -1
- package/dist/production/core/requestAliases/MutationAlias.js +2 -33
- package/dist/production/core/requestAliases/MutationAlias.js.map +1 -1
- package/dist/production/helperComponents/helpers/evaluateCondition.js.map +1 -1
- package/dist/types/accessorTree/AccessorTreeState.d.ts +4 -0
- package/dist/types/accessorTree/AccessorTreeState.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts +4 -0
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTreeStateContext.d.ts +1 -1
- package/dist/types/accessorTree/AccessorTreeStateContext.d.ts.map +1 -1
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +2 -2
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +1 -1
- package/dist/types/accessorTree/QueryRequestResponse.d.ts +2 -2
- package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +1 -1
- package/dist/types/accessorTree/accessorTreeStateReducer.d.ts.map +1 -1
- package/dist/types/accessorTree/useAccessorTreeState.d.ts.map +1 -1
- package/dist/types/accessorTree/useDataBinding.d.ts.map +1 -1
- package/dist/types/core/AccessorErrorManager.d.ts +2 -1
- package/dist/types/core/AccessorErrorManager.d.ts.map +1 -1
- package/dist/types/core/DataBinding.d.ts +1 -1
- package/dist/types/core/DataBinding.d.ts.map +1 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts +3 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +1 -1
- package/dist/types/core/MutationGenerator.d.ts +25 -1
- package/dist/types/core/MutationGenerator.d.ts.map +1 -1
- package/dist/types/core/RequestResponseNormalizer.d.ts +6 -7
- package/dist/types/core/RequestResponseNormalizer.d.ts.map +1 -1
- package/dist/types/core/StateInitializer.d.ts.map +1 -1
- package/dist/types/core/TreeAugmenter.d.ts +3 -2
- package/dist/types/core/TreeAugmenter.d.ts.map +1 -1
- package/dist/types/core/TreeStore.d.ts +3 -2
- package/dist/types/core/TreeStore.d.ts.map +1 -1
- package/dist/types/core/VariableInputTransformer.d.ts +2 -2
- package/dist/types/core/VariableInputTransformer.d.ts.map +1 -1
- package/dist/types/core/requestAliases/MutationAlias.d.ts +0 -3
- package/dist/types/core/requestAliases/MutationAlias.d.ts.map +1 -1
- package/dist/types/core/requestAliases/index.d.ts +0 -3
- package/dist/types/core/requestAliases/index.d.ts.map +1 -1
- package/dist/types/core/state/FieldState.d.ts +2 -2
- package/dist/types/core/state/FieldState.d.ts.map +1 -1
- package/dist/types/coreComponents/Field.d.ts +1 -1
- package/dist/types/coreComponents/Field.d.ts.map +1 -1
- package/dist/types/entityEvents/useDerivedField.d.ts +2 -2
- package/dist/types/entityEvents/useDerivedField.d.ts.map +1 -1
- package/dist/types/helperComponents/FieldView.d.ts +7 -7
- package/dist/types/helperComponents/FieldView.d.ts.map +1 -1
- package/dist/types/helperComponents/SugaredField.d.ts +1 -1
- package/dist/types/helperComponents/SugaredField.d.ts.map +1 -1
- package/dist/types/helperComponents/helpers/evaluateCondition.d.ts +2 -2
- package/dist/types/helperComponents/helpers/evaluateCondition.d.ts.map +1 -1
- package/dist/types/markers/FieldMarker.d.ts +3 -3
- package/dist/types/markers/FieldMarker.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/FieldValue.d.ts +2 -2
- package/dist/types/treeParameters/primitives/FieldValue.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Json.d.ts +7 -0
- package/dist/types/treeParameters/primitives/Json.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/index.d.ts +1 -0
- package/dist/types/treeParameters/primitives/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/accessorTree/AccessorTreeState.ts +4 -0
- package/src/accessorTree/AccessorTreeStateAction.ts +4 -0
- package/src/accessorTree/AccessorTreeStateContext.ts +1 -3
- package/src/accessorTree/NormalizedPersistedData.ts +2 -2
- package/src/accessorTree/QueryRequestResponse.ts +2 -2
- package/src/accessorTree/accessorTreeStateReducer.ts +7 -1
- package/src/accessorTree/useAccessorTreeState.ts +8 -1
- package/src/accessorTree/useDataBinding.ts +15 -15
- package/src/core/AccessorErrorManager.ts +3 -2
- package/src/core/DataBinding.ts +17 -15
- package/src/core/ErrorsPreprocessor.ts +14 -16
- package/src/core/MutationGenerator.ts +112 -56
- package/src/core/RequestResponseNormalizer.ts +110 -161
- package/src/core/StateInitializer.ts +10 -6
- package/src/core/TreeAugmenter.ts +5 -4
- package/src/core/TreeStore.ts +5 -4
- package/src/core/VariableInputTransformer.ts +2 -2
- package/src/core/requestAliases/MutationAlias.ts +2 -57
- package/src/core/requestAliases/index.ts +0 -3
- package/src/core/state/FieldState.ts +2 -2
- package/src/helperComponents/helpers/evaluateCondition.ts +2 -2
- package/src/treeParameters/primitives/FieldValue.ts +2 -2
- package/src/treeParameters/primitives/Json.ts +7 -0
- package/src/treeParameters/primitives/index.ts +1 -0
- package/dist/development/core/requestAliases/mutationOperationSubTreeType.js +0 -6
- package/dist/development/core/requestAliases/mutationOperationSubTreeType.js.map +0 -1
- package/dist/development/core/requestAliases/mutationOperationType.js +0 -7
- package/dist/development/core/requestAliases/mutationOperationType.js.map +0 -1
- package/dist/production/core/requestAliases/mutationOperationSubTreeType.js +0 -6
- package/dist/production/core/requestAliases/mutationOperationSubTreeType.js.map +0 -1
- package/dist/production/core/requestAliases/mutationOperationType.js +0 -7
- package/dist/production/core/requestAliases/mutationOperationType.js.map +0 -1
- package/dist/types/core/requestAliases/TopLevelMutationOperation.d.ts +0 -11
- package/dist/types/core/requestAliases/TopLevelMutationOperation.d.ts.map +0 -1
- package/dist/types/core/requestAliases/mutationOperationSubTreeType.d.ts +0 -5
- package/dist/types/core/requestAliases/mutationOperationSubTreeType.d.ts.map +0 -1
- package/dist/types/core/requestAliases/mutationOperationType.d.ts +0 -6
- package/dist/types/core/requestAliases/mutationOperationType.d.ts.map +0 -1
- package/src/core/requestAliases/TopLevelMutationOperation.ts +0 -11
- package/src/core/requestAliases/mutationOperationSubTreeType.ts +0 -4
- package/src/core/requestAliases/mutationOperationType.ts +0 -5
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ErrorAccessor } from '../accessors';
|
|
2
2
|
import type { MutationDataResponse } from '../accessorTree';
|
|
3
3
|
import type { EntityId, FieldName, PlaceholderName } from '../treeParameters';
|
|
4
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
4
5
|
declare class ErrorsPreprocessor {
|
|
5
6
|
private readonly requestResponse;
|
|
6
|
-
|
|
7
|
+
private readonly operations;
|
|
8
|
+
constructor(requestResponse: MutationDataResponse, operations: SubMutationOperation[]);
|
|
7
9
|
preprocess(): ErrorsPreprocessor.ErrorTreeRoot;
|
|
8
10
|
private processMutationResponse;
|
|
9
11
|
private getErrorNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorsPreprocessor.d.ts","sourceRoot":"","sources":["../../../src/core/ErrorsPreprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAkB,oBAAoB,EAAqC,MAAM,iBAAiB,CAAA;AAC9G,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"ErrorsPreprocessor.d.ts","sourceRoot":"","sources":["../../../src/core/ErrorsPreprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAkB,oBAAoB,EAAqC,MAAM,iBAAiB,CAAA;AAC9G,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,cAAM,kBAAkB;IAEtB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBADV,eAAe,EAAE,oBAAoB,EACrC,UAAU,EAAE,oBAAoB,EAAE;IAG7C,UAAU,IAAI,kBAAkB,CAAC,aAAa;IA0CrD,OAAO,CAAC,uBAAuB;IAa/B,OAAO,CAAC,YAAY;IAmFpB,OAAO,CAAC,WAAW;IAuCnB,OAAO,CAAC,qBAAqB;IAc7B,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,iBAAiB;CAKzB;AAED,kBAAU,kBAAkB,CAAC;IAC5B,UAAiB,aAAa;QAC7B,UAAU,EAAE,aAAa,CAAC,eAAe,EAAE,CAAA;QAC3C,SAAS,EAAE,aAAa,CAAC,cAAc,EAAE,CAAA;KACzC;IAED,UAAiB,aAAc,SAAQ,aAAa;QACnD,QAAQ,EAAE,MAAM,CAAA;KAChB;IAED,UAAiB,UAAW,SAAQ,aAAa;QAChD,QAAQ,EAAE,OAAO,CAAA;QACjB,QAAQ,EAAE,GAAG,CAAC,SAAS,GAAG,QAAQ,EAAE,SAAS,CAAC,CAAA;KAC9C;IAED,KAAY,SAAS,GAAG,UAAU,GAAG,aAAa,CAAA;IAElD,KAAY,aAAa,GAAG,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAAA;IAE3D,MAAa,uBAAwB,SAAQ,KAAK;KAAG;CACrD;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
+
import { EntityFieldMarkers } from '../markers';
|
|
2
|
+
import type { EntityId, PlaceholderName } from '../treeParameters';
|
|
1
3
|
import type { TreeStore } from './TreeStore';
|
|
4
|
+
export declare type SubMutationOperation = {
|
|
5
|
+
alias: string;
|
|
6
|
+
subTreePlaceholder: PlaceholderName;
|
|
7
|
+
subTreeType: 'list' | 'single';
|
|
8
|
+
} & ({
|
|
9
|
+
type: 'delete';
|
|
10
|
+
id: EntityId;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'update';
|
|
13
|
+
markers: EntityFieldMarkers;
|
|
14
|
+
id: EntityId;
|
|
15
|
+
} | {
|
|
16
|
+
type: 'create';
|
|
17
|
+
markers: EntityFieldMarkers;
|
|
18
|
+
id: EntityId;
|
|
19
|
+
});
|
|
20
|
+
export declare type PersistMutationResult = {
|
|
21
|
+
query: string;
|
|
22
|
+
operations: SubMutationOperation[];
|
|
23
|
+
};
|
|
2
24
|
export declare class MutationGenerator {
|
|
3
25
|
private readonly treeStore;
|
|
26
|
+
private aliasCounter;
|
|
4
27
|
constructor(treeStore: TreeStore);
|
|
5
|
-
getPersistMutation():
|
|
28
|
+
getPersistMutation(): PersistMutationResult | undefined;
|
|
6
29
|
private addSubMutation;
|
|
7
30
|
private getNodeFragmentName;
|
|
8
31
|
private addDeleteMutation;
|
|
@@ -14,5 +37,6 @@ export declare class MutationGenerator {
|
|
|
14
37
|
private registerCreateEntityListPart;
|
|
15
38
|
private registerUpdateMutationPart;
|
|
16
39
|
private transformFieldValue;
|
|
40
|
+
private createAlias;
|
|
17
41
|
}
|
|
18
42
|
//# sourceMappingURL=MutationGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/MutationGenerator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MutationGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/MutationGenerator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAA4D,MAAM,YAAY,CAAA;AACzG,OAAO,KAAK,EAAE,QAAQ,EAA0B,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAa1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAM5C,oBAAY,oBAAoB,GAC7B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,eAAe,CAAC;IACpC,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC9B,GACC,CACC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,EAAE,EAAE,QAAQ,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,kBAAkB,CAAC;IAAC,EAAE,EAAE,QAAQ,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,kBAAkB,CAAC;IAAC,EAAE,EAAE,QAAQ,CAAA;CAAE,CAC/D,CAAA;AAEF,oBAAY,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,oBAAoB,EAAE,CAAA;CAClC,CAAA;AAGD,qBAAa,iBAAiB;IAIV,OAAO,CAAC,QAAQ,CAAC,SAAS;IAF7C,OAAO,CAAC,YAAY,CAAI;gBAEY,SAAS,EAAE,SAAS;IAGjD,kBAAkB,IAAI,qBAAqB,GAAG,SAAS;IA4E9D,OAAO,CAAC,cAAc;IAiFtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,iBAAiB;IAgDzB,OAAO,CAAC,iBAAiB;IA6CzB,OAAO,CAAC,0BAA0B;IAgKlC,OAAO,CAAC,uBAAuB;IAa/B,OAAO,CAAC,wBAAwB;IA4BhC,OAAO,CAAC,4BAA4B;IAoBpC,OAAO,CAAC,0BAA0B;IAiNlC,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,WAAW;CAGnB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { NormalizedPersistedData, ReceivedDataTree } from '../accessorTree';
|
|
2
|
+
import { MarkerTreeRoot } from '../markers';
|
|
3
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
2
4
|
export declare class RequestResponseNormalizer {
|
|
3
|
-
static mergeInQueryResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree):
|
|
4
|
-
static mergeInMutationResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree):
|
|
5
|
-
private static
|
|
6
|
-
private static
|
|
7
|
-
private static mergeInFieldData;
|
|
8
|
-
private static mergeInEntityData;
|
|
9
|
-
private static rejectData;
|
|
5
|
+
static mergeInQueryResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree, markerTree: MarkerTreeRoot): void;
|
|
6
|
+
static mergeInMutationResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree, operations: SubMutationOperation[]): void;
|
|
7
|
+
private static processEntityData;
|
|
8
|
+
private static extractId;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=RequestResponseNormalizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestResponseNormalizer.d.ts","sourceRoot":"","sources":["../../../src/core/RequestResponseNormalizer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RequestResponseNormalizer.d.ts","sourceRoot":"","sources":["../../../src/core/RequestResponseNormalizer.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EAEvB,gBAAgB,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,OAAO,EAON,cAAc,EACd,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAG1D,qBAAa,yBAAyB;WACvB,oBAAoB,CACjC,QAAQ,EAAE,uBAAuB,EACjC,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,cAAc,GACxB,IAAI;WA+BO,uBAAuB,CACpC,QAAQ,EAAE,uBAAuB,EACjC,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,oBAAoB,EAAE,GAChC,IAAI;IAuDP,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAkChC,OAAO,CAAC,MAAM,CAAC,SAAS;CASxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateInitializer.d.ts","sourceRoot":"","sources":["../../../src/core/StateInitializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAqC,MAAM,cAAc,CAAA;AACrG,OAAO,EAA4B,SAAS,EAAsC,MAAM,iBAAiB,CAAA;AAEzG,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EAInB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EACX,wBAAwB,
|
|
1
|
+
{"version":3,"file":"StateInitializer.d.ts","sourceRoot":"","sources":["../../../src/core/StateInitializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAqC,MAAM,cAAc,CAAA;AACrG,OAAO,EAA4B,SAAS,EAAsC,MAAM,iBAAiB,CAAA;AAEzG,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EAInB,MAAM,YAAY,CAAA;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mCAAmC;IAgC3C,OAAO,CAAC,2BAA2B;IAY5B,8BAA8B,CACpC,KAAK,EAAE,gBAAgB,GAAG,oBAAoB,EAC9C,UAAU,EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS;IAepD,kCAAkC,CAAC,SAAS,EAAE,oBAAoB,GAAG,wBAAwB,GAAG,SAAS;IAmBhH,OAAO,CAAC,sCAAsC;IAW9C,OAAO,CAAC,2CAA2C;IAWnD,OAAO,CAAC,iCAAiC;CAIzC"}
|
|
@@ -4,14 +4,15 @@ import type { TreeRootId } from '../treeParameters';
|
|
|
4
4
|
import { EventManager } from './EventManager';
|
|
5
5
|
import type { StateInitializer } from './StateInitializer';
|
|
6
6
|
import type { TreeStore } from './TreeStore';
|
|
7
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
7
8
|
export declare class TreeAugmenter {
|
|
8
9
|
private readonly eventManager;
|
|
9
10
|
private readonly stateInitializer;
|
|
10
11
|
private readonly treeStore;
|
|
11
12
|
constructor(eventManager: EventManager, stateInitializer: StateInitializer, treeStore: TreeStore);
|
|
12
|
-
extendPersistedData(newPersistedData: ReceivedDataTree): void;
|
|
13
|
+
extendPersistedData(newPersistedData: ReceivedDataTree, markerTree: MarkerTreeRoot): void;
|
|
13
14
|
extendTreeStates(newTreeId: TreeRootId | undefined, newMarkerTree: MarkerTreeRoot): void;
|
|
14
|
-
updatePersistedData(response: ReceivedDataTree): void;
|
|
15
|
+
updatePersistedData(response: ReceivedDataTree, operations: SubMutationOperation[]): void;
|
|
15
16
|
resetCreatingSubTrees(): void;
|
|
16
17
|
private updateRealmIdIfNecessary;
|
|
17
18
|
private updateEntityRealmPersistedData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeAugmenter.d.ts","sourceRoot":"","sources":["../../../src/core/TreeAugmenter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,gBAAgB,EAIhB,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,cAAc,EAA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O,CAAC,8BAA8B;IAiDtC,OAAO,CAAC,6BAA6B;CAuDrC"}
|
|
@@ -4,6 +4,7 @@ import { MarkerTreeRoot } from '../markers';
|
|
|
4
4
|
import type { Alias, EntityId, EntityRealmKey, FieldName, PlaceholderName, SugaredQualifiedEntityList, SugaredQualifiedSingleEntity, SugaredUnconstrainedQualifiedEntityList, SugaredUnconstrainedQualifiedSingleEntity, TreeRootId } from '../treeParameters';
|
|
5
5
|
import type { Schema } from './schema';
|
|
6
6
|
import type { EntityListState, EntityRealmState, EntityRealmStateStub, EntityState, RootStateNode } from './state';
|
|
7
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
7
8
|
export declare class TreeStore {
|
|
8
9
|
readonly entityStore: Map<UniqueEntityId, EntityState>;
|
|
9
10
|
readonly entityRealmStore: Map<EntityRealmKey, EntityRealmState | EntityRealmStateStub>;
|
|
@@ -12,8 +13,8 @@ export declare class TreeStore {
|
|
|
12
13
|
private _schema;
|
|
13
14
|
readonly persistedData: NormalizedPersistedData;
|
|
14
15
|
constructor();
|
|
15
|
-
mergeInQueryResponse(response: ReceivedDataTree): void;
|
|
16
|
-
mergeInMutationResponse(response: ReceivedDataTree): void;
|
|
16
|
+
mergeInQueryResponse(response: ReceivedDataTree, markerTree: MarkerTreeRoot): void;
|
|
17
|
+
mergeInMutationResponse(response: ReceivedDataTree, operations: SubMutationOperation[]): void;
|
|
17
18
|
setSchema(newSchema: Schema): void;
|
|
18
19
|
get persistedEntityData(): PersistedEntityDataStore;
|
|
19
20
|
get subTreePersistedData(): SubTreeDataStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeStore.d.ts","sourceRoot":"","sources":["../../../src/core/TreeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ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AAe,CAAC,MAAM,EAAE,WAAW;IAQnC,sBAAsB,CAAC,aAAa,EAAE,cAAc,GAAG,OAAO;CAkBrE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Environment, VariableFieldValue } from '../dao';
|
|
2
|
-
import type { FieldValue, OptionallyVariableFieldValue
|
|
2
|
+
import type { FieldValue, OptionallyVariableFieldValue } from '../treeParameters';
|
|
3
3
|
export declare class VariableInputTransformer {
|
|
4
4
|
static transformValue(value: OptionallyVariableFieldValue, environment: Environment): FieldValue;
|
|
5
|
-
static transformVariableFieldValue(variableFieldValue: VariableFieldValue, environment: Environment):
|
|
5
|
+
static transformVariableFieldValue(variableFieldValue: VariableFieldValue, environment: Environment): FieldValue;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=VariableInputTransformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariableInputTransformer.d.ts","sourceRoot":"","sources":["../../../src/core/VariableInputTransformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"VariableInputTransformer.d.ts","sourceRoot":"","sources":["../../../src/core/VariableInputTransformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAEjF,qBAAa,wBAAwB;WACtB,cAAc,CAAC,KAAK,EAAE,4BAA4B,EAAE,WAAW,EAAE,WAAW,GAAG,UAAU;WAOzF,2BAA2B,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,GAAG,UAAU;CAavH"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { RuntimeId } from '../../accessorTree';
|
|
2
|
-
import type { TopLevelMutationOperation } from './TopLevelMutationOperation';
|
|
3
2
|
export declare class MutationAlias {
|
|
4
|
-
static encodeTopLevel(operation: TopLevelMutationOperation): string;
|
|
5
|
-
static decodeTopLevel(alias: string): TopLevelMutationOperation | undefined;
|
|
6
3
|
static encodeEntityId(entityId: RuntimeId): string;
|
|
7
4
|
static decodeEntityId(alias: string): RuntimeId['value'];
|
|
8
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationAlias.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/MutationAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"MutationAlias.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/MutationAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,qBAAa,aAAa;WACX,cAAc,CAAC,QAAQ,EAAE,SAAS,GAAG,MAAM;WAI3C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC;CAK/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ErrorAccessor, FieldAccessor } from '../../accessors';
|
|
2
2
|
import type { FieldMarker } from '../../markers';
|
|
3
|
-
import type { FieldEventListenerStore, FieldName, FieldValue
|
|
3
|
+
import type { FieldEventListenerStore, FieldName, FieldValue } from '../../treeParameters';
|
|
4
4
|
import type { EntityRealmState } from './EntityRealmState';
|
|
5
5
|
export interface FieldState<Value extends FieldValue = FieldValue> {
|
|
6
6
|
type: 'field';
|
|
@@ -11,7 +11,7 @@ export interface FieldState<Value extends FieldValue = FieldValue> {
|
|
|
11
11
|
readonly getAccessor: () => FieldAccessor;
|
|
12
12
|
hasUnpersistedChanges: boolean;
|
|
13
13
|
parent: EntityRealmState;
|
|
14
|
-
persistedValue:
|
|
14
|
+
persistedValue: Value | undefined;
|
|
15
15
|
placeholderName: FieldName;
|
|
16
16
|
touchLog: Set<string> | undefined;
|
|
17
17
|
value: Value | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldState.d.ts","sourceRoot":"","sources":["../../../../src/core/state/FieldState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FieldState.d.ts","sourceRoot":"","sources":["../../../../src/core/state/FieldState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,MAAM,WAAW,UAAU,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU;IAChE,IAAI,EAAE,OAAO,CAAA;IAEb,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IAC1C,MAAM,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,cAAc,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IAC1D,WAAW,EAAE,WAAW,CAAA;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,aAAa,CAAA;IACzC,qBAAqB,EAAE,OAAO,CAAA;IAC9B,MAAM,EAAE,gBAAgB,CAAA;IACxB,cAAc,EAAE,KAAK,GAAG,SAAS,CAAA;IACjC,eAAe,EAAE,SAAS,CAAA;IAC1B,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IACjC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACnB"}
|
|
@@ -7,5 +7,5 @@ export interface FieldRuntimeProps<Persisted extends FieldValue = FieldValue> {
|
|
|
7
7
|
}
|
|
8
8
|
export interface FieldProps<Persisted extends FieldValue = FieldValue> extends FieldBasicProps, FieldRuntimeProps<Persisted> {
|
|
9
9
|
}
|
|
10
|
-
export declare const Field: <Persisted extends
|
|
10
|
+
export declare const Field: <Persisted extends FieldValue = FieldValue>(props: FieldProps<Persisted>) => ReactElement;
|
|
11
11
|
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAI/E,MAAM,WAAW,eAAgB,SAAQ,0BAA0B;CAAG;AAEtE,MAAM,WAAW,iBAAiB,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU;IAC3E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,SAAS,CAAA;CAC/C;AAED,MAAM,WAAW,UAAU,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU,CACpE,SAAQ,eAAe,EACtB,iBAAiB,CAAC,SAAS,CAAC;CAAG;AAEjC,eAAO,MAAM,KAAK,+
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAI/E,MAAM,WAAW,eAAgB,SAAQ,0BAA0B;CAAG;AAEtE,MAAM,WAAW,iBAAiB,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU;IAC3E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,SAAS,CAAA;CAC/C;AAED,MAAM,WAAW,UAAU,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU,CACpE,SAAQ,eAAe,EACtB,iBAAiB,CAAC,SAAS,CAAC;CAAG;AAEjC,eAAO,MAAM,KAAK,+EAwBgE,YAAY,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { SugaredRelativeSingleField } from '../treeParameters';
|
|
1
|
+
import type { FieldValue, SugaredRelativeSingleField } from '../treeParameters';
|
|
2
2
|
/**
|
|
3
3
|
* Derived fields are meant for cases when the user is expected to primarily edit the `sourceField` whose optionally
|
|
4
4
|
* transformed value is then copied to the `derivedField`. This happens after each update until either the `derivedField`
|
|
5
5
|
* is touched or until it is persisted at which point the tie between the fields is automatically severed.
|
|
6
6
|
* @deprecated This is fundamentally wrong and shouldn't be used for now.
|
|
7
7
|
*/
|
|
8
|
-
export declare const useDerivedField: <SourceValue extends
|
|
8
|
+
export declare const useDerivedField: <SourceValue extends FieldValue = FieldValue>(sourceField: string | SugaredRelativeSingleField, derivedField: string | SugaredRelativeSingleField, transform?: (sourceValue: SourceValue | null) => SourceValue | null, agent?: string) => void;
|
|
9
9
|
//# sourceMappingURL=useDerivedField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDerivedField.d.ts","sourceRoot":"","sources":["../../../src/entityEvents/useDerivedField.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useDerivedField.d.ts","sourceRoot":"","sources":["../../../src/entityEvents/useDerivedField.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAO/E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,6DACd,MAAM,GAAG,0BAA0B,gBAClC,MAAM,GAAG,0BAA0B,+EAE1C,MAAM,SA2Cb,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { FieldAccessor } from '../accessors';
|
|
3
|
-
import type { SugaredRelativeSingleField } from '../treeParameters';
|
|
3
|
+
import type { FieldValue, SugaredRelativeSingleField } from '../treeParameters';
|
|
4
4
|
interface FieldViewCommonProps {
|
|
5
5
|
fallbackIfUnpersisted?: ReactNode;
|
|
6
6
|
}
|
|
@@ -16,27 +16,27 @@ declare type CP = FieldViewCommonProps;
|
|
|
16
16
|
declare type RN = ReactNode;
|
|
17
17
|
declare type REN = ReactElement | null;
|
|
18
18
|
export declare const FieldView: {
|
|
19
|
-
<FV1 extends
|
|
19
|
+
<FV1 extends FieldValue>(props: FieldViewCommonProps & {
|
|
20
20
|
field: SRSF;
|
|
21
21
|
render: (field1: FieldAccessor<FV1>) => RN;
|
|
22
22
|
}): REN;
|
|
23
|
-
<FV1_1 extends
|
|
23
|
+
<FV1_1 extends FieldValue>(props: FieldViewCommonProps & {
|
|
24
24
|
fields: [SRSF];
|
|
25
25
|
render: (field1: FieldAccessor<FV1_1>) => RN;
|
|
26
26
|
}): REN;
|
|
27
|
-
<FV1_2 extends
|
|
27
|
+
<FV1_2 extends FieldValue, FV2 extends FieldValue>(props: FieldViewCommonProps & {
|
|
28
28
|
fields: [SRSF, SRSF];
|
|
29
29
|
render: (field1: FieldAccessor<FV1_2>, field2: FieldAccessor<FV2>) => RN;
|
|
30
30
|
}): REN;
|
|
31
|
-
<FV1_3 extends
|
|
31
|
+
<FV1_3 extends FieldValue, FV2_1 extends FieldValue, FV3 extends FieldValue>(props: FieldViewCommonProps & {
|
|
32
32
|
fields: [SRSF, SRSF, SRSF];
|
|
33
33
|
render: (field1: FieldAccessor<FV1_3>, field2: FieldAccessor<FV2_1>, field3: FieldAccessor<FV3>) => RN;
|
|
34
34
|
}): REN;
|
|
35
|
-
<FV1_4 extends
|
|
35
|
+
<FV1_4 extends FieldValue, FV2_2 extends FieldValue, FV3_1 extends FieldValue, FV4 extends FieldValue>(props: FieldViewCommonProps & {
|
|
36
36
|
fields: [SRSF, SRSF, SRSF, SRSF];
|
|
37
37
|
render: (field1: FieldAccessor<FV1_4>, field2: FieldAccessor<FV2_2>, field3: FieldAccessor<FV3_1>, field4: FieldAccessor<FV4>) => RN;
|
|
38
38
|
}): REN;
|
|
39
|
-
<FV1_5 extends
|
|
39
|
+
<FV1_5 extends FieldValue, FV2_3 extends FieldValue, FV3_2 extends FieldValue, FV4_1 extends FieldValue, FV5 extends FieldValue>(props: FieldViewCommonProps & {
|
|
40
40
|
fields: [SRSF, SRSF, SRSF, SRSF, SRSF];
|
|
41
41
|
render: (field1: FieldAccessor<FV1_5>, field2: FieldAccessor<FV2_3>, field3: FieldAccessor<FV3_2>, field4: FieldAccessor<FV4_1>, field5: FieldAccessor<FV5>) => RN;
|
|
42
42
|
}): REN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldView.d.ts","sourceRoot":"","sources":["../../../src/helperComponents/FieldView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAIjD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"FieldView.d.ts","sourceRoot":"","sources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QAEN,GAAG;YACE,cAAc,GAAG,GAAG;CAC5B,CAAA"}
|
|
@@ -5,5 +5,5 @@ import { ReactElement } from 'react';
|
|
|
5
5
|
export interface SugaredFieldProps<Persisted extends FieldValue = FieldValue> extends Omit<FieldProps<Persisted>, 'field'> {
|
|
6
6
|
field: string | SugaredRelativeSingleField;
|
|
7
7
|
}
|
|
8
|
-
export declare const SugaredField: <Persisted extends
|
|
8
|
+
export declare const SugaredField: <Persisted extends FieldValue = FieldValue>(props: SugaredFieldProps<Persisted>) => ReactElement;
|
|
9
9
|
//# sourceMappingURL=SugaredField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SugaredField.d.ts","sourceRoot":"","sources":["../../../src/helperComponents/SugaredField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,WAAW,iBAAiB,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IACzH,KAAK,EAAE,MAAM,GAAG,0BAA0B,CAAA;CAC1C;AAED,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"SugaredField.d.ts","sourceRoot":"","sources":["../../../src/helperComponents/SugaredField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,WAAW,iBAAiB,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IACzH,KAAK,EAAE,MAAM,GAAG,0BAA0B,CAAA;CAC1C;AAED,eAAO,MAAM,YAAY,sFAKiF,YAAY,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GraphQlLiteral, Input } from '@contember/client';
|
|
2
|
-
import {
|
|
3
|
-
export declare const evaluateCondition: (value:
|
|
2
|
+
import { FieldValue } from '../../treeParameters';
|
|
3
|
+
export declare const evaluateCondition: (value: FieldValue | null, condition: Input.Condition<Input.ColumnValue<GraphQlLiteral>>) => boolean;
|
|
4
4
|
//# sourceMappingURL=evaluateCondition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluateCondition.d.ts","sourceRoot":"","sources":["../../../../src/helperComponents/helpers/evaluateCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"evaluateCondition.d.ts","sourceRoot":"","sources":["../../../../src/helperComponents/helpers/evaluateCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAUjD,eAAO,MAAM,iBAAiB,UAAW,UAAU,GAAG,IAAI,aAAa,MAAM,SAAS,CAAC,MAAM,WAAW,CAAC,cAAc,CAAC,CAAC,YAwCvH,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldName } from '../treeParameters';
|
|
1
|
+
import type { FieldName, FieldValue } from '../treeParameters';
|
|
2
2
|
/**
|
|
3
3
|
* A nonbearing field is only defined in context of create mutations. An entity will be created if and only if some
|
|
4
4
|
* other fields (not just nonbearing fields) are filled as well. This is particularly useful for programmatically
|
|
@@ -6,9 +6,9 @@ import type { FieldName } from '../treeParameters';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class FieldMarker {
|
|
8
8
|
readonly fieldName: FieldName;
|
|
9
|
-
readonly defaultValue?:
|
|
9
|
+
readonly defaultValue?: FieldValue | undefined;
|
|
10
10
|
readonly isNonbearing: boolean;
|
|
11
11
|
readonly placeholderName: string;
|
|
12
|
-
constructor(fieldName: FieldName, defaultValue?:
|
|
12
|
+
constructor(fieldName: FieldName, defaultValue?: FieldValue | undefined, isNonbearing?: boolean);
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=FieldMarker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldMarker.d.ts","sourceRoot":"","sources":["../../../src/markers/FieldMarker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"FieldMarker.d.ts","sourceRoot":"","sources":["../../../src/markers/FieldMarker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAG9D;;;;GAIG;AACH,qBAAa,WAAW;aAIN,SAAS,EAAE,SAAS;aACpB,YAAY,CAAC;aACb,YAAY,EAAE,OAAO;IALtC,SAAgB,eAAe,EAAE,MAAM,CAAA;gBAGtB,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,wBAAY,EACzB,YAAY,GAAE,OAAe;CAI9C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VariableFieldValue } from '../../dao';
|
|
2
|
-
import
|
|
3
|
-
export declare type FieldValue =
|
|
2
|
+
import { JsonValue } from './Json';
|
|
3
|
+
export declare type FieldValue = JsonValue;
|
|
4
4
|
export declare type OptionallyVariableFieldValue = FieldValue | VariableFieldValue;
|
|
5
5
|
//# sourceMappingURL=FieldValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldValue.d.ts","sourceRoot":"","sources":["../../../../src/treeParameters/primitives/FieldValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"FieldValue.d.ts","sourceRoot":"","sources":["../../../../src/treeParameters/primitives/FieldValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,oBAAY,UAAU,GAAG,SAAS,CAAA;AAElC,oBAAY,4BAA4B,GAAG,UAAU,GAAG,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface JsonObject<Ext = never> {
|
|
2
|
+
[key: string]: JsonValue<Ext>;
|
|
3
|
+
}
|
|
4
|
+
export interface JsonArray<Ext = never> extends Array<JsonValue<Ext>> {
|
|
5
|
+
}
|
|
6
|
+
export declare type JsonValue<Ext = never> = string | number | boolean | null | JsonObject<Ext> | JsonArray<Ext> | Ext;
|
|
7
|
+
//# sourceMappingURL=Json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../../src/treeParameters/primitives/Json.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU,CAAC,GAAG,GAAG,KAAK;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;CAC7B;AAED,MAAM,WAAW,SAAS,CAAC,GAAG,GAAG,KAAK,CAAE,SAAQ,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CAAG;AAExE,oBAAY,SAAS,CAAC,GAAG,GAAG,KAAK,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/treeParameters/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mCAAmC,CAAA;AACjD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/treeParameters/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mCAAmC,CAAA;AACjD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
|