@masterteam/client-components 0.0.96 → 0.0.97

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": "@masterteam/client-components",
3
- "version": "0.0.96",
3
+ "version": "0.0.97",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/client-components",
6
6
  "linkDirectory": true,
@@ -16,9 +16,9 @@
16
16
  "rxjs": "^7.8.2",
17
17
  "tailwindcss": "^4.2.2",
18
18
  "tailwindcss-primeui": "^0.6.1",
19
- "@masterteam/forms": "^0.0.156",
19
+ "@masterteam/forms": "^0.0.157",
20
20
  "@masterteam/icons": "^0.0.17",
21
- "@masterteam/components": "^0.0.301",
21
+ "@masterteam/components": "^0.0.302",
22
22
  "@masterteam/dashboard-builder": "^0.0.92"
23
23
  },
24
24
  "dependencies": {
@@ -170,6 +170,9 @@ interface ClientListTableDisplayConfig {
170
170
  * The key must name a column that is actually rendered, and grouping only
171
171
  * makes sense once every row of a group is loaded — with backend paging a
172
172
  * group is split across pages and each page grows its own header.
173
+ *
174
+ * Also the board's starting grouping: table and cards share one toolbar
175
+ * state per list, seeded once by whichever view renders first.
173
176
  */
174
177
  groupBy?: string;
175
178
  }
@@ -245,7 +248,13 @@ interface ClientListFormConfiguration extends ClientListBaseConfiguration {
245
248
  table?: ClientListTableDisplayConfig;
246
249
  /**
247
250
  * Host hook to reshape built columns/rows before render — see
248
- * {@link ClientListTableTransform}. Applies to `table` area only.
251
+ * {@link ClientListTableTransform}.
252
+ *
253
+ * On `areaType: 'cards'` it runs over each card's row representation, so a
254
+ * board offers the same columns the table does — which is what lets
255
+ * `table.groupBy` name a host-derived column and still group a board. Cells
256
+ * the transform *adds* become row-only fields (grouping, filters, export);
257
+ * the card face keeps rendering its own layout and never shows them.
249
258
  */
250
259
  transformResult?: ClientListTableTransform;
251
260
  }
@@ -808,6 +817,22 @@ declare class ClientListStateService {
808
817
  setInformativeResult(key: string, response: ClientListInformativeDashboardPayload | null, config: NormalizedClientListConfiguration): void;
809
818
  toggleExpanded(key: string): void;
810
819
  private mergeItemState;
820
+ /**
821
+ * Runs the host's `transformResult` over a board, so it offers the same
822
+ * columns the table of the same list does — the ones a host derives
823
+ * included (a descendant list's level and owning record, say). That is what
824
+ * lets a board group, filter and export by them, and what lets a
825
+ * `table.groupBy` default naming a derived column group a board at all.
826
+ *
827
+ * The card face is left alone: the card keeps rendering its own layout, and
828
+ * the derived cells ride on `displayProperties`, which only the card's row
829
+ * representation reads. Cells the transform rewrote rather than added are
830
+ * not carried over — the card already shows those fields its own way.
831
+ *
832
+ * Without a transform the board keeps its old behaviour: no `columns`, so
833
+ * the view derives them from the first card's entities.
834
+ */
835
+ private shapeCards;
811
836
  private toCards;
812
837
  private orderRecords;
813
838
  private resolvePrimarySchema;