cat-qw-lib 2.6.28 → 2.6.30

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.
@@ -32,7 +32,12 @@ export declare class WidgetAdminFormComponent extends BaseFormComponent<WidgetMo
32
32
  constructor(service: WidgetAdminService, validatorService: ValidatorService, widgetStore: WidgetAdminStore, query: WidgetAdminQuery, router: Router, activatedRoute: ActivatedRoute, baseStore: BaseStore<WidgetModel>, baseQuery: BaseQuery<WidgetModel>);
33
33
  ngOnInit(): void;
34
34
  handleWidgetItemAddBtnClick(): void;
35
- handleAPIChange(event: any): void;
35
+ handleAPIChange(apiConfigId: any): void;
36
+ /**
37
+ * Rebuilds header/subheader/widget-item/badge dictionary item options from list data
38
+ * after apiConfigId changes (or on initial load). Single list read avoids races from N subscriptions.
39
+ */
40
+ private refreshDictionaryItemListsForRecord;
36
41
  handleHeaderDictionarySelect(dictionaryId: string): void;
37
42
  handleSubHeaderDictionarySelect(dictionaryId: any): void;
38
43
  handleWidgetItemDictionarySelect(dictionaryId: any, index: number): void;
@@ -40,6 +45,10 @@ export declare class WidgetAdminFormComponent extends BaseFormComponent<WidgetMo
40
45
  handleBadgeDictionarySelect(dictionaryId: any, index: number): void;
41
46
  handleDeleteBadge(index: number): void;
42
47
  handleDeleteRecord(index: number): void;
48
+ /**
49
+ * Text-box controls expect stringified JSON; API returns nested objects → "[object Object]" without this.
50
+ */
51
+ private normalizeLoadedRecordStyles;
43
52
  handleSubmit(): void;
44
53
  ngOnDestroy(): void;
45
54
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAdminFormComponent, never>;
@@ -18,6 +18,19 @@ export declare class WidgetAdminService extends BaseService<WidgetModel> {
18
18
  * @returns {Record<string, any> | null} - Parsed style object or null if parsing fails
19
19
  */
20
20
  sanitizeStyleString(rawStyleStr: string): Record<string, any> | null;
21
+ /**
22
+ * Plain-object values (e.g. key/value/itemStyle saved as subdocuments) become JSON strings
23
+ * so the payload matches API expectations and form text fields stay readable.
24
+ */
25
+ normalizeNestedStyleObjects(style: Record<string, any>): Record<string, any>;
26
+ /**
27
+ * Converts widget / item / badge style for text-box binding (avoids "[object Object]").
28
+ */
29
+ coerceStyleToJsonText(value: unknown): string;
30
+ /**
31
+ * Parses style from form (string or already-object) for API submit.
32
+ */
33
+ parseStylePayload(input: unknown): Record<string, any>;
21
34
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAdminService, never>;
22
35
  static ɵprov: i0.ɵɵInjectableDeclaration<WidgetAdminService>;
23
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-qw-lib",
3
- "version": "2.6.28",
3
+ "version": "2.6.30",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
@@ -1,4 +1,4 @@
1
- <svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0.959961 7.91992C0.959961 4.05393 4.09397 0.919922 7.95996 0.919922C11.826 0.919922 14.96 4.05393 14.96 7.91992C14.96 11.7859 11.826 14.9199 7.95996 14.9199C4.09397 14.9199 0.959961 11.7859 0.959961 7.91992Z" fill="#22C55E"/>
3
- <path d="M7.12625 9.31121L11.1512 5.28621L11.7638 5.90746L7.12625 10.5537L4.34375 7.76246L4.95625 7.14996L7.12625 9.31121Z" fill="white"/>
4
- </svg>
1
+ <svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0.959961 7.91992C0.959961 4.05393 4.09397 0.919922 7.95996 0.919922C11.826 0.919922 14.96 4.05393 14.96 7.91992C14.96 11.7859 11.826 14.9199 7.95996 14.9199C4.09397 14.9199 0.959961 11.7859 0.959961 7.91992Z" fill="#22C55E"/>
3
+ <path d="M7.12625 9.31121L11.1512 5.28621L11.7638 5.90746L7.12625 10.5537L4.34375 7.76246L4.95625 7.14996L7.12625 9.31121Z" fill="white"/>
4
+ </svg>