@myrmidon/gve-core 5.0.0 → 5.0.1
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/README.md +43 -0
- package/fesm2022/myrmidon-gve-core.mjs +91 -66
- package/fesm2022/myrmidon-gve-core.mjs.map +1 -1
- package/index.d.ts +122 -81
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MatDialogConfig, MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy,
|
|
3
|
+
import { OnInit, OnDestroy, ElementRef, AfterViewInit } from '@angular/core';
|
|
4
4
|
import { FormControl, FormGroup, FormBuilder } from '@angular/forms';
|
|
5
|
-
import { GveAnimationTimeline, GveAnimationTween, TweenType, CharNode, Feature, CharChainOperation, OperationFeature,
|
|
5
|
+
import { GveAnimationTimeline, GveAnimationTween, TweenType, CharNode, Feature, CharChainOperation, OperationFeature, LabeledId, FeatureSetPolicy, SnapshotBase, OperationSource, OperationType, SnapshotViewComponent, Snapshot, SnapshotViewData, GveVisualEvent, SnapshotViewRenderEvent } from '@myrmidon/gve-snapshot-view';
|
|
6
6
|
import { DialogService } from '@myrmidon/ngx-mat-tools';
|
|
7
7
|
import { HttpClient } from '@angular/common/http';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
@@ -606,6 +606,97 @@ declare class SettingsService {
|
|
|
606
606
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SettingsService>;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Features map. This is used for features from closed sets,
|
|
611
|
+
* and lists the possible values for each feature.
|
|
612
|
+
* The key is the feature name, and the value is an array of
|
|
613
|
+
* labeled IDs representing the allowed values for that feature.
|
|
614
|
+
*/
|
|
615
|
+
interface FeatureMap {
|
|
616
|
+
[key: string]: LabeledId[];
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* 🔑 `gve-feature-editor`
|
|
620
|
+
*
|
|
621
|
+
* Component for editing a single feature, whose model is a name=value
|
|
622
|
+
* pair, plus a set policy value which defines the desired behavior
|
|
623
|
+
* when adding that feature to a set.
|
|
624
|
+
* Used by `gve-feature-set-editor`.
|
|
625
|
+
*
|
|
626
|
+
* - ▶️ `feature` (`Feature`): the feature to edit.
|
|
627
|
+
* - ▶️ `featNames` (`LabeledId[]`): the list of feature names to display
|
|
628
|
+
* in the _name_ selection. This is used when you have a closed list of
|
|
629
|
+
* features. Each item in the list is an object with _id_ and _label_
|
|
630
|
+
* properties.
|
|
631
|
+
* - ▶️ `featValues` (`FeatureMap`): the feature values map. When
|
|
632
|
+
* specified and the user selects a feature name present in the map keys,
|
|
633
|
+
* the corresponding values will be used to populate the value selection.
|
|
634
|
+
* - 🔥 `featureChange` (`Feature`): emitted when feature has changed.
|
|
635
|
+
* - 🔥 `featureCancel`: emitted when the user cancels the feature editing.
|
|
636
|
+
*/
|
|
637
|
+
declare class FeatureEditorComponent implements OnInit, OnDestroy {
|
|
638
|
+
private _sub?;
|
|
639
|
+
private _frozen?;
|
|
640
|
+
nameControl?: ElementRef;
|
|
641
|
+
/**
|
|
642
|
+
* The list of feature names to display in the name selection.
|
|
643
|
+
* This is used when you have a closed list of features.
|
|
644
|
+
*/
|
|
645
|
+
readonly featNames: _angular_core.InputSignal<LabeledId[] | undefined>;
|
|
646
|
+
/**
|
|
647
|
+
* The feature values map. When specified and the user selects a feature
|
|
648
|
+
* name present in the map keys, the corresponding values will be used
|
|
649
|
+
* to populate the value selection.
|
|
650
|
+
*/
|
|
651
|
+
readonly featValues: _angular_core.InputSignal<FeatureMap | undefined>;
|
|
652
|
+
/**
|
|
653
|
+
* The feature to edit.
|
|
654
|
+
*/
|
|
655
|
+
readonly feature: _angular_core.ModelSignal<Feature | OperationFeature | undefined>;
|
|
656
|
+
/**
|
|
657
|
+
* True if the feature is a variant operation feature, which has
|
|
658
|
+
* additional properties like negation, global, and short-lived.
|
|
659
|
+
*/
|
|
660
|
+
readonly isVar: _angular_core.InputSignal<boolean>;
|
|
661
|
+
/**
|
|
662
|
+
* Event emitted when the user cancels the feature editing.
|
|
663
|
+
*/
|
|
664
|
+
readonly featureCancel: _angular_core.OutputEmitterRef<void>;
|
|
665
|
+
readonly nameIds: _angular_core.WritableSignal<LabeledId[] | undefined>;
|
|
666
|
+
name: FormControl<string>;
|
|
667
|
+
value: FormControl<string>;
|
|
668
|
+
setPolicy: FormControl<FeatureSetPolicy>;
|
|
669
|
+
isNegated: FormControl<boolean>;
|
|
670
|
+
isGlobal: FormControl<boolean>;
|
|
671
|
+
isShortLived: FormControl<boolean>;
|
|
672
|
+
form: FormGroup;
|
|
673
|
+
constructor(formBuilder: FormBuilder);
|
|
674
|
+
ngOnInit(): void;
|
|
675
|
+
ngOnDestroy(): void;
|
|
676
|
+
private getLabeledIdsFor;
|
|
677
|
+
private updateForm;
|
|
678
|
+
cancel(): void;
|
|
679
|
+
save(): void;
|
|
680
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureEditorComponent, never>;
|
|
681
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeatureEditorComponent, "gve-feature-editor", never, { "featNames": { "alias": "featNames"; "required": false; "isSignal": true; }; "featValues": { "alias": "featValues"; "required": false; "isSignal": true; }; "feature": { "alias": "feature"; "required": false; "isSignal": true; }; "isVar": { "alias": "isVar"; "required": false; "isSignal": true; }; }, { "feature": "featureChange"; "featureCancel": "featureCancel"; }, never, never, true, never>;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Definitions for features, including names and values.
|
|
686
|
+
*/
|
|
687
|
+
interface FeatureDefinitions {
|
|
688
|
+
/**
|
|
689
|
+
* The list of feature names to display in the name selection.
|
|
690
|
+
* This is used when you have a closed list of features.
|
|
691
|
+
*/
|
|
692
|
+
names?: LabeledId[];
|
|
693
|
+
/**
|
|
694
|
+
* The feature values map. When specified and the user selects a feature
|
|
695
|
+
* name present in the map keys, the corresponding values will be used
|
|
696
|
+
* to populate the value selection.
|
|
697
|
+
*/
|
|
698
|
+
values?: FeatureMap;
|
|
699
|
+
}
|
|
609
700
|
/**
|
|
610
701
|
* 🔑 `gve-chain-operation-editor`
|
|
611
702
|
*
|
|
@@ -677,6 +768,18 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
677
768
|
* Whether to hide the preview request button.
|
|
678
769
|
*/
|
|
679
770
|
readonly hidePreview: _angular_core.InputSignal<boolean | undefined>;
|
|
771
|
+
/**
|
|
772
|
+
* Definitions for features, including names and values.
|
|
773
|
+
*/
|
|
774
|
+
readonly featureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
775
|
+
/**
|
|
776
|
+
* Definitions for element features, including names and values.
|
|
777
|
+
*/
|
|
778
|
+
readonly elementFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
779
|
+
/**
|
|
780
|
+
* Definitions for diplomatic features, including names and values.
|
|
781
|
+
*/
|
|
782
|
+
readonly diplomaticFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
680
783
|
/**
|
|
681
784
|
* Emitted when the operation is changed.
|
|
682
785
|
*/
|
|
@@ -746,7 +849,7 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
|
|
|
746
849
|
requestPreview(): void;
|
|
747
850
|
save(): void;
|
|
748
851
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChainOperationEditorComponent, never>;
|
|
749
|
-
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; }; }, { "operation": "operationChange"; "operationChange": "operationChange"; "operationPreview": "operationPreview"; "operationCancel": "operationCancel"; }, never, never, true, never>;
|
|
852
|
+
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; }; "elementFeatureDefs": { "alias": "elementFeatureDefs"; "required": false; "isSignal": true; }; "diplomaticFeatureDefs": { "alias": "diplomaticFeatureDefs"; "required": false; "isSignal": true; }; }, { "operation": "operationChange"; "operationChange": "operationChange"; "operationPreview": "operationPreview"; "operationCancel": "operationCancel"; }, never, never, true, never>;
|
|
750
853
|
}
|
|
751
854
|
|
|
752
855
|
/**
|
|
@@ -859,81 +962,6 @@ declare class ChainViewComponent implements OnDestroy {
|
|
|
859
962
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChainViewComponent, "gve-chain-view", never, { "chain": { "alias": "chain"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "selectedTags": { "alias": "selectedTags"; "required": false; "isSignal": true; }; }, { "selectedTags": "selectedTagsChange"; }, never, never, true, never>;
|
|
860
963
|
}
|
|
861
964
|
|
|
862
|
-
/**
|
|
863
|
-
* Features map. This is used for features from closed sets,
|
|
864
|
-
* and lists the possible values for each feature.
|
|
865
|
-
* The key is the feature name, and the value is an array of
|
|
866
|
-
* labeled IDs representing the allowed values for that feature.
|
|
867
|
-
*/
|
|
868
|
-
interface FeatureMap {
|
|
869
|
-
[key: string]: LabeledId[];
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* 🔑 `gve-feature-editor`
|
|
873
|
-
*
|
|
874
|
-
* Component for editing a single feature, whose model is a name=value
|
|
875
|
-
* pair, plus a set policy value which defines the desired behavior
|
|
876
|
-
* when adding that feature to a set.
|
|
877
|
-
* Used by `gve-feature-set-editor`.
|
|
878
|
-
*
|
|
879
|
-
* - ▶️ `feature` (`Feature`): the feature to edit.
|
|
880
|
-
* - ▶️ `featNames` (`LabeledId[]`): the list of feature names to display
|
|
881
|
-
* in the _name_ selection. This is used when you have a closed list of
|
|
882
|
-
* features. Each item in the list is an object with _id_ and _label_
|
|
883
|
-
* properties.
|
|
884
|
-
* - ▶️ `featValues` (`FeatureMap`): the feature values map. When
|
|
885
|
-
* specified and the user selects a feature name present in the map keys,
|
|
886
|
-
* the corresponding values will be used to populate the value selection.
|
|
887
|
-
* - 🔥 `featureChange` (`Feature`): emitted when feature has changed.
|
|
888
|
-
* - 🔥 `featureCancel`: emitted when the user cancels the feature editing.
|
|
889
|
-
*/
|
|
890
|
-
declare class FeatureEditorComponent implements OnInit, OnDestroy {
|
|
891
|
-
private _sub?;
|
|
892
|
-
private _frozen?;
|
|
893
|
-
nameControl?: ElementRef;
|
|
894
|
-
/**
|
|
895
|
-
* The list of feature names to display in the name selection.
|
|
896
|
-
* This is used when you have a closed list of features.
|
|
897
|
-
*/
|
|
898
|
-
readonly featNames: _angular_core.InputSignal<LabeledId[] | undefined>;
|
|
899
|
-
/**
|
|
900
|
-
* The feature values map. When specified and the user selects a feature
|
|
901
|
-
* name present in the map keys, the corresponding values will be used
|
|
902
|
-
* to populate the value selection.
|
|
903
|
-
*/
|
|
904
|
-
readonly featValues: _angular_core.InputSignal<FeatureMap | undefined>;
|
|
905
|
-
/**
|
|
906
|
-
* The feature to edit.
|
|
907
|
-
*/
|
|
908
|
-
readonly feature: _angular_core.ModelSignal<Feature | OperationFeature | undefined>;
|
|
909
|
-
/**
|
|
910
|
-
* True if the feature is a variant operation feature, which has
|
|
911
|
-
* additional properties like negation, global, and short-lived.
|
|
912
|
-
*/
|
|
913
|
-
readonly isVar: _angular_core.InputSignal<boolean>;
|
|
914
|
-
/**
|
|
915
|
-
* Event emitted when the user cancels the feature editing.
|
|
916
|
-
*/
|
|
917
|
-
readonly featureCancel: _angular_core.OutputEmitterRef<void>;
|
|
918
|
-
readonly nameIds: _angular_core.WritableSignal<LabeledId[] | undefined>;
|
|
919
|
-
name: FormControl<string>;
|
|
920
|
-
value: FormControl<string>;
|
|
921
|
-
setPolicy: FormControl<FeatureSetPolicy>;
|
|
922
|
-
isNegated: FormControl<boolean>;
|
|
923
|
-
isGlobal: FormControl<boolean>;
|
|
924
|
-
isShortLived: FormControl<boolean>;
|
|
925
|
-
form: FormGroup;
|
|
926
|
-
constructor(formBuilder: FormBuilder);
|
|
927
|
-
ngOnInit(): void;
|
|
928
|
-
ngOnDestroy(): void;
|
|
929
|
-
private getLabeledIdsFor;
|
|
930
|
-
private updateForm;
|
|
931
|
-
cancel(): void;
|
|
932
|
-
save(): void;
|
|
933
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureEditorComponent, never>;
|
|
934
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeatureEditorComponent, "gve-feature-editor", never, { "featNames": { "alias": "featNames"; "required": false; "isSignal": true; }; "featValues": { "alias": "featValues"; "required": false; "isSignal": true; }; "feature": { "alias": "feature"; "required": false; "isSignal": true; }; "isVar": { "alias": "isVar"; "required": false; "isSignal": true; }; }, { "feature": "featureChange"; "featureCancel": "featureCancel"; }, never, never, true, never>;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
965
|
/**
|
|
938
966
|
* 🔑 `gve-feature-set-editor`
|
|
939
967
|
*
|
|
@@ -960,7 +988,8 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
|
|
|
960
988
|
private _sub?;
|
|
961
989
|
readonly POLICIES: string[];
|
|
962
990
|
/**
|
|
963
|
-
* True if the
|
|
991
|
+
* True if the feature is a variant operation feature, which has
|
|
992
|
+
* additional properties like negation, global, and short-lived.
|
|
964
993
|
*/
|
|
965
994
|
readonly isVar: _angular_core.InputSignal<boolean>;
|
|
966
995
|
/**
|
|
@@ -1184,6 +1213,18 @@ declare class SnapshotEditorComponent {
|
|
|
1184
1213
|
* features in nodes.
|
|
1185
1214
|
*/
|
|
1186
1215
|
readonly noDecoration: _angular_core.InputSignal<boolean | undefined>;
|
|
1216
|
+
/**
|
|
1217
|
+
* Definitions for features, including names and values.
|
|
1218
|
+
*/
|
|
1219
|
+
readonly featureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
1220
|
+
/**
|
|
1221
|
+
* Definitions for element features, including names and values.
|
|
1222
|
+
*/
|
|
1223
|
+
readonly elementFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
1224
|
+
/**
|
|
1225
|
+
* Definitions for diplomatic features, including names and values.
|
|
1226
|
+
*/
|
|
1227
|
+
readonly diplomaticFeatureDefs: _angular_core.InputSignal<FeatureDefinitions | undefined>;
|
|
1187
1228
|
/**
|
|
1188
1229
|
* Emitted when the user cancels the snapshot editing.
|
|
1189
1230
|
*/
|
|
@@ -1421,7 +1462,7 @@ declare class SnapshotEditorComponent {
|
|
|
1421
1462
|
*/
|
|
1422
1463
|
save(): void;
|
|
1423
1464
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SnapshotEditorComponent, never>;
|
|
1424
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SnapshotEditorComponent, "gve-snapshot-editor", never, { "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "batchOps": { "alias": "batchOps"; "required": false; "isSignal": true; }; "noSave": { "alias": "noSave"; "required": false; "isSignal": true; }; "debug": { "alias": "debug"; "required": false; "isSignal": true; }; "noDecoration": { "alias": "noDecoration"; "required": false; "isSignal": true; }; }, { "snapshot": "snapshotChange"; "snapshotCancel": "snapshotCancel"; }, never, never, true, never>;
|
|
1465
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SnapshotEditorComponent, "gve-snapshot-editor", never, { "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "batchOps": { "alias": "batchOps"; "required": false; "isSignal": true; }; "noSave": { "alias": "noSave"; "required": false; "isSignal": true; }; "debug": { "alias": "debug"; "required": false; "isSignal": true; }; "noDecoration": { "alias": "noDecoration"; "required": false; "isSignal": true; }; "featureDefs": { "alias": "featureDefs"; "required": false; "isSignal": true; }; "elementFeatureDefs": { "alias": "elementFeatureDefs"; "required": false; "isSignal": true; }; "diplomaticFeatureDefs": { "alias": "diplomaticFeatureDefs"; "required": false; "isSignal": true; }; }, { "snapshot": "snapshotChange"; "snapshotCancel": "snapshotCancel"; }, never, never, true, never>;
|
|
1425
1466
|
}
|
|
1426
1467
|
|
|
1427
1468
|
/**
|
|
@@ -1499,4 +1540,4 @@ declare class StepsMapComponent implements AfterViewInit {
|
|
|
1499
1540
|
}
|
|
1500
1541
|
|
|
1501
1542
|
export { AnimationTimelineComponent, AnimationTimelineSetComponent, AnimationTweenComponent, BaseTextCharComponent, BaseTextEditorComponent, BaseTextViewComponent, BatchOperationEditorComponent, ChainOperationEditorComponent, ChainResultViewComponent, ChainViewComponent, FeatureEditorComponent, FeatureSetEditorComponent, FeatureSetViewComponent, GveApiService, GveGraphvizService, LnHeightsEditorComponent, OperationSourceEditorComponent, SettingsService, SnapshotEditorComponent, SnapshotTextEditorComponent, StepsMapComponent };
|
|
1502
|
-
export type { BaseTextChar, BaseTextCharEvent, ChainOperationContextStep, ChainOperationTags, CharChain, CharChainLink, CharChainNode, CharChainResult, FeatureMap, GraphvizRankdir, PayloadMatDialogConfig, ResultWrapper, VarBaseTextRange };
|
|
1543
|
+
export type { BaseTextChar, BaseTextCharEvent, ChainOperationContextStep, ChainOperationTags, CharChain, CharChainLink, CharChainNode, CharChainResult, FeatureDefinitions, FeatureMap, GraphvizRankdir, PayloadMatDialogConfig, ResultWrapper, VarBaseTextRange };
|