@sme.up/ketchup2 2.0.0-SNAPSHOT-20250716103413 → 2.0.0-SNAPSHOT-20250717122207
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/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/hooks/useColumnReorder.d.ts +13 -0
- package/dist/components/data-table/hooks/useColumnReorder.d.ts.map +1 -0
- package/dist/components/input-panel/input-panel-utils.d.ts +18 -0
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -0
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +5 -1
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.es.js +2445 -2378
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAA;AAoB3E,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0dvD,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataColumn } from '../../../types/data-structures';
|
|
2
|
+
/**
|
|
3
|
+
* This is a hook that manage columns reordering. It handle dragStart, dragOver and drop.
|
|
4
|
+
* @param columns Columns of data structure
|
|
5
|
+
* @param setColumns State of columns inside datatable
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function useColumnReorder(columns: DataColumn[], setColumns: (cols: DataColumn[]) => void): {
|
|
9
|
+
handleDragStart: (colName: string) => void;
|
|
10
|
+
handleDragOver: (e: React.DragEvent) => void;
|
|
11
|
+
handleDrop: (targetColName: string) => void;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useColumnReorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useColumnReorder.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/hooks/useColumnReorder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAE3D;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,UAAU,EAAE,EACrB,UAAU,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,IAAI;+BAOM,MAAM;wBAOb,KAAK,CAAC,SAAS;gCAWpC,MAAM;EAwBzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataTable } from '../../types/data-structures';
|
|
2
|
+
import { InputPanelState, InputPanelSubmitValue } from './input-panel-types';
|
|
3
|
+
/**
|
|
4
|
+
* Create the input panel submit value type giving the original data and the current state
|
|
5
|
+
* @param originalData
|
|
6
|
+
* @param currentState
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const createInputPanelSubmitValue: (originalData: DataTable, currentState: InputPanelState) => InputPanelSubmitValue;
|
|
10
|
+
/**
|
|
11
|
+
* Create the initialized state of the input panel giving the original data
|
|
12
|
+
* @param inputData
|
|
13
|
+
* @param decimalSeparator
|
|
14
|
+
* @param readOnly
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare const initializeCells: (inputData: DataTable, decimalSeparator: string, readOnly: boolean | undefined) => {};
|
|
18
|
+
//# sourceMappingURL=input-panel-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-panel-utils.d.ts","sourceRoot":"","sources":["../../../src/components/input-panel/input-panel-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GACtC,cAAc,SAAS,EACvB,cAAc,eAAe,KAC5B,qBAaF,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,SAAS,EACpB,kBAAkB,MAAM,EACxB,UAAU,OAAO,GAAG,SAAS,OAuC9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-panel.d.ts","sourceRoot":"","sources":["../../../src/components/input-panel/input-panel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-panel.d.ts","sourceRoot":"","sources":["../../../src/components/input-panel/input-panel.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+OhD,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { DataNode, DataRow } from '../../types/data-structures';
|
|
1
|
+
import { DataColumn, DataNode, DataRow } from '../../types/data-structures';
|
|
2
2
|
export interface RowProps {
|
|
3
3
|
/**
|
|
4
4
|
* the DataRow ( or DataNode )
|
|
5
5
|
*/
|
|
6
6
|
row: DataNode | DataRow;
|
|
7
|
+
/**
|
|
8
|
+
* The columns of the datatable
|
|
9
|
+
*/
|
|
10
|
+
columns?: DataColumn[];
|
|
7
11
|
/**
|
|
8
12
|
* the level of nesting inside row
|
|
9
13
|
*/
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"row-types.d.ts","sourceRoot":"","sources":["../../../src/functional-components/row/row-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE3E,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAA;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAErC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;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"}
|
|
@@ -1 +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;AAM7D,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,
|
|
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;AAM7D,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CA4LlC,CAAA"}
|