@flusys/ng-shared 9.1.1 → 9.2.0

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": "@flusys/ng-shared",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
4
4
  "description": "Shared components and utilities for FLUSYS Angular packages",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -9,8 +9,8 @@
9
9
  "@angular/forms": ">=22.0.0",
10
10
  "@angular/platform-browser": ">=22.0.0",
11
11
  "@angular/router": ">=22.0.0",
12
- "@flusys/ng-core": ">=9.1.1",
13
- "@flusys/ng-ui": ">=9.1.1",
12
+ "@flusys/ng-core": ">=9.2.0",
13
+ "@flusys/ng-ui": ">=9.2.0",
14
14
  "rxjs": "^7.8.0"
15
15
  },
16
16
  "sideEffects": false,
@@ -282,7 +282,7 @@ export declare const PERMISSIONS: {
282
282
  readonly DELETE: "translation.delete";
283
283
  };
284
284
  };
285
- export type PermissionCode = (typeof PERMISSIONS)[keyof typeof PERMISSIONS][keyof (typeof PERMISSIONS)[keyof typeof PERMISSIONS]];
285
+ export type PermissionCode = { [G in keyof typeof PERMISSIONS]: (typeof PERMISSIONS)[G][keyof (typeof PERMISSIONS)[G]]; }[keyof typeof PERMISSIONS];
286
286
  /**
287
287
  * Base entity interface - matches backend Identity entity
288
288
  */
@@ -752,6 +752,7 @@ export declare class TranslateService {
752
752
  private readonly localizationState;
753
753
  private readonly registry;
754
754
  translate(key: string, params?: Record<string, string | unknown>): string;
755
+ private lookup;
755
756
  translateRef(ref: IMessageRef): string;
756
757
  translateSignal(key: string, params?: Record<string, string | number>): Signal<string>;
757
758
  private isMessageRef;
@@ -1008,7 +1009,7 @@ export declare abstract class BaseFormControl<T> implements ControlValueAccessor
1008
1009
  readonly touched: import("@angular/core").ModelSignal<boolean>;
1009
1010
  private onChange;
1010
1011
  private onTouched;
1011
- private writeDepth;
1012
+ private pendingWrite;
1012
1013
  /**
1013
1014
  * Wire up the ControlValueAccessor ↔ signal bridge.
1014
1015
  * Call once at the end of the subclass constructor.
@@ -1211,6 +1212,7 @@ export declare class BaseFormComponent {
1211
1212
  private readonly _submitted;
1212
1213
  private readonly _isLoadingInternal;
1213
1214
  private readonly _touchedFields;
1215
+ private loadSeq;
1214
1216
  readonly formData: import("@angular/core").Signal<Record<string, unknown>>;
1215
1217
  readonly submitted: import("@angular/core").Signal<boolean>;
1216
1218
  readonly effectiveIsEditMode: import("@angular/core").Signal<boolean>;
@@ -1543,7 +1545,7 @@ export declare class FileSelectorDialogComponent {
1543
1545
  private readonly destroyRef;
1544
1546
  private readonly translateAdapter;
1545
1547
  readonly fileProvider: import("@flusys/ng-shared").IFileProvider | null;
1546
- private abortController;
1548
+ private requestSeq;
1547
1549
  private searchDebounceTimer;
1548
1550
  readonly header: import("@angular/core").InputSignal<string | undefined>;
1549
1551
  readonly acceptTypes: import("@angular/core").InputSignal<string[]>;
@@ -1602,7 +1604,9 @@ export declare class FileSelectorDialogComponent {
1602
1604
  }): void;
1603
1605
  loadStorageConfigs(search?: string): Promise<void>;
1604
1606
  onFileUploaded(uploadedFile: IUploadedFile): void;
1607
+ private clearSearchTimer;
1605
1608
  private resetState;
1609
+ /** A page fetch waits for the one in flight; any other fetch supersedes it, and stale responses are dropped. */
1606
1610
  private fetchFiles;
1607
1611
  private t;
1608
1612
  static ɵfac: i0.ɵɵFactoryDeclaration<FileSelectorDialogComponent, never>;
@@ -2091,7 +2095,7 @@ export declare abstract class BaseUserSelectComponent {
2091
2095
  protected readonly injector: Injector;
2092
2096
  protected readonly userProvider: IUserProvider;
2093
2097
  protected readonly translateAdapter: TranslateService;
2094
- protected abortController: AbortController | null;
2098
+ private requestSeq;
2095
2099
  readonly loadUsers: import("@angular/core").InputSignal<LoadUsersFn | undefined>;
2096
2100
  readonly placeHolder: import("@angular/core").InputSignal<string>;
2097
2101
  readonly isEditMode: import("@angular/core").InputSignal<boolean>;
@@ -2124,6 +2128,7 @@ export declare abstract class BaseUserSelectComponent {
2124
2128
  handlePagination(pagination: IPagination): void;
2125
2129
  /** Reload users (useful when filters change externally) */
2126
2130
  reload(): void;
2131
+ /** A page fetch waits for the one in flight; any other fetch supersedes it, and stale responses are dropped. */
2127
2132
  protected fetchUsers(append?: boolean): Promise<void>;
2128
2133
  /** Load users from USER_PROVIDER with active filter */
2129
2134
  private loadUsersFromProvider;