@sme.up/ketchup2 2.0.0-SNAPSHOT-20250625123442 → 2.0.0-SNAPSHOT-20250625153756
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataCellOption } from '../../types/data-structures';
|
|
2
|
+
import { DisplayMode } from '../../types/global';
|
|
3
|
+
/**
|
|
4
|
+
* It calculate the longest options to return the width for the list
|
|
5
|
+
* It uses measureText which is a canvas utility that returns information about text
|
|
6
|
+
* @param options
|
|
7
|
+
* @param displayMode
|
|
8
|
+
* @param font
|
|
9
|
+
* @param extraPadding
|
|
10
|
+
* @returns width
|
|
11
|
+
*/
|
|
12
|
+
export declare function calculateLongestOptionWidth(options: DataCellOption[], displayMode: DisplayMode, font?: string, extraPadding?: number): number;
|
|
13
|
+
//# sourceMappingURL=list-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-utils.d.ts","sourceRoot":"","sources":["../../../src/basic-components/list/list-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGhD;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,cAAc,EAAE,EACzB,WAAW,EAAE,WAAW,EACxB,IAAI,SAAmC,EACvC,YAAY,SAAK,GAChB,MAAM,CAeR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/basic-components/list/list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/basic-components/list/list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AASxC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA8LpC,CAAA"}
|