cat-qw-lib 2.6.30 → 2.6.32

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,8 +29,14 @@ export declare class WidgetAdminFormComponent extends BaseFormComponent<WidgetMo
29
29
  badgeDictionaryItemArray: any[][];
30
30
  widgetOptionsArray: SelectItem[];
31
31
  widgetLayoutTypeList: WidgetLayoutTypeModel[];
32
+ private readonly enableDictionaryDebugLogs;
32
33
  constructor(service: WidgetAdminService, validatorService: ValidatorService, widgetStore: WidgetAdminStore, query: WidgetAdminQuery, router: Router, activatedRoute: ActivatedRoute, baseStore: BaseStore<WidgetModel>, baseQuery: BaseQuery<WidgetModel>);
33
34
  ngOnInit(): void;
35
+ /**
36
+ * Normalize backend dictionary keys into UI form keys on edit load.
37
+ * This lets dropdowns preselect values immediately without user re-selection.
38
+ */
39
+ private normalizeIncomingDictionaryAliases;
34
40
  handleWidgetItemAddBtnClick(): void;
35
41
  handleAPIChange(apiConfigId: any): void;
36
42
  /**
@@ -38,6 +44,7 @@ export declare class WidgetAdminFormComponent extends BaseFormComponent<WidgetMo
38
44
  * after apiConfigId changes (or on initial load). Single list read avoids races from N subscriptions.
39
45
  */
40
46
  private refreshDictionaryItemListsForRecord;
47
+ private getDictionaryItemsByDictionaryId;
41
48
  handleHeaderDictionarySelect(dictionaryId: string): void;
42
49
  handleSubHeaderDictionarySelect(dictionaryId: any): void;
43
50
  handleWidgetItemDictionarySelect(dictionaryId: any, index: number): void;
@@ -21,8 +21,8 @@ export declare class WidgetModel extends BaseModel {
21
21
  */
22
22
  export declare class WidgetItemModel extends BaseModel {
23
23
  name: string;
24
- dictionaryItemID: string;
25
- dictionaryID: string;
24
+ dictionaryItemId: string;
25
+ dataDictionaryId: string;
26
26
  style?: any;
27
27
  isActive: boolean;
28
28
  }
@@ -30,8 +30,8 @@ export declare class WidgetItemModel extends BaseModel {
30
30
  * BadgeModel class represents the model of a badge.
31
31
  */
32
32
  export declare class BadgeModel {
33
- dictionaryItemID: string;
34
- dictionaryID: string;
33
+ dictionaryItemId: string;
34
+ dataDictionaryId: string;
35
35
  style?: any;
36
36
  }
37
37
  export interface WidgetLayoutTypeModel {
@@ -28,7 +28,7 @@ export declare class WidgetAdminService extends BaseService<WidgetModel> {
28
28
  */
29
29
  coerceStyleToJsonText(value: unknown): string;
30
30
  /**
31
- * Parses style from form (string or already-object) for API submit.
31
+ * Parses style from form (string or object) and returns an object payload for API submit.
32
32
  */
33
33
  parseStylePayload(input: unknown): Record<string, any>;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAdminService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-qw-lib",
3
- "version": "2.6.30",
3
+ "version": "2.6.32",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"