@finema/core 1.4.19 → 1.4.20

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.19",
3
+ "version": "1.4.20",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, installModule, addPlugin, addComponen
2
2
  import 'lodash-es';
3
3
 
4
4
  const name = "@finema/core";
5
- const version = "1.4.19";
5
+ const version = "1.4.20";
6
6
 
7
7
  const colors = {
8
8
  black: "#20243E",
@@ -1 +1,3 @@
1
+ import { type IListLoaderOptions } from '../helpers/apiListHelper';
2
+ import { type IUseListLoader } from '../helpers/apiObjectHelper';
1
3
  export declare const useListLoader: <T = any, O = Record<string, any>>(loaderOptions: IListLoaderOptions<T, O>) => IUseListLoader<T, O>;
@@ -2,7 +2,7 @@ import { ref } from "vue";
2
2
  import { ObjectHelper } from "../utils/ObjectHelper.mjs";
3
3
  import {
4
4
  apiListHelper
5
- } from "#core/helpers/apiListHelper";
5
+ } from "../helpers/apiListHelper.mjs";
6
6
  export const useListLoader = (loaderOptions) => {
7
7
  const status = ref(ObjectHelper.createStatus());
8
8
  const items = ref([]);
@@ -1 +1,2 @@
1
+ import { type IObjectLoaderOptions, type IUseObjectLoader } from '../helpers/apiObjectHelper';
1
2
  export declare const useObjectLoader: <T = any, B = any, O = Record<string, any>>(loaderOptions: IObjectLoaderOptions<T, B, O>) => IUseObjectLoader<T, B, O>;
@@ -2,7 +2,7 @@ import { ref } from "vue";
2
2
  import { ObjectHelper } from "../utils/ObjectHelper.mjs";
3
3
  import {
4
4
  apiObjectHelper
5
- } from "#core/helpers/apiObjectHelper";
5
+ } from "../helpers/apiObjectHelper.mjs";
6
6
  export const useObjectLoader = (loaderOptions) => {
7
7
  const status = ref(ObjectHelper.createStatus());
8
8
  const data = ref(null);
@@ -1,3 +1,4 @@
1
+ import { type IPageLoaderOptions, type IUsePageLoader } from '../helpers/apiPageHelper';
1
2
  export declare const initPageOptions: (options: {
2
3
  limit: number;
3
4
  primary: string;
@@ -6,7 +6,7 @@ import {
6
6
  apiFetchHelper,
7
7
  apiFindHelper,
8
8
  updateHelper
9
- } from "#core/helpers/apiPageHelper";
9
+ } from "../helpers/apiPageHelper.mjs";
10
10
  import { useCoreConfig } from "./useConfig.mjs";
11
11
  export const initPageOptions = (options) => ({
12
12
  currentPageCount: 0,
@@ -1,6 +1,6 @@
1
1
  import { type ComputedRef } from 'vue';
2
2
  import { type FieldContext, type FieldOptions } from 'vee-validate';
3
- import { type IFieldProps, type IFormField } from '#core/components/Form/types';
3
+ import { type IFieldProps, type IFormField } from '../components/Form/types';
4
4
  interface IFieldContext<TValue> extends FieldContext<TValue> {
5
5
  wrapperProps: ComputedRef<IFieldProps>;
6
6
  }
@@ -1,7 +1,8 @@
1
1
  import { type ComputedRef } from 'vue';
2
2
  import { type Store } from 'pinia';
3
- import { type IStatus, type IUsePageLoader } from '#imports';
4
- import { type IColumn, type IRow, type ISimpleTableOptions, type ITableOptions } from '#core/components/Table/types';
3
+ import { type IStatus } from '#imports';
4
+ import { type IColumn, type IRow, type ISimpleTableOptions, type ITableOptions } from '../components/Table/types';
5
+ import { type IUsePageLoader } from '../helpers/apiPageHelper';
5
6
  export interface IUseTable<T = object> {
6
7
  repo: IUsePageLoader<T> | Store<any, any>;
7
8
  columns: () => IColumn[];
@@ -15,4 +16,4 @@ export interface IUseTableSimple<T = object> {
15
16
  }
16
17
  export declare const useTable: <T = object>(options: IUseTable<T>) => ComputedRef<ITableOptions<T>>;
17
18
  export declare const useTableSimple: <T = object>(options: IUseTableSimple<T>) => ComputedRef<ISimpleTableOptions<T>>;
18
- export declare const createTableOptions: <T = object>(repo: IUsePageLoader<T>, columns: IColumn[], rows: IRow[], options: ITableOptions<T>) => ITableOptions<T>;
19
+ export declare const createTableOptions: <T = object>(repo: IUsePageLoader<T>, columns: IColumn[], rows: IRow[], options: Partial<ITableOptions<T>>) => ITableOptions<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.19",
3
+ "version": "1.4.20",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",