knt-shared 1.4.5 → 1.4.6
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/useTable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAA0C,MAAM,SAAS,CAAC;AAGpH;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB,GAAG;IACvD,CAAC,aAAa,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,GAAG,KAAK,IAAI;IAChD,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;CACjC,
|
|
1
|
+
{"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/useTable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAA0C,MAAM,SAAS,CAAC;AAGpH;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB,GAAG;IACvD,CAAC,aAAa,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,GAAG,KAAK,IAAI;IAChD,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;CACjC,CAmhBA;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAKxE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,OAAO,EAAE,WAAW,EAAE,EAAE,GAAG,WAAW,EAAE,CAE5E"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -6692,11 +6692,11 @@ function useTable(options = {}) {
|
|
|
6692
6692
|
await table.deleteRow(record);
|
|
6693
6693
|
}
|
|
6694
6694
|
};
|
|
6695
|
-
const addRow = async () => {
|
|
6695
|
+
const addRow = async (position = "bottom") => {
|
|
6696
6696
|
const table = getTable();
|
|
6697
6697
|
if (!table) return;
|
|
6698
6698
|
if (table.addRow) {
|
|
6699
|
-
await table.addRow();
|
|
6699
|
+
await table.addRow(position);
|
|
6700
6700
|
}
|
|
6701
6701
|
};
|
|
6702
6702
|
const getEditingRows = () => {
|