@ceed/cds 1.40.3-next.6 → 1.40.3-next.7

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.
@@ -25,3 +25,9 @@ export declare function computeAutoFitWidth(params: {
25
25
  * 같은 `field`가 여러 번 쓰일 수 있어 `headerName`이 아니라 컬럼 식별자로 만든다.
26
26
  */
27
27
  export declare function getHeaderCellId(tableId: string, columnId: string): string;
28
+ /**
29
+ * `field`를 컬럼 식별자로 쓸 수 있게 정규화한다.
30
+ * `field`는 임의의 object key라 공백이 들어올 수 있는데, 공백이 남으면 `<td headers>`가 다중 IDREF로
31
+ * 파싱되어 헤더-셀 연결이 끊긴다. 유일성을 매기기 *전에* 접어야 `'a b'`와 `'a_b'`가 같은 id로 다시 뭉개지지 않는다.
32
+ */
33
+ export declare function sanitizeColumnId(field: PropertyKey): string;