poe-svelte-ui-lib 1.5.16 → 1.5.17

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.
@@ -27,6 +27,9 @@
27
27
 
28
28
  let buffer: any[] = $state([])
29
29
 
30
+ export const clearBuffer = () => {
31
+ buffer = []
32
+ }
30
33
  /* Сортировка */
31
34
  let sortState: {
32
35
  key: string | null
@@ -328,7 +331,7 @@
328
331
  'absolute right-2 bg-(--back-color) rounded-full p-1 cursor-pointer [&_svg]:h-full [&_svg]:max-h-full [&_svg]:w-full [&_svg]:max-w-full',
329
332
  dataBuffer.clearClass,
330
333
  )}
331
- onclick={() => (buffer = [])}
334
+ onclick={clearBuffer}
332
335
  >
333
336
  <ButtonClear />
334
337
  </button>
@@ -1,4 +1,6 @@
1
1
  import type { ITableProps } from '../types';
2
- declare const Table: import("svelte").Component<ITableProps<any>, {}, "body" | "modalData">;
2
+ declare const Table: import("svelte").Component<ITableProps<any>, {
3
+ clearBuffer: () => void;
4
+ }, "body" | "modalData">;
3
5
  type Table = ReturnType<typeof Table>;
4
6
  export default Table;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.5.16",
3
+ "version": "1.5.17",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {