@sme.up/ketchup2 2.0.0-SNAPSHOT-20250717081506 → 2.0.0-SNAPSHOT-20250717123124
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/arrow_down.svg +1 -0
- package/dist/assets/svg/arrow_up.svg +1 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/hooks/useSortableTable.d.ts +10 -0
- package/dist/components/data-table/hooks/useSortableTable.d.ts.map +1 -0
- package/dist/components/data-table/utils/sortTable-utils.d.ts +10 -0
- package/dist/components/data-table/utils/sortTable-utils.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/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.es.js +1928 -1862
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24"><path d="M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24"><path d="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z" /></svg>
|
|
@@ -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;AAsB3E,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmgBvD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InternalDataTable } from '../data-table-types';
|
|
2
|
+
type SortOrder = "asc" | "desc";
|
|
3
|
+
export declare function useSortableDataTable(data: InternalDataTable): {
|
|
4
|
+
sortedRows: import('../data-table-types').internalRows[];
|
|
5
|
+
sortBy: string | null;
|
|
6
|
+
sortOrder: SortOrder;
|
|
7
|
+
handleSort: (column: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=useSortableTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSortableTable.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/hooks/useSortableTable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,KAAK,SAAS,GAAG,KAAK,GAAG,MAAM,CAAA;AAE/B,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB;;;;yBAS9B,MAAM;EAkBnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InternalDataTable } from '../data-table-types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param dataTable
|
|
5
|
+
* @param columnName
|
|
6
|
+
* @param order
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function sortDataTableByColumn(dataTable: InternalDataTable, columnName: string, order: "asc" | "desc"): InternalDataTable;
|
|
10
|
+
//# sourceMappingURL=sortTable-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortTable-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/utils/sortTable-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,iBAAiB,EAC5B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,KAAK,GAAG,MAAM,GACpB,iBAAiB,CAkBnB"}
|
|
@@ -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"}
|