@myrmidon/gve-core 7.0.1 → 7.0.3

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.1",
3
+ "version": "7.0.3",
4
4
  "description": "Cadmus - GVE Angular frontend core components.",
5
5
  "keywords": [
6
6
  "GVE"
@@ -1070,8 +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.
1073
+ * - ▶️ `batchMode`: true to enable batch mode, where users edit features
1074
+ * without the component firing change events until they click the "Save" button,
1075
+ * and close the editor without saving by clicking the "Close" button.
1075
1076
  * - 🔥 `close`: emitted when the user clicks the close button.
1076
1077
  * - 🔥 `featuresChange` (`Feature[]`): emitted when features have changed.
1077
1078
  */
@@ -1108,10 +1109,11 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
1108
1109
  */
1109
1110
  readonly multiValuedFeatureIds: _angular_core.InputSignal<string[] | undefined>;
1110
1111
  /**
1111
- * True if a close button should be shown to allow closing the editor
1112
- * without saving.
1112
+ * True to enable batch mode, where users edit features
1113
+ * without the component firing change events until they click the "Save" button,
1114
+ * and close the editor without saving by clicking the "Close" button.
1113
1115
  */
1114
- readonly hasCloseButton: _angular_core.InputSignal<boolean>;
1116
+ readonly batchMode: _angular_core.InputSignal<boolean>;
1115
1117
  /**
1116
1118
  * Emitted when the user clicks the close button.
1117
1119
  */
@@ -1123,6 +1125,9 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
1123
1125
  readonly editedFeature: _angular_core.WritableSignal<Feature | OperationFeature | undefined>;
1124
1126
  readonly editedFeatureIndex: _angular_core.WritableSignal<number>;
1125
1127
  filteredFeatures: _angular_core.WritableSignal<OperationFeature[] | Feature[]>;
1128
+ readonly draftFeatures: _angular_core.WritableSignal<OperationFeature[] | Feature[]>;
1129
+ readonly workingFeatures: _angular_core.Signal<OperationFeature[] | Feature[]>;
1130
+ readonly hasCloseButton: _angular_core.Signal<boolean>;
1126
1131
  filter: FormControl<string | null>;
1127
1132
  constructor(formBuilder: FormBuilder);
1128
1133
  private applyFeatureFilter;
@@ -1134,8 +1139,9 @@ declare class FeatureSetEditorComponent implements OnInit, OnDestroy {
1134
1139
  isFeatureMultiValued(feature?: Feature | OperationFeature): boolean;
1135
1140
  onFeatureChange(feature?: Feature | OperationFeature): void;
1136
1141
  onFeatureCancel(): void;
1142
+ onOk(): void;
1137
1143
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureSetEditorComponent, 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>;
1144
+ 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; }; "batchMode": { "alias": "batchMode"; "required": false; "isSignal": true; }; "features": { "alias": "features"; "required": false; "isSignal": true; }; }, { "close": "close"; "features": "featuresChange"; }, never, never, true, never>;
1139
1145
  }
1140
1146
 
1141
1147
  /**
@@ -1361,8 +1367,9 @@ declare class SnapshotEditorComponent {
1361
1367
  readonly editFeatsRange: FormControl<string | null>;
1362
1368
  readonly editFeatsForm: FormGroup;
1363
1369
  readonly operationFeats: _angular_core.WritableSignal<Feature[] | undefined>;
1364
- readonly featsOpNumbers: _angular_core.WritableSignal<number[] | undefined>;
1365
- readonly featsRangeLabel: _angular_core.WritableSignal<string | undefined>;
1370
+ readonly batchOpNumbers: _angular_core.WritableSignal<number[] | undefined>;
1371
+ readonly batchRangeLabel: _angular_core.WritableSignal<string | undefined>;
1372
+ readonly batchForSource: _angular_core.WritableSignal<boolean>;
1366
1373
  constructor(formBuilder: FormBuilder, _api: GveApiService, _dialog: MatDialog, _dialogService: DialogService, _snackbar: MatSnackBar);
1367
1374
  /**
1368
1375
  * Initialize rendition settings and event listeners when the element becomes available.
@@ -1421,7 +1428,10 @@ declare class SnapshotEditorComponent {
1421
1428
  */
1422
1429
  editOperationsFeats(): void;
1423
1430
  saveOperationsFeats(features: Feature[]): void;
1431
+ editOperationSources(): void;
1432
+ saveOperationSources(source: OperationSource | undefined): void;
1424
1433
  closeOperationFeats(): void;
1434
+ closeOperationSources(): void;
1425
1435
  /**
1426
1436
  * Close the currently edited operation.
1427
1437
  */