@cqa-lib/cqa-ui 1.1.537 → 1.1.538

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.
@@ -253,6 +253,15 @@ export declare class ModularTableTemplateComponent implements OnInit, OnChanges,
253
253
  label: string;
254
254
  }>;
255
255
  private updateComputedColumns;
256
+ private buildFolderColumn;
257
+ private resolveFolderName;
258
+ /**
259
+ * Attach a derived `folderName` to each row when the host hasn't supplied
260
+ * one. Mutates in place so the value is available everywhere the row flows
261
+ * — sort, filter, column renders, exports — alongside fields like priority.
262
+ */
263
+ private enrichRowsWithFolderName;
264
+ private renderFolderCell;
256
265
  private updateVisibilityColumns;
257
266
  set columnVisibility(cfg: ColumnVisibilityConfig | undefined);
258
267
  get columnVisibility(): ColumnVisibilityConfig;
@@ -22,8 +22,19 @@ export interface ModularConfig {
22
22
  allowNestedFolders: boolean;
23
23
  allowTestDragDrop: boolean;
24
24
  allowBulkSelection: boolean;
25
+ /**
26
+ * When true, the table renders a folder column (icon + folder name) and lists it in the
27
+ * settings dropdown. Default visibility on first init follows `viewMode`: shown in list,
28
+ * hidden in modular. Once the user toggles it the choice persists.
29
+ */
30
+ showFolderColumn: boolean;
25
31
  }
26
32
  export declare const DEFAULT_MODULAR_CONFIG: ModularConfig;
33
+ /**
34
+ * Reserved fieldId for the auto-injected folder column. Hosts should avoid
35
+ * defining a column with this id of their own.
36
+ */
37
+ export declare const FOLDER_COLUMN_FIELD_ID = "folder";
27
38
  export interface ModularLabels {
28
39
  folders: string;
29
40
  organised: string;
@@ -78,6 +89,12 @@ export interface ModularLabels {
78
89
  deleteFolderDialogConfirm: string;
79
90
  emptyNoTestsInFolderTitle: string;
80
91
  emptyNoTestsInFolderDescription: string;
92
+ /** Header label for the auto-injected folder column. */
93
+ folderColumnLabel: string;
94
+ /** Cell label for rows with no folderId (i.e. the "Unorganised" bucket). */
95
+ unorganisedRowLabel: string;
96
+ /** Shown in the folder sidebar when the search input filters out every folder. */
97
+ noFoldersFound: string;
81
98
  }
82
99
  export declare const DEFAULT_MODULAR_LABELS: ModularLabels;
83
100
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.537",
3
+ "version": "1.1.538",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",