@myrmidon/gve-core 6.0.2 → 6.0.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/gve-core",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
4
4
  "description": "Cadmus - GVE Angular frontend core components.",
5
5
  "keywords": [
6
6
  "GVE"
@@ -20,7 +20,7 @@
20
20
  "@cisstech/nge": "^18.3.0",
21
21
  "@myrmidon/ngx-mat-tools": "^1.0.1",
22
22
  "@myrmidon/ngx-tools": "^2.0.2",
23
- "@myrmidon/gve-snapshot-rendition": "^0.0.5",
23
+ "@myrmidon/gve-snapshot-rendition": "^0.0.6",
24
24
  "gsap": "^3.14.2",
25
25
  "monaco-editor": "^0.34.0",
26
26
  "nanoid": "^5.1.6"
@@ -524,6 +524,12 @@ declare class GveApiService {
524
524
  * @returns Result wrapper.
525
525
  */
526
526
  getTags(operations: CharChainOperation[]): Observable<ResultWrapper<string[]>>;
527
+ /**
528
+ * Get the DSL representation of the given operations.
529
+ * @param operations The operations.
530
+ * @returns Result wrapper.
531
+ */
532
+ getDsl(operations: CharChainOperation[]): Observable<ResultWrapper<string[]>>;
527
533
  /**
528
534
  * Get the chain corresponding to the operations run on the
529
535
  * specified text. This is used for diagnostic or demonstration
@@ -731,7 +737,6 @@ declare class FeatureEditorComponent implements OnInit, OnDestroy {
731
737
  */
732
738
  readonly featureCancel: _angular_core.OutputEmitterRef<void>;
733
739
  readonly nameIds: _angular_core.WritableSignal<LabeledId[] | undefined>;
734
- readonly isMultiValued: _angular_core.WritableSignal<boolean>;
735
740
  name: FormControl<string>;
736
741
  value: FormControl<string>;
737
742
  selectedValue: FormControl<string>;
@@ -740,6 +745,17 @@ declare class FeatureEditorComponent implements OnInit, OnDestroy {
740
745
  isGlobal: FormControl<boolean>;
741
746
  isShortLived: FormControl<boolean>;
742
747
  form: FormGroup;
748
+ /**
749
+ * Signal that tracks the current name form control value.
750
+ * Uses toSignal to convert the form control's valueChanges observable
751
+ * to a signal for reactive change detection.
752
+ */
753
+ private readonly nameSignal;
754
+ /**
755
+ * Computed signal that determines if the current feature is multi-valued.
756
+ * Automatically updates when either the name or multiValuedFeatureIds changes.
757
+ */
758
+ readonly isMultiValued: _angular_core.Signal<boolean>;
743
759
  constructor(formBuilder: FormBuilder);
744
760
  ngOnInit(): void;
745
761
  ngOnDestroy(): void;
@@ -894,7 +910,6 @@ declare class ChainOperationEditorComponent implements OnInit, OnDestroy {
894
910
  ngOnInit(): void;
895
911
  ngOnDestroy(): void;
896
912
  private toggleLfEscape;
897
- private hasTextChanges;
898
913
  onFeaturesChange(features: OperationFeature[]): void;
899
914
  onDpFeaturesChange(features: Feature[]): void;
900
915
  addSource(): void;
@@ -1217,6 +1232,12 @@ declare class SnapshotEditorComponent {
1217
1232
  * component.
1218
1233
  */
1219
1234
  readonly renditionSettings: _angular_core.InputSignal<GveRenditionSettings>;
1235
+ /**
1236
+ * Optional maximum height for the operations list. When set, the operations
1237
+ * list will have a vertical scrollbar if its content exceeds this height.
1238
+ * The value should be a valid CSS height value (e.g., '300px', '50vh').
1239
+ */
1240
+ readonly opListMaxHeight: _angular_core.InputSignal<string | undefined>;
1220
1241
  /**
1221
1242
  * Emitted when the user cancels the snapshot editing.
1222
1243
  */
@@ -1328,6 +1349,7 @@ declare class SnapshotEditorComponent {
1328
1349
  */
1329
1350
  moveOperationDown(index: number): void;
1330
1351
  copyOperationsJson(): void;
1352
+ copyOperationsDsl(): void;
1331
1353
  /**
1332
1354
  * Parse the operations from their text and append them to the current
1333
1355
  * snapshot operations.
@@ -1421,7 +1443,7 @@ declare class SnapshotEditorComponent {
1421
1443
  */
1422
1444
  save(): void;
1423
1445
  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; }; "featureDefs": { "alias": "featureDefs"; "required": false; "isSignal": true; }; "multiValuedFeatureIds": { "alias": "multiValuedFeatureIds"; "required": false; "isSignal": true; }; "renditionSettings": { "alias": "renditionSettings"; "required": false; "isSignal": true; }; }, { "snapshot": "snapshotChange"; "snapshotCancel": "snapshotCancel"; }, never, never, true, never>;
1446
+ 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; }; "multiValuedFeatureIds": { "alias": "multiValuedFeatureIds"; "required": false; "isSignal": true; }; "renditionSettings": { "alias": "renditionSettings"; "required": false; "isSignal": true; }; "opListMaxHeight": { "alias": "opListMaxHeight"; "required": false; "isSignal": true; }; }, { "snapshot": "snapshotChange"; "snapshotCancel": "snapshotCancel"; }, never, never, true, never>;
1425
1447
  }
1426
1448
 
1427
1449
  /**