@finema/core 2.52.6 → 2.53.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/dist/module.json +2 -2
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/App.d.vue.ts +17 -0
- package/dist/runtime/components/App.vue.d.ts +3 -2
- package/dist/runtime/components/DevToolsWindow/index.d.vue.ts +3 -0
- package/dist/runtime/components/DevToolsWindow/index.vue.d.ts +2 -1
- package/dist/runtime/components/Dialog/index.d.vue.ts +11 -0
- package/dist/runtime/components/Dialog/index.vue.d.ts +2 -1
- package/dist/runtime/components/Empty.d.vue.ts +13 -0
- package/dist/runtime/components/Empty.vue.d.ts +2 -1
- package/dist/runtime/components/FlexDeck/index.d.vue.ts +46 -0
- package/dist/runtime/components/FlexDeck/index.vue.d.ts +4 -3
- package/dist/runtime/components/Form/FieldWrapper.d.vue.ts +17 -0
- package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/FieldWrapper.vue.d.ts +3 -2
- package/dist/runtime/components/Form/Fields.d.vue.ts +15 -0
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/Fields.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputCheckbox/index.d.vue.ts +8 -0
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputComponent/index.d.vue.ts +4 -0
- package/dist/runtime/components/Form/InputComponent/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputDateTime/index.d.vue.ts +12 -0
- package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputDateTimeRange/index.d.vue.ts +12 -0
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputMonth/index.d.vue.ts +12 -0
- package/dist/runtime/components/Form/InputMonth/index.vue +51 -51
- package/dist/runtime/components/Form/InputMonth/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputNumber/index.d.vue.ts +10 -0
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputRadio/index.d.vue.ts +12 -0
- package/dist/runtime/components/Form/InputRadio/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputSearch/index.d.vue.ts +14 -0
- package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputSelect/index.d.vue.ts +10 -0
- package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputSelectMultiple/index.d.vue.ts +8 -0
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +43 -43
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputTags/index.d.vue.ts +12 -0
- package/dist/runtime/components/Form/InputTags/index.vue +23 -23
- package/dist/runtime/components/Form/InputTags/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputText/index.d.vue.ts +12 -0
- package/dist/runtime/components/Form/InputText/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputTextarea/index.d.vue.ts +8 -0
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputTime/index.d.vue.ts +13 -0
- package/dist/runtime/components/Form/InputTime/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputToggle/index.d.vue.ts +8 -0
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputUploadDropzone/index.d.vue.ts +13 -0
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.d.vue.ts +25 -0
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.d.vue.ts +12 -0
- package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue.d.ts +2 -1
- package/dist/runtime/components/Form/InputWYSIWYG/index.d.vue.ts +7 -0
- package/dist/runtime/components/Form/InputWYSIWYG/index.vue.d.ts +2 -1
- package/dist/runtime/components/Form/fileState/EmptyState.d.vue.ts +13 -0
- package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
- package/dist/runtime/components/Form/fileState/EmptyState.vue.d.ts +2 -1
- package/dist/runtime/components/Form/fileState/FailedState.d.vue.ts +15 -0
- package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
- package/dist/runtime/components/Form/fileState/FailedState.vue.d.ts +2 -1
- package/dist/runtime/components/Form/fileState/LoadingState.d.vue.ts +9 -0
- package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
- package/dist/runtime/components/Form/fileState/LoadingState.vue.d.ts +2 -1
- package/dist/runtime/components/Form/fileState/PreviewModal.d.vue.ts +11 -0
- package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
- package/dist/runtime/components/Form/fileState/PreviewModal.vue.d.ts +2 -1
- package/dist/runtime/components/Form/fileState/SuccessState.d.vue.ts +18 -0
- package/dist/runtime/components/Form/fileState/SuccessState.vue.d.ts +2 -1
- package/dist/runtime/components/Form/index.d.vue.ts +13 -0
- package/dist/runtime/components/Form/index.vue +5 -5
- package/dist/runtime/components/Form/index.vue.d.ts +3 -2
- package/dist/runtime/components/Image.d.vue.ts +14 -0
- package/dist/runtime/components/Image.vue +28 -28
- package/dist/runtime/components/Image.vue.d.ts +3 -2
- package/dist/runtime/components/Loader.d.vue.ts +22 -0
- package/dist/runtime/components/Loader.vue.d.ts +3 -2
- package/dist/runtime/components/Log/LogItem.d.vue.ts +7 -0
- package/dist/runtime/components/Log/LogItem.vue.d.ts +2 -1
- package/dist/runtime/components/Log/index.d.vue.ts +8 -0
- package/dist/runtime/components/Log/index.vue +17 -17
- package/dist/runtime/components/Log/index.vue.d.ts +2 -1
- package/dist/runtime/components/Table/Base.d.vue.ts +31 -0
- package/dist/runtime/components/Table/Base.vue +5 -8
- package/dist/runtime/components/Table/Base.vue.d.ts +3 -2
- package/dist/runtime/components/Table/ColumnDate.d.vue.ts +9 -0
- package/dist/runtime/components/Table/ColumnDate.vue +2 -2
- package/dist/runtime/components/Table/ColumnDate.vue.d.ts +2 -1
- package/dist/runtime/components/Table/ColumnDateTime.d.vue.ts +9 -0
- package/dist/runtime/components/Table/ColumnDateTime.vue +2 -2
- package/dist/runtime/components/Table/ColumnDateTime.vue.d.ts +2 -1
- package/dist/runtime/components/Table/ColumnImage.d.vue.ts +9 -0
- package/dist/runtime/components/Table/ColumnImage.vue +5 -5
- package/dist/runtime/components/Table/ColumnImage.vue.d.ts +2 -1
- package/dist/runtime/components/Table/ColumnNumber.d.vue.ts +9 -0
- package/dist/runtime/components/Table/ColumnNumber.vue +1 -1
- package/dist/runtime/components/Table/ColumnNumber.vue.d.ts +2 -1
- package/dist/runtime/components/Table/ColumnText.d.vue.ts +9 -0
- package/dist/runtime/components/Table/ColumnText.vue +2 -2
- package/dist/runtime/components/Table/ColumnText.vue.d.ts +2 -1
- package/dist/runtime/components/Table/Pagination.d.vue.ts +19 -0
- package/dist/runtime/components/Table/Pagination.vue +46 -46
- package/dist/runtime/components/Table/Pagination.vue.d.ts +2 -1
- package/dist/runtime/components/Table/Simple.d.vue.ts +20 -0
- package/dist/runtime/components/Table/Simple.vue +17 -17
- package/dist/runtime/components/Table/Simple.vue.d.ts +3 -2
- package/dist/runtime/components/Table/index.d.vue.ts +26 -0
- package/dist/runtime/components/Table/index.vue.d.ts +3 -2
- package/dist/runtime/components/Table/types.d.ts +2 -0
- package/dist/runtime/components/TeleportSafe.d.vue.ts +17 -0
- package/dist/runtime/components/TeleportSafe.vue.d.ts +3 -2
- package/dist/runtime/composables/useTable.js +1 -0
- package/dist/runtime/helpers/apiPageHelper.js +1 -1
- package/dist/runtime/server/tsconfig.json +3 -3
- package/package.json +9 -9
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Base
|
|
3
|
-
v-bind="$attrs"
|
|
2
|
+
<Base
|
|
3
|
+
v-bind="$attrs"
|
|
4
4
|
:options="{
|
|
5
5
|
...options,
|
|
6
6
|
pageOptions,
|
|
7
7
|
isHideLimitSelect: true
|
|
8
|
-
}"
|
|
9
|
-
:ui="ui"
|
|
10
|
-
:raw-data="itemsByPage"
|
|
11
|
-
@page-change="onPageChange"
|
|
12
|
-
>
|
|
13
|
-
<template
|
|
14
|
-
v-for="(_, slot) of $slots"
|
|
15
|
-
#[slot]="slotProps"
|
|
16
|
-
>
|
|
17
|
-
<slot
|
|
18
|
-
:name="slot"
|
|
19
|
-
v-bind="slotProps || {}"
|
|
20
|
-
/>
|
|
21
|
-
</template>
|
|
22
|
-
</Base>
|
|
8
|
+
}"
|
|
9
|
+
:ui="ui"
|
|
10
|
+
:raw-data="itemsByPage"
|
|
11
|
+
@page-change="onPageChange"
|
|
12
|
+
>
|
|
13
|
+
<template
|
|
14
|
+
v-for="(_, slot) of $slots"
|
|
15
|
+
#[slot]="slotProps"
|
|
16
|
+
>
|
|
17
|
+
<slot
|
|
18
|
+
:name="slot"
|
|
19
|
+
v-bind="slotProps || {}"
|
|
20
|
+
/>
|
|
21
|
+
</template>
|
|
22
|
+
</Base>
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script setup>
|
|
@@ -9,8 +9,9 @@ type __VLS_Props = {
|
|
|
9
9
|
ui?: (typeof tableTheme)['slots'];
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = Slot;
|
|
12
|
-
declare const
|
|
13
|
-
declare const
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
14
15
|
export default _default;
|
|
15
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
16
17
|
new (): {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TableSlots } from '@nuxt/ui';
|
|
2
|
+
import type { ITableOptions } from '#core/components/Table/types';
|
|
3
|
+
import { tableTheme } from '#core/theme/table';
|
|
4
|
+
type Slot = TableSlots<any> & {
|
|
5
|
+
error: (props?: Record<string, any>) => any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
options: ITableOptions<any>;
|
|
9
|
+
ui?: (typeof tableTheme)['slots'];
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = Slot;
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
+
search: (q: string) => any;
|
|
14
|
+
pageChange: (page: number) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onSearch?: ((q: string) => any) | undefined;
|
|
17
|
+
onPageChange?: ((page: number) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -9,14 +9,15 @@ type __VLS_Props = {
|
|
|
9
9
|
ui?: (typeof tableTheme)['slots'];
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = Slot;
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
13
|
search: (q: string) => any;
|
|
14
14
|
pageChange: (page: number) => any;
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
16
|
onSearch?: ((q: string) => any) | undefined;
|
|
17
17
|
onPageChange?: ((page: number) => any) | undefined;
|
|
18
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
23
|
new (): {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
2
|
import type { TableColumn as NuxtUiTableColumn } from '@nuxt/ui';
|
|
3
3
|
import type { IPageOptions, IStatus } from '#core/types/lib';
|
|
4
|
+
import type { IUsePageLoader } from '../../helpers/apiPageHelper.js';
|
|
4
5
|
export declare enum COLUMN_TYPES {
|
|
5
6
|
COMPONENT = "COMPONENT",
|
|
6
7
|
DATE = "DATE",
|
|
@@ -26,6 +27,7 @@ export interface IBaseTableOptions<T extends Record<string, any> = Record<string
|
|
|
26
27
|
isHideCaption?: boolean;
|
|
27
28
|
}
|
|
28
29
|
export interface ITableOptions<T extends Record<string, any> = Record<string, any>> extends IBaseTableOptions<T> {
|
|
30
|
+
repo: IUsePageLoader<T>;
|
|
29
31
|
pageOptions: IPageOptions;
|
|
30
32
|
isHideToolbar?: boolean;
|
|
31
33
|
isEnabledSearch?: boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
to: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_6: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_6) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -6,8 +6,9 @@ declare var __VLS_6: {};
|
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_6) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
10
|
-
declare const
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
11
12
|
export default _default;
|
|
12
13
|
type __VLS_WithSlots<T, S> = T & {
|
|
13
14
|
new (): {
|
|
@@ -131,7 +131,7 @@ export const apiFetchHelper = async (state, onUpdateStatus, onUpdateOptions, onU
|
|
|
131
131
|
...opts.getBaseRequestOptions?.() || {},
|
|
132
132
|
...opts.fetch?.getRequestOptions?.(page, query, opts) || {}
|
|
133
133
|
};
|
|
134
|
-
const limit = Number(baseRequestOptions.params?.limit || config.limit_per_page);
|
|
134
|
+
const limit = Number(state().options.limit || baseRequestOptions.params?.limit || config.limit_per_page);
|
|
135
135
|
const requestOptions = prepareRequestOptions(
|
|
136
136
|
baseRequestOptions,
|
|
137
137
|
{
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finema/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.53.0",
|
|
4
4
|
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finema Dev Core Team",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@iconify-json/heroicons": "^1.2.2",
|
|
44
44
|
"@iconify-json/ph": "^1.2.2",
|
|
45
45
|
"@iconify-json/svg-spinners": "^1.2.2",
|
|
46
|
-
"@nuxt/kit": "^4.
|
|
47
|
-
"@nuxt/ui": "^4.0
|
|
46
|
+
"@nuxt/kit": "^4.1.3",
|
|
47
|
+
"@nuxt/ui": "^4.1.0",
|
|
48
48
|
"@pinia/nuxt": "^0.11.0",
|
|
49
49
|
"@tailwindcss/typography": "^0.5.0-alpha.3",
|
|
50
50
|
"@tiptap/extension-image": "^3.0.7",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@vee-validate/nuxt": "^4.15.1",
|
|
60
60
|
"@vee-validate/valibot": "^4.15.1",
|
|
61
61
|
"@vuepic/vue-datepicker": "^11.0.2",
|
|
62
|
-
"@vueuse/components": "^13.
|
|
63
|
-
"@vueuse/core": "^13.
|
|
62
|
+
"@vueuse/components": "^13.9.0",
|
|
63
|
+
"@vueuse/core": "^13.9.0",
|
|
64
64
|
"@wdns/vue-code-block": "^2.3.5",
|
|
65
65
|
"axios": "^1.10.0",
|
|
66
66
|
"date-fns": "^4.1.0",
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
"@nuxt/devtools": "^2.6.0",
|
|
77
77
|
"@nuxt/eslint-config": "^1.4.1",
|
|
78
78
|
"@nuxt/module-builder": "^1.0.2",
|
|
79
|
-
"@nuxt/schema": "^4.
|
|
79
|
+
"@nuxt/schema": "^4.1.3",
|
|
80
80
|
"@nuxt/test-utils": "^3.19.0",
|
|
81
81
|
"@types/node": "latest",
|
|
82
82
|
"changelogen": "^0.6.1",
|
|
83
83
|
"husky": "^9.1.7",
|
|
84
84
|
"lint-staged": "^16.0.0",
|
|
85
|
-
"nuxt": "^4.
|
|
86
|
-
"typescript": "~5.
|
|
85
|
+
"nuxt": "^4.1.3",
|
|
86
|
+
"typescript": "~5.9.3",
|
|
87
87
|
"typescript-eslint": "^8.18.0",
|
|
88
|
-
"vitest": "^
|
|
88
|
+
"vitest": "^4.0.2",
|
|
89
89
|
"vue-tsc": "^3.0.4"
|
|
90
90
|
},
|
|
91
91
|
"lint-staged": {
|