@cqa-lib/cqa-ui 1.0.94 → 1.0.95

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.
@@ -29,6 +29,11 @@ export interface DynamicSelectFieldConfig {
29
29
  onChange?: (value: any, event?: MatSelectChange) => void;
30
30
  /** Enable server-side search mode; component will emit search instead of local filtering. */
31
31
  serverSearch?: boolean;
32
+ /**
33
+ * When true, triggers an initial search emit on panel open (serverSearch mode only).
34
+ * Defaults to false so opening the dropdown does NOT call the API.
35
+ */
36
+ initialFetchOnOpen?: boolean;
32
37
  /** Indicates more results are available for infinite scroll. */
33
38
  hasMore?: boolean;
34
39
  /** Optional loading flag controlled by consumer to show loading state. */
@@ -67,6 +72,11 @@ export declare class DynamicSelectFieldComponent implements OnInit, OnChanges {
67
72
  private lastOptionsLength;
68
73
  loadingMore: boolean;
69
74
  private panelScrollEl?;
75
+ /**
76
+ * Guard to ensure load-more is only triggered after the user has scrolled
77
+ * at least once since opening the panel. Prevents auto-load on open.
78
+ */
79
+ private hasScrolledSinceOpen;
70
80
  private onPanelScroll;
71
81
  ngOnInit(): void;
72
82
  get displayPlaceholder(): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",