@finema/core 1.2.2 → 1.3.0
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/README.md +32 -38
- package/dist/module.d.mts +30 -0
- package/dist/module.d.ts +30 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +151 -4
- package/dist/runtime/components/Button/Group.vue +31 -0
- package/dist/runtime/components/Button/index.vue +17 -0
- package/dist/runtime/components/Dialog/index.vue +63 -0
- package/dist/runtime/components/Form/FieldWrapper.vue +10 -0
- package/dist/runtime/components/Form/Fields.vue +41 -0
- package/dist/runtime/components/Form/InputSelect/SelectMenu.vue +11 -0
- package/dist/runtime/components/Form/InputSelect/index.vue +11 -0
- package/dist/runtime/components/Form/InputStatic/index.vue +16 -0
- package/dist/runtime/components/Form/InputStatic/types.d.ts +4 -0
- package/dist/runtime/components/Form/InputText/index.vue +28 -0
- package/dist/runtime/components/Form/InputText/types.d.ts +10 -0
- package/dist/runtime/components/Form/InputText/types.mjs +0 -0
- package/dist/runtime/components/Form/InputToggle/index.vue +14 -0
- package/dist/runtime/components/Form/InputToggle/types.d.ts +6 -0
- package/dist/runtime/components/Form/InputToggle/types.mjs +0 -0
- package/dist/runtime/components/Form/index.vue +6 -0
- package/dist/runtime/components/Form/types.d.ts +47 -0
- package/dist/runtime/components/Form/types.mjs +8 -0
- package/dist/runtime/components/Icon.vue +11 -0
- package/dist/runtime/components/Loader.vue +6 -0
- package/dist/runtime/components/Modal/index.vue +145 -0
- package/dist/runtime/components/Slideover/index.vue +109 -0
- package/dist/runtime/components/Table/ColumnImage.vue +13 -0
- package/dist/runtime/components/Table/ColumnNumber.vue +14 -0
- package/dist/runtime/components/Table/index.vue +84 -0
- package/dist/runtime/components/Table/types.d.ts +57 -0
- package/dist/runtime/components/Table/types.mjs +10 -0
- package/dist/runtime/{lib/api → composables}/loaderList.d.ts +0 -1
- package/dist/runtime/{lib/api → composables}/loaderList.mjs +2 -2
- package/dist/runtime/{lib/api → composables}/loaderObject.d.ts +0 -1
- package/dist/runtime/{lib/api → composables}/loaderObject.mjs +2 -2
- package/dist/runtime/{lib/api → composables}/loaderPage.d.ts +4 -2
- package/dist/runtime/{lib/api → composables}/loaderPage.mjs +17 -8
- package/dist/runtime/composables/useConfig.d.ts +3 -0
- package/dist/runtime/composables/useConfig.mjs +9 -0
- package/dist/runtime/composables/useDialog.d.ts +26 -0
- package/dist/runtime/composables/useDialog.mjs +81 -0
- package/dist/runtime/composables/useForm.d.ts +24 -0
- package/dist/runtime/composables/useForm.mjs +44 -0
- package/dist/runtime/composables/useTable.d.ts +18 -0
- package/dist/runtime/composables/useTable.mjs +35 -0
- package/dist/runtime/composables/useWatch.d.ts +3 -0
- package/dist/runtime/composables/useWatch.mjs +22 -0
- package/dist/runtime/core.config.d.ts +4 -0
- package/dist/runtime/core.config.mjs +4 -0
- package/dist/runtime/{lib/api → helpers}/apiListHelper.d.ts +3 -3
- package/dist/runtime/{lib/api → helpers}/apiListHelper.mjs +3 -3
- package/dist/runtime/{lib/api → helpers}/apiObjectHelper.d.ts +3 -3
- package/dist/runtime/{lib/api → helpers}/apiObjectHelper.mjs +3 -3
- package/dist/runtime/{lib/api → helpers}/apiPageHelper.d.ts +4 -4
- package/dist/runtime/{lib/api → helpers}/apiPageHelper.mjs +7 -6
- package/dist/runtime/plugin.mjs +1 -1
- package/dist/runtime/types/common.d.ts +6 -8
- package/dist/runtime/types/common.mjs +0 -0
- package/dist/runtime/types/config.d.ts +1 -0
- package/dist/runtime/types/config.mjs +0 -0
- package/dist/runtime/types/lib.d.ts +63 -76
- package/dist/runtime/types/lib.mjs +0 -0
- package/dist/runtime/{lib/api → types}/loaderTypes.d.ts +1 -1
- package/dist/runtime/types/loaderTypes.mjs +0 -0
- package/dist/runtime/types/utils.d.ts +9 -0
- package/dist/runtime/ui.config.d.ts +2 -0
- package/dist/runtime/ui.config.mjs +44 -0
- package/dist/runtime/ui.css +14 -0
- package/dist/runtime/utils/StringHelper.mjs +1 -1
- package/dist/runtime/utils/lodash.d.ts +7 -0
- package/dist/runtime/utils/lodash.mjs +1 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +13 -12
- package/dist/runtime/composables/useLibs.d.ts +0 -24
- package/dist/runtime/composables/useLibs.mjs +0 -4
- package/dist/runtime/composables/useUtils.d.ts +0 -10
- package/dist/runtime/composables/useUtils.mjs +0 -12
- package/dist/runtime/lib/api/config.d.ts +0 -4
- package/dist/runtime/lib/api/config.mjs +0 -4
- package/dist/runtime/lib/index.d.ts +0 -8
- package/dist/runtime/lib/index.mjs +0 -8
- /package/dist/runtime/{lib/api/loaderTypes.mjs → components/Form/InputStatic/types.mjs} +0 -0
|
@@ -8,6 +8,7 @@ export const _dropRight = lodash.dropRight;
|
|
|
8
8
|
export const _intersection = lodash.intersection;
|
|
9
9
|
export const _set = lodash.set;
|
|
10
10
|
export const _map = lodash.map;
|
|
11
|
+
export const _merge = lodash.merge;
|
|
11
12
|
export const _flatDeep = lodash.flattenDeep;
|
|
12
13
|
export const _uniq = lodash.uniq;
|
|
13
14
|
export const _sortBy = lodash.sortBy;
|
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finema/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finema Development Team",
|
|
@@ -29,37 +29,38 @@
|
|
|
29
29
|
"lint:fix": "eslint . --fix",
|
|
30
30
|
"test": "vitest run",
|
|
31
31
|
"test:watch": "vitest watch",
|
|
32
|
-
"release": "release-it"
|
|
32
|
+
"release": "release-it",
|
|
33
|
+
"prepare": "husky install"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
36
|
+
"@headlessui/vue": "^1.7.16",
|
|
37
|
+
"@iconify-json/mdi": "^1.1.54",
|
|
38
|
+
"@iconify-json/simple-icons": "^1.1.76",
|
|
35
39
|
"@nuxt/kit": "^3.7.4",
|
|
40
|
+
"@nuxt/ui": "^2.9.0",
|
|
36
41
|
"@pinia/nuxt": "^0.4.11",
|
|
42
|
+
"@vee-validate/nuxt": "^4.11.8",
|
|
43
|
+
"@vee-validate/zod": "^4.11.8",
|
|
37
44
|
"axios": "^1.5.1",
|
|
38
45
|
"dayjs": "^1.11.10",
|
|
39
46
|
"lodash": "^4.17.21",
|
|
47
|
+
"nuxt-security": "^0.14.4",
|
|
40
48
|
"pinia": "^2.1.6",
|
|
41
|
-
"url-join": "^5.0.0"
|
|
49
|
+
"url-join": "^5.0.0",
|
|
50
|
+
"zod": "^3.22.4"
|
|
42
51
|
},
|
|
43
52
|
"devDependencies": {
|
|
53
|
+
"@finema/eslint-config": "^1.2.0",
|
|
44
54
|
"@nuxt/devtools": "latest",
|
|
45
55
|
"@nuxt/eslint-config": "^0.2.0",
|
|
46
56
|
"@nuxt/module-builder": "^0.5.2",
|
|
47
57
|
"@nuxt/schema": "^3.7.4",
|
|
48
58
|
"@nuxt/test-utils": "^3.7.4",
|
|
49
|
-
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
50
59
|
"@release-it/conventional-changelog": "^7.0.2",
|
|
51
60
|
"@types/lodash": "^4.14.199",
|
|
52
61
|
"@types/node": "^18.18.1",
|
|
53
62
|
"changelogen": "^0.5.5",
|
|
54
63
|
"eslint": "^8.50.0",
|
|
55
|
-
"eslint-config-prettier": "^9.0.0",
|
|
56
|
-
"eslint-config-standard-with-typescript": "^39.1.0",
|
|
57
|
-
"eslint-plugin-import": "^2.28.1",
|
|
58
|
-
"eslint-plugin-n": "^16.1.0",
|
|
59
|
-
"eslint-plugin-nuxt": "^4.0.0",
|
|
60
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
61
|
-
"eslint-plugin-unused-imports": "^3.0.0",
|
|
62
|
-
"eslint-plugin-vue": "^9.17.0",
|
|
63
64
|
"husky": "^8.0.3",
|
|
64
65
|
"lint-staged": "^14.0.1",
|
|
65
66
|
"nuxt": "^3.7.4",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as CoreLibs from '../lib';
|
|
2
|
-
export declare const useLibs: () => {
|
|
3
|
-
Requester: typeof CoreLibs.Requester;
|
|
4
|
-
NewRequester: CoreLibs.IRequester;
|
|
5
|
-
apiListHelper: <T, O>(state: () => import("../types/lib").IAPIListState<T>, onUpdateStatus: (status: import("../types/lib").IStatus) => void, onUpdateOptions: (options: import("../types/lib").IAPIOptions) => void, onUpdateItems: (data: T[]) => void, opts: CoreLibs.IListLoaderOptions<T, O> & CoreLibs.IListRunLoaderOptions<T, O>) => Promise<void>;
|
|
6
|
-
apiObjectHelper: <T_1, B, O_1>(state: () => import("../types/lib").IAPIObjectState<T_1>, onUpdateStatus: (status: import("../types/lib").IStatus) => void, onUpdateOptions: (options: import("../types/lib").IAPIOptions) => void, onUpdateData: (data: any) => void, data: B | undefined, opts: CoreLibs.IObjectLoaderOptions<T_1, B, O_1> & CoreLibs.IObjectRunLoaderOptions<T_1, O_1>) => Promise<void>;
|
|
7
|
-
apiAddHelper: <T_2>(state: () => import("../types/lib").IAPIAddState<T_2>, onUpdateStatus: (status: import("../types/lib").IStatus) => void, onUpdateOptions: (options: import("../types/lib").IAPIOptions) => void, onUpdateData: (data: any) => void, onUpdateItems: (data: any[]) => void, data: any, opts: CoreLibs.IPageLoaderOptions<any> & CoreLibs.IPageFetchLoaderOptions<Record<string, any>>) => Promise<void>;
|
|
8
|
-
apiDeleteHelper: <T_3>(state: () => import("../types/lib").IAPIDeleteState<T_3>, onUpdateStatus: (status: import("../types/lib").IStatus) => void, onUpdateOptions: (options: import("../types/lib").IAPIOptions) => void, _onUpdateData: (data: T_3) => void, onUpdateItems: (data: T_3[]) => void, id: string | number, opts: CoreLibs.IPageLoaderOptions<any> & CoreLibs.IPageDeleteLoaderOptions<Record<string, any>>) => Promise<void>;
|
|
9
|
-
apiFetchHelper: <T_4>(state: () => import("../types/lib").IAPIFetchState<T_4>, onUpdateStatus: (status: import("../types/lib").IStatus) => void, onUpdateOptions: (options: import("../types/lib").IPageOptions) => void, onUpdateItems: (items: T_4[]) => void, page: number, query: string, opts: CoreLibs.IPageLoaderOptions<T_4> & CoreLibs.IPageFetchLoaderOptions<any>) => Promise<void>;
|
|
10
|
-
apiFindHelper: <T_5>(state: () => import("../types/lib").IAPIFindState<T_5>, onUpdateStatus: (status: import("../types/lib").IStatus) => void, onUpdateOptions: (options: import("../types/lib").IAPIOptions) => void, onUpdateData: (data: any) => void, id: string | number, opts: CoreLibs.IPageLoaderOptions<T_5> & CoreLibs.IPageFindLoaderOptions<Record<string, any>>) => Promise<void>;
|
|
11
|
-
updateHelper: <T_6>(state: () => import("../types/lib").IAPIUpdateState<T_6>, onUpdateStatus: (status: import("../types/lib").IStatus) => void, onUpdateOptions: (options: import("../types/lib").IAPIOptions) => void, onUpdateData: (data: T_6) => void, _onUpdateItems: (data: T_6[]) => void, onUpdateOldData: (data: T_6) => void, id: string | number, data: any, opts: CoreLibs.IPageLoaderOptions<any> & CoreLibs.IPageUpdateLoaderOptions<Record<string, any>>) => Promise<void>;
|
|
12
|
-
useListLoader: <T_7 = any, O_2 = Record<string, any>>(loaderOptions: CoreLibs.IListLoaderOptions<T_7, O_2>) => CoreLibs.IUseListLoader<T_7, O_2>;
|
|
13
|
-
useObjectLoader: <T_8 = any, B_1 = any, O_3 = Record<string, any>>(loaderOptions: CoreLibs.IObjectLoaderOptions<T_8, B_1, O_3>) => CoreLibs.IUseObjectLoader<T_8, B_1, O_3>;
|
|
14
|
-
initPageOptions: () => {
|
|
15
|
-
currentPageCount: number;
|
|
16
|
-
currentPage: number;
|
|
17
|
-
totalPage: number;
|
|
18
|
-
totalCount: number;
|
|
19
|
-
limit: number;
|
|
20
|
-
search: string;
|
|
21
|
-
primary: string;
|
|
22
|
-
};
|
|
23
|
-
usePageLoader: <T_9 = any>(loaderOptions: CoreLibs.IPageLoaderOptions<T_9>) => CoreLibs.IUsePageLoader<T_9>;
|
|
24
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StringHelper } from '../utils/StringHelper';
|
|
2
|
-
import { TimeHelper } from '../utils/TimeHelper';
|
|
3
|
-
import { ParamHelper } from '../utils/ParamHelper';
|
|
4
|
-
import { FileHelper } from '../utils/FileHelper';
|
|
5
|
-
export declare const useUtils: () => {
|
|
6
|
-
StringHelper: typeof StringHelper;
|
|
7
|
-
TimeHelper: typeof TimeHelper;
|
|
8
|
-
ParamHelper: typeof ParamHelper;
|
|
9
|
-
FileHelper: typeof FileHelper;
|
|
10
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StringHelper } from "../utils/StringHelper.mjs";
|
|
2
|
-
import { TimeHelper } from "../utils/TimeHelper.mjs";
|
|
3
|
-
import { ParamHelper } from "../utils/ParamHelper.mjs";
|
|
4
|
-
import { FileHelper } from "../utils/FileHelper.mjs";
|
|
5
|
-
export const useUtils = () => {
|
|
6
|
-
return {
|
|
7
|
-
StringHelper,
|
|
8
|
-
TimeHelper,
|
|
9
|
-
ParamHelper,
|
|
10
|
-
FileHelper
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './Requester';
|
|
2
|
-
export * from './api/apiListHelper';
|
|
3
|
-
export * from './api/apiObjectHelper';
|
|
4
|
-
export * from './api/apiPageHelper';
|
|
5
|
-
export * from './api/loaderList';
|
|
6
|
-
export * from './api/loaderObject';
|
|
7
|
-
export * from './api/loaderPage';
|
|
8
|
-
export * from './api/loaderTypes';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./Requester.mjs";
|
|
2
|
-
export * from "./api/apiListHelper.mjs";
|
|
3
|
-
export * from "./api/apiObjectHelper.mjs";
|
|
4
|
-
export * from "./api/apiPageHelper.mjs";
|
|
5
|
-
export * from "./api/loaderList.mjs";
|
|
6
|
-
export * from "./api/loaderObject.mjs";
|
|
7
|
-
export * from "./api/loaderPage.mjs";
|
|
8
|
-
export * from "./api/loaderTypes.mjs";
|
|
File without changes
|