@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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/composables/loaderList.d.ts +2 -0
- package/dist/runtime/composables/loaderList.mjs +1 -1
- package/dist/runtime/composables/loaderObject.d.ts +1 -0
- package/dist/runtime/composables/loaderObject.mjs +1 -1
- package/dist/runtime/composables/loaderPage.d.ts +1 -0
- package/dist/runtime/composables/loaderPage.mjs +1 -1
- package/dist/runtime/composables/useForm.d.ts +1 -1
- package/dist/runtime/composables/useTable.d.ts +4 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { ref } from "vue";
|
|
|
2
2
|
import { ObjectHelper } from "../utils/ObjectHelper.mjs";
|
|
3
3
|
import {
|
|
4
4
|
apiListHelper
|
|
5
|
-
} from "
|
|
5
|
+
} from "../helpers/apiListHelper.mjs";
|
|
6
6
|
export const useListLoader = (loaderOptions) => {
|
|
7
7
|
const status = ref(ObjectHelper.createStatus());
|
|
8
8
|
const items = ref([]);
|
|
@@ -2,7 +2,7 @@ import { ref } from "vue";
|
|
|
2
2
|
import { ObjectHelper } from "../utils/ObjectHelper.mjs";
|
|
3
3
|
import {
|
|
4
4
|
apiObjectHelper
|
|
5
|
-
} from "
|
|
5
|
+
} from "../helpers/apiObjectHelper.mjs";
|
|
6
6
|
export const useObjectLoader = (loaderOptions) => {
|
|
7
7
|
const status = ref(ObjectHelper.createStatus());
|
|
8
8
|
const data = ref(null);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
apiFetchHelper,
|
|
7
7
|
apiFindHelper,
|
|
8
8
|
updateHelper
|
|
9
|
-
} from "
|
|
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 '
|
|
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
|
|
4
|
-
import { type IColumn, type IRow, type ISimpleTableOptions, type ITableOptions } from '
|
|
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
|
|
19
|
+
export declare const createTableOptions: <T = object>(repo: IUsePageLoader<T>, columns: IColumn[], rows: IRow[], options: Partial<ITableOptions<T>>) => ITableOptions<T>;
|