@myrmidon/gve-core 7.0.0 → 7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/gve-core",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Cadmus - GVE Angular frontend core components.",
5
5
  "keywords": [
6
6
  "GVE"
@@ -14,16 +14,16 @@
14
14
  "name": "Daniele Fusi"
15
15
  },
16
16
  "peerDependencies": {
17
- "@angular/common": "^21.2.10",
18
- "@angular/core": "^21.2.10",
19
- "@angular/material": "^21.2.8",
17
+ "@angular/common": "^21.2.11",
18
+ "@angular/core": "^21.2.11",
19
+ "@angular/material": "^21.2.9",
20
20
  "@cisstech/nge": "^18.3.0",
21
21
  "@myrmidon/ngx-mat-tools": "^1.0.2",
22
- "@myrmidon/ngx-tools": "^2.0.2",
23
- "@myrmidon/gve-snapshot-rendition": "^1.0.1",
22
+ "@myrmidon/ngx-tools": "^2.0.3",
23
+ "@myrmidon/gve-snapshot-rendition": "^1.0.2",
24
24
  "gsap": "^3.15.0",
25
25
  "monaco-editor": "^0.34.1",
26
- "nanoid": "^5.1.7"
26
+ "nanoid": "^5.1.11"
27
27
  },
28
28
  "dependencies": {
29
29
  "tslib": "^2.3.0"
@@ -1070,6 +1070,9 @@ declare class ChainResultViewComponent implements OnInit, OnDestroy, AfterViewIn
1070
1070
  * will allow adding multiple values to it.
1071
1071
  * - ▶️ `isVar`: true if the feature is a variant operation feature, which
1072
1072
  * has additional properties like negation, global, and short-lived.
1073
+ * - ▶️ `hasCloseButton`: true if a close button should be shown to allow closing
1074
+ * the editor.
1075
+ * - 🔥 `close`: emitted when the user clicks the close button.
1073
1076
  * - 🔥 `featuresChange` (`Feature[]`): emitted when features have changed.
1074
1077
  */
1075
1078
  declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
@@ -1104,6 +1107,15 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
1104
1107
  * values to it.
1105
1108
  */
1106
1109
  readonly multiValuedFeatureIds: _angular_core.InputSignal<string[] | undefined>;
1110
+ /**
1111
+ * True if a close button should be shown to allow closing the editor
1112
+ * without saving.
1113
+ */
1114
+ readonly hasCloseButton: _angular_core.InputSignal<boolean>;
1115
+ /**
1116
+ * Emitted when the user clicks the close button.
1117
+ */
1118
+ readonly close: _angular_core.OutputEmitterRef<void>;
1107
1119
  /**
1108
1120
  * The features to edit.
1109
1121
  */
@@ -1123,7 +1135,7 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
1123
1135
  onFeatureChange(feature?: Feature | OperationFeature): void;
1124
1136
  onFeatureCancel(): void;
1125
1137
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureSetEditorComponent, never>;
1126
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeatureSetEditorComponent, "gve-feature-set-editor", never, { "isVar": { "alias": "isVar"; "required": false; "isSignal": true; }; "featNames": { "alias": "featNames"; "required": false; "isSignal": true; }; "featValues": { "alias": "featValues"; "required": false; "isSignal": true; }; "filterThreshold": { "alias": "filterThreshold"; "required": false; "isSignal": true; }; "multiValuedFeatureIds": { "alias": "multiValuedFeatureIds"; "required": false; "isSignal": true; }; "features": { "alias": "features"; "required": false; "isSignal": true; }; }, { "features": "featuresChange"; }, never, never, true, never>;
1138
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeatureSetEditorComponent, "gve-feature-set-editor", never, { "isVar": { "alias": "isVar"; "required": false; "isSignal": true; }; "featNames": { "alias": "featNames"; "required": false; "isSignal": true; }; "featValues": { "alias": "featValues"; "required": false; "isSignal": true; }; "filterThreshold": { "alias": "filterThreshold"; "required": false; "isSignal": true; }; "multiValuedFeatureIds": { "alias": "multiValuedFeatureIds"; "required": false; "isSignal": true; }; "hasCloseButton": { "alias": "hasCloseButton"; "required": false; "isSignal": true; }; "features": { "alias": "features"; "required": false; "isSignal": true; }; }, { "close": "close"; "features": "featuresChange"; }, never, never, true, never>;
1127
1139
  }
1128
1140
 
1129
1141
  /**
@@ -1346,6 +1358,11 @@ declare class SnapshotEditorComponent {
1346
1358
  readonly result: _angular_core.WritableSignal<CharChainResult | undefined>;
1347
1359
  readonly resultOperationId: _angular_core.WritableSignal<string | undefined>;
1348
1360
  readonly initialStepIndex: _angular_core.WritableSignal<number>;
1361
+ readonly editFeatsRange: FormControl<string | null>;
1362
+ readonly editFeatsForm: FormGroup;
1363
+ readonly operationFeats: _angular_core.WritableSignal<Feature[] | undefined>;
1364
+ readonly featsOpNumbers: _angular_core.WritableSignal<number[] | undefined>;
1365
+ readonly featsRangeLabel: _angular_core.WritableSignal<string | undefined>;
1349
1366
  constructor(formBuilder: FormBuilder, _api: GveApiService, _dialog: MatDialog, _dialogService: DialogService, _snackbar: MatSnackBar);
1350
1367
  /**
1351
1368
  * Initialize rendition settings and event listeners when the element becomes available.
@@ -1390,6 +1407,21 @@ declare class SnapshotEditorComponent {
1390
1407
  * @param index The operation index.
1391
1408
  */
1392
1409
  editOperation(index: number): void;
1410
+ /**
1411
+ * Parse a range string into a sorted array of 1-based operation ordinal
1412
+ * numbers. Accepts comma-separated segments where each segment is either
1413
+ * a single number N or a range N-M (N ≤ M). Returns null when any segment
1414
+ * is syntactically invalid or out of bounds.
1415
+ */
1416
+ private parseOpRange;
1417
+ /**
1418
+ * Open a feature set editor to edit all features of the operations
1419
+ * specified by the editFeatsRange form control value.
1420
+ * Supports comma-separated segments like "2, 5-7, 9".
1421
+ */
1422
+ editOperationsFeats(): void;
1423
+ saveOperationsFeats(features: Feature[]): void;
1424
+ closeOperationFeats(): void;
1393
1425
  /**
1394
1426
  * Close the currently edited operation.
1395
1427
  */