@finema/core 1.4.150 → 1.4.151

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": "1.4.150",
3
+ "version": "1.4.151",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
2
 
3
3
  const name = "@finema/core";
4
- const version = "1.4.150";
4
+ const version = "1.4.151";
5
5
 
6
6
  const colors = {
7
7
  black: "#20243E",
@@ -105,15 +105,19 @@ export const apiFetchHelper = async (state, onUpdateStatus, onUpdateOptions, onU
105
105
  primary: opts.primary ?? "id",
106
106
  _status: void 0
107
107
  });
108
- const getOptions = (data) => ({
109
- ...state().options,
110
- currentPageCount: state().items?.length || 0,
111
- currentPage: page,
112
- totalCount: data.total,
113
- limit: data.limit,
114
- search: query,
115
- totalPage: Math.ceil(data.total / data.limit)
116
- });
108
+ const getOptions = (data) => {
109
+ const { total, limit: limit2, ...more } = data;
110
+ return {
111
+ ...state().options,
112
+ ...more,
113
+ currentPageCount: state().items?.length || 0,
114
+ currentPage: page,
115
+ totalCount: total,
116
+ limit: limit2,
117
+ search: query,
118
+ totalPage: Math.ceil(total / data.limit)
119
+ };
120
+ };
117
121
  const reqOptions = {
118
122
  ...opts.getBaseRequestOptions?.() || {},
119
123
  ...opts.fetch?.getRequestOptions?.(page, query, opts) ?? {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.150",
3
+ "version": "1.4.151",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",