@finema/core 2.11.0 → 2.12.1

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/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.11.0",
3
+ "version": "2.12.1",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import defu from 'defu';
3
3
  import * as theme from '../dist/runtime/theme/index.js';
4
4
 
5
5
  const name = "@finema/core";
6
- const version = "2.11.0";
6
+ const version = "2.12.1";
7
7
 
8
8
  const nuxtAppOptions = {
9
9
  head: {
@@ -180,9 +180,11 @@ const transformValue = (column, row) => {
180
180
  };
181
181
  const onPageChange = (newPage) => {
182
182
  if (tableContainer.value) {
183
- tableContainer.value.scrollIntoView({
184
- behavior: "smooth",
185
- block: "start"
183
+ const rect = tableContainer.value.getBoundingClientRect();
184
+ const scrollTop = window.pageYOffset + rect.top - 100;
185
+ window.scrollTo({
186
+ top: scrollTop,
187
+ behavior: "smooth"
186
188
  });
187
189
  }
188
190
  emits("pageChange", newPage);
@@ -75,9 +75,9 @@ export interface IUsePageLoader<T> {
75
75
  fetchSearch: (query: string, opts?: IPageFetchLoaderOptions) => Promise<void>;
76
76
  fetchSetLoading: () => void;
77
77
  findSetLoading: () => void;
78
- findRun: (id: string, opts?: any) => Promise<void>;
79
- addRun: (data: any, opts?: IPageAddLoaderOptions) => Promise<void>;
80
- updateRun: (id: string, data: any, opts?: any) => Promise<void>;
78
+ findRun: (id: string, opts?: IPageFindLoaderOptions) => Promise<void>;
79
+ addRun: (payload: IPageAddLoaderOptions<T>) => Promise<void>;
80
+ updateRun: (id: string, payload: IPageUpdateLoaderOptions<T>) => Promise<void>;
81
81
  deleteRun: (id: string, opts?: IPageDeleteLoaderOptions) => Promise<void>;
82
82
  clearAll: () => void;
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.11.0",
3
+ "version": "2.12.1",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",