@myrmidon/gve-core 6.0.4 → 6.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/gve-core",
3
- "version": "6.0.4",
3
+ "version": "6.1.1",
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.6",
23
+ "@myrmidon/gve-snapshot-rendition": "^0.0.7",
24
24
  "gsap": "^3.14.2",
25
25
  "monaco-editor": "^0.34.0",
26
26
  "nanoid": "^5.1.6"
@@ -705,8 +705,7 @@ interface FeatureMap {
705
705
  */
706
706
  declare class FeatureEditorComponent implements OnInit, OnDestroy {
707
707
  private _sub?;
708
- private _frozen?;
709
- nameControl?: ElementRef;
708
+ readonly nameControl: _angular_core.Signal<ElementRef<any> | undefined>;
710
709
  /**
711
710
  * The list of feature names to display in the name selection.
712
711
  * This is used when you have a closed list of features.
@@ -736,7 +735,18 @@ declare class FeatureEditorComponent implements OnInit, OnDestroy {
736
735
  * Event emitted when the user cancels the feature editing.
737
736
  */
738
737
  readonly featureCancel: _angular_core.OutputEmitterRef<void>;
738
+ /**
739
+ * The allowed value IDs for the currently selected feature name.
740
+ * Set synchronously in updateForm (on feature load) and in the
741
+ * name.valueChanges subscription (on user interaction).
742
+ */
739
743
  readonly nameIds: _angular_core.WritableSignal<LabeledId[] | undefined>;
744
+ /**
745
+ * Tracks the current feature name. Updated synchronously in updateForm
746
+ * and in the name.valueChanges subscription so that isMultiValued stays
747
+ * in sync regardless of whether the change was programmatic or user-driven.
748
+ */
749
+ private readonly _currentName;
740
750
  name: FormControl<string>;
741
751
  value: FormControl<string>;
742
752
  selectedValue: FormControl<string>;
@@ -745,15 +755,10 @@ declare class FeatureEditorComponent implements OnInit, OnDestroy {
745
755
  isGlobal: FormControl<boolean>;
746
756
  isShortLived: FormControl<boolean>;
747
757
  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
758
  /**
755
759
  * Computed signal that determines if the current feature is multi-valued.
756
- * Automatically updates when either the name or multiValuedFeatureIds changes.
760
+ * Automatically updates when either _currentName or multiValuedFeatureIds
761
+ * changes.
757
762
  */
758
763
  readonly isMultiValued: _angular_core.Signal<boolean>;
759
764
  constructor(formBuilder: FormBuilder);
@@ -1054,10 +1059,10 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
1054
1059
  /**
1055
1060
  * The features to edit.
1056
1061
  */
1057
- readonly features: _angular_core.ModelSignal<Feature[] | OperationFeature[]>;
1062
+ readonly features: _angular_core.ModelSignal<OperationFeature[] | Feature[]>;
1058
1063
  readonly editedFeature: _angular_core.WritableSignal<Feature | OperationFeature | undefined>;
1059
1064
  readonly editedFeatureIndex: _angular_core.WritableSignal<number>;
1060
- filteredFeatures: _angular_core.WritableSignal<Feature[] | OperationFeature[]>;
1065
+ filteredFeatures: _angular_core.WritableSignal<OperationFeature[] | Feature[]>;
1061
1066
  filter: FormControl<string | null>;
1062
1067
  constructor(formBuilder: FormBuilder);
1063
1068
  private applyFeatureFilter;
@@ -1090,12 +1095,12 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
1090
1095
  * it is always invisible; otherwise, it gets visible when the number of features
1091
1096
  * is greater than the threshold. Default is 5.
1092
1097
  */
1093
- declare class FeatureSetViewComponent {
1098
+ declare class FeatureSetViewComponent implements OnInit, OnDestroy {
1094
1099
  private _sub?;
1095
1100
  /**
1096
1101
  * The features.
1097
1102
  */
1098
- readonly features: _angular_core.InputSignal<Feature[] | OperationFeature[]>;
1103
+ readonly features: _angular_core.InputSignal<OperationFeature[] | Feature[]>;
1099
1104
  /**
1100
1105
  * The list of feature names to display in the name selection.
1101
1106
  * This is used when you have a closed list of features.
@@ -1114,7 +1119,7 @@ declare class FeatureSetViewComponent {
1114
1119
  * is greater than the threshold. Default is 5.
1115
1120
  */
1116
1121
  readonly filterThreshold: _angular_core.InputSignal<number>;
1117
- readonly filteredFeatures: _angular_core.WritableSignal<Feature[] | OperationFeature[]>;
1122
+ readonly filteredFeatures: _angular_core.WritableSignal<OperationFeature[] | Feature[]>;
1118
1123
  filter: FormControl<string | null>;
1119
1124
  constructor(formBuilder: FormBuilder);
1120
1125
  private applyFeatureFilter;