@sme.up/ketchup2 2.0.0-SNAPSHOT-20250606143603 → 2.0.0-SNAPSHOT-20250609101523
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/dist/assets/svg/chevron-right.svg +1 -0
- package/dist/assets/svg/drag_indicator_horizontal.svg +11 -0
- package/dist/assets/svg/drag_indicator_vertical.svg +1 -0
- package/dist/assets/svg/groups.svg +1 -0
- package/dist/assets/testAsset.d.ts +158 -0
- package/dist/assets/testAsset.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +8 -0
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +4 -0
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-group.d.ts +49 -0
- package/dist/components/data-table/assets/data-table-group.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-shapes.d.ts +168 -0
- package/dist/components/data-table/assets/data-table-shapes.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +80 -0
- package/dist/components/data-table/data-table-types.d.ts.map +1 -0
- package/dist/components/data-table/data-table-utils.d.ts +24 -0
- package/dist/components/data-table/data-table-utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +4 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts +21 -0
- package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts.map +1 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts +36 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -0
- package/dist/functional-components/group-bar/group-bar.d.ts +4 -0
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -0
- package/dist/functional-components/group-row/group-row-types.d.ts +36 -0
- package/dist/functional-components/group-row/group-row-types.d.ts.map +1 -0
- package/dist/functional-components/group-row/group-row.d.ts +4 -0
- package/dist/functional-components/group-row/group-row.d.ts.map +1 -0
- package/dist/functional-components/row/row-assets.d.ts +5 -0
- package/dist/functional-components/row/row-assets.d.ts.map +1 -0
- package/dist/functional-components/row/row-types.d.ts +19 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -0
- package/dist/functional-components/row/row.d.ts +3 -0
- package/dist/functional-components/row/row.d.ts.map +1 -0
- package/dist/ketchup2.cjs.js +10 -10
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +1782 -1759
- package/dist/types/data-structures.d.ts +22 -3
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/utils/hash.d.ts +7 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-bar.d.ts","sourceRoot":"","sources":["../../../src/functional-components/group-bar/group-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAIjD,OAAO,iBAAiB,CAAA;AAGxB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA8B5C,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DataRow } from '../../types/data-structures';
|
|
2
|
+
/**
|
|
3
|
+
* @interface GroupRowProps
|
|
4
|
+
* @description Defines the props for a single group row in a data table. A group row can contain data rows or be nested with other group rows.
|
|
5
|
+
*/
|
|
6
|
+
export interface GroupRowProps {
|
|
7
|
+
/**
|
|
8
|
+
* The display label for the group row.
|
|
9
|
+
*/
|
|
10
|
+
readonly label: string;
|
|
11
|
+
/**
|
|
12
|
+
* The data rows that belong to this group. This is typically present on the last level of grouping.
|
|
13
|
+
*/
|
|
14
|
+
readonly rows?: DataRow[];
|
|
15
|
+
/**
|
|
16
|
+
* An optional callback function to be executed when the group row is clicked, usually to toggle its expansion state.
|
|
17
|
+
*/
|
|
18
|
+
readonly onClick?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Determines if the group row is currently expanded to show its children or data rows.
|
|
21
|
+
*/
|
|
22
|
+
readonly isExpanded?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The nesting level of the group, where `0` is the top-most level.
|
|
25
|
+
*/
|
|
26
|
+
readonly level?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The top offset for absolute positioning of the row within the component.
|
|
29
|
+
*/
|
|
30
|
+
readonly offsetTop?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The height of the row, used for positioning calculations.
|
|
33
|
+
*/
|
|
34
|
+
readonly rowHeight?: number;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=group-row-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-row-types.d.ts","sourceRoot":"","sources":["../../../src/functional-components/group-row/group-row-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-row.d.ts","sourceRoot":"","sources":["../../../src/functional-components/group-row/group-row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsC5C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-assets.d.ts","sourceRoot":"","sources":["../../../src/functional-components/row/row-assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAG/D,eAAO,MAAM,YAAY,EAAE,QAAQ,EA8LlC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,QAAQ,EAsEhC,CAAA;AAGD,eAAO,MAAM,qBAAqB,EAAE,OAAO,EA+C1C,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataNode, DataRow } from '../../types/data-structures';
|
|
2
|
+
export interface RowProps {
|
|
3
|
+
row: DataNode | DataRow;
|
|
4
|
+
level?: number;
|
|
5
|
+
columnWidths?: Record<string, number>;
|
|
6
|
+
rowHeight?: number;
|
|
7
|
+
offsetTop?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the row is a groupRow or not.
|
|
10
|
+
*/
|
|
11
|
+
isGroup?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Value of the row, used for grouping
|
|
14
|
+
*/
|
|
15
|
+
value?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function isDataNode(row: DataNode | DataRow | undefined): row is DataNode;
|
|
18
|
+
export declare function isDataRow(row: DataNode | DataRow): row is DataRow;
|
|
19
|
+
//# sourceMappingURL=row-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row-types.d.ts","sourceRoot":"","sources":["../../../src/functional-components/row/row-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE/D,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,wBAAgB,UAAU,CACxB,GAAG,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAClC,GAAG,IAAI,QAAQ,CAEjB;AAGD,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,GAAG,GAAG,IAAI,OAAO,CAEjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../src/functional-components/row/row.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAyB,MAAM,aAAa,CAAA;AAI7D,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CA0HlC,CAAA"}
|