@myrmidon/gve-core 7.0.14 → 7.0.16
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/package.json
CHANGED
|
@@ -938,6 +938,7 @@ interface FeatureDefinitions {
|
|
|
938
938
|
* as a whole.
|
|
939
939
|
*/
|
|
940
940
|
declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
941
|
+
private _dialogService;
|
|
941
942
|
private readonly _subs;
|
|
942
943
|
private readonly _nanoid;
|
|
943
944
|
/**
|
|
@@ -981,6 +982,18 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
981
982
|
* The list of source types when it's a closed set.
|
|
982
983
|
*/
|
|
983
984
|
readonly sourceTypes: _angular_core.InputSignal<LabeledId[] | undefined>;
|
|
985
|
+
/**
|
|
986
|
+
* The 1-based ordinal number of the edited operation among its siblings
|
|
987
|
+
* in the chain. Used to enable/disable the previous/next navigation
|
|
988
|
+
* buttons and to compute the requested ordinal when they are clicked.
|
|
989
|
+
*/
|
|
990
|
+
readonly operationOrdinal: _angular_core.InputSignal<number | undefined>;
|
|
991
|
+
/**
|
|
992
|
+
* The total number of operations in the chain the edited operation
|
|
993
|
+
* belongs to. Used together with `operationOrdinal` to enable/disable
|
|
994
|
+
* the previous/next navigation buttons.
|
|
995
|
+
*/
|
|
996
|
+
readonly operationCount: _angular_core.InputSignal<number | undefined>;
|
|
984
997
|
/**
|
|
985
998
|
* Emitted when the operation preview is requested.
|
|
986
999
|
*/
|
|
@@ -989,6 +1002,13 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
989
1002
|
* Emitted when operation editing is cancelled.
|
|
990
1003
|
*/
|
|
991
1004
|
readonly operationCancel: _angular_core.OutputEmitterRef<void>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Emitted when the user asks to edit another operation of the chain via
|
|
1007
|
+
* the previous/next navigation buttons. The parent component should
|
|
1008
|
+
* handle this by loading the operation at the requested 1-based ordinal
|
|
1009
|
+
* number into this editor.
|
|
1010
|
+
*/
|
|
1011
|
+
readonly operationOrdinalRequest: _angular_core.OutputEmitterRef<number>;
|
|
992
1012
|
readonly tabIndex: _angular_core.WritableSignal<number>;
|
|
993
1013
|
readonly id: _angular_core.WritableSignal<string | undefined>;
|
|
994
1014
|
readonly hasTo: _angular_core.WritableSignal<boolean>;
|
|
@@ -998,6 +1018,7 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
998
1018
|
readonly editedElementId: _angular_core.WritableSignal<string | undefined>;
|
|
999
1019
|
readonly editedSource: _angular_core.WritableSignal<OperationSource | undefined>;
|
|
1000
1020
|
readonly editedSourceIndex: _angular_core.WritableSignal<number>;
|
|
1021
|
+
readonly peepholeWindowWidth: _angular_core.InputSignal<number>;
|
|
1001
1022
|
readonly peepholeRange: _angular_core.WritableSignal<OpBaseTextRange>;
|
|
1002
1023
|
/**
|
|
1003
1024
|
* The text to feed the at/run peephole preview: the preceding text
|
|
@@ -1024,7 +1045,7 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
1024
1045
|
newTextHidden: FormControl<boolean>;
|
|
1025
1046
|
dpFeatures: FormControl<Feature[]>;
|
|
1026
1047
|
form: FormGroup;
|
|
1027
|
-
constructor(formBuilder: FormBuilder);
|
|
1048
|
+
constructor(formBuilder: FormBuilder, _dialogService: DialogService);
|
|
1028
1049
|
ngOnInit(): void;
|
|
1029
1050
|
ngOnDestroy(): void;
|
|
1030
1051
|
private toggleLfEscape;
|
|
@@ -1037,12 +1058,15 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
1037
1058
|
private updateArgsUI;
|
|
1038
1059
|
private updateForm;
|
|
1039
1060
|
cancel(): void;
|
|
1061
|
+
private requestOperationOrdinal;
|
|
1062
|
+
editPreviousOperation(): void;
|
|
1063
|
+
editNextOperation(): void;
|
|
1040
1064
|
private getOperation;
|
|
1041
1065
|
deleteSource(index: number): void;
|
|
1042
1066
|
requestPreview(): void;
|
|
1043
1067
|
save(): void;
|
|
1044
1068
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChainOperationEditorComponent, never>;
|
|
1045
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainOperationEditorComponent, "gve-chain-operation-editor", never, { "operation": { "alias": "operation"; "required": false; "isSignal": true; }; "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "hidePreview": { "alias": "hidePreview"; "required": false; "isSignal": true; }; "featureDefs": { "alias": "featureDefs"; "required": false; "isSignal": true; }; "rangePatch": { "alias": "rangePatch"; "required": false; "isSignal": true; }; "precedingText": { "alias": "precedingText"; "required": false; "isSignal": true; }; "multiValuedFeatureIds": { "alias": "multiValuedFeatureIds"; "required": false; "isSignal": true; }; "sourceIds": { "alias": "sourceIds"; "required": false; "isSignal": true; }; "sourceTypes": { "alias": "sourceTypes"; "required": false; "isSignal": true; }; }, { "operation": "operationChange"; "operationPreview": "operationPreview"; "operationCancel": "operationCancel"; }, never, never, true, never>;
|
|
1069
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainOperationEditorComponent, "gve-chain-operation-editor", never, { "operation": { "alias": "operation"; "required": false; "isSignal": true; }; "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "hidePreview": { "alias": "hidePreview"; "required": false; "isSignal": true; }; "featureDefs": { "alias": "featureDefs"; "required": false; "isSignal": true; }; "rangePatch": { "alias": "rangePatch"; "required": false; "isSignal": true; }; "precedingText": { "alias": "precedingText"; "required": false; "isSignal": true; }; "multiValuedFeatureIds": { "alias": "multiValuedFeatureIds"; "required": false; "isSignal": true; }; "sourceIds": { "alias": "sourceIds"; "required": false; "isSignal": true; }; "sourceTypes": { "alias": "sourceTypes"; "required": false; "isSignal": true; }; "operationOrdinal": { "alias": "operationOrdinal"; "required": false; "isSignal": true; }; "operationCount": { "alias": "operationCount"; "required": false; "isSignal": true; }; "peepholeWindowWidth": { "alias": "peepholeWindowWidth"; "required": false; "isSignal": true; }; }, { "operation": "operationChange"; "operationPreview": "operationPreview"; "operationCancel": "operationCancel"; "operationOrdinalRequest": "operationOrdinalRequest"; }, never, never, true, never>;
|
|
1046
1070
|
}
|
|
1047
1071
|
|
|
1048
1072
|
/**
|
|
@@ -1454,6 +1478,8 @@ declare class SnapshotEditorComponent {
|
|
|
1454
1478
|
readonly batchOpNumbers: _angular_core.WritableSignal<number[] | undefined>;
|
|
1455
1479
|
readonly batchRangeLabel: _angular_core.WritableSignal<string | undefined>;
|
|
1456
1480
|
readonly batchForSource: _angular_core.WritableSignal<boolean>;
|
|
1481
|
+
readonly peepholeWindowWidth: _angular_core.WritableSignal<number>;
|
|
1482
|
+
private readonly _flatLookup;
|
|
1457
1483
|
constructor(formBuilder: FormBuilder, _api: GveApiService, _dialog: MatDialog, _dialogService: DialogService, _snackbar: MatSnackBar);
|
|
1458
1484
|
/**
|
|
1459
1485
|
* Initialize rendition settings and event listeners when the element becomes available.
|
|
@@ -1498,6 +1524,12 @@ declare class SnapshotEditorComponent {
|
|
|
1498
1524
|
* @param index The operation index.
|
|
1499
1525
|
*/
|
|
1500
1526
|
editOperation(index: number): void;
|
|
1527
|
+
/**
|
|
1528
|
+
* Build the tooltip text listing the human-friendly names of the given
|
|
1529
|
+
* operation's sources, space-separated.
|
|
1530
|
+
* @param sources The operation's sources.
|
|
1531
|
+
*/
|
|
1532
|
+
sourcesTooltip(sources: OperationSource[] | undefined): string;
|
|
1501
1533
|
/**
|
|
1502
1534
|
* Parse a range string into a sorted array of 1-based operation ordinal
|
|
1503
1535
|
* numbers. Accepts comma-separated segments where each segment is either
|