@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,32 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<UseImage v-bind="$props">
|
|
3
|
-
<template #loading>
|
|
4
|
-
<slot name="loading">
|
|
5
|
-
<div
|
|
6
|
-
class="flex h-full w-full items-center justify-center"
|
|
7
|
-
>
|
|
8
|
-
<Loader
|
|
9
|
-
:loading="true"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
</slot>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<template #error>
|
|
16
|
-
<slot name="error">
|
|
17
|
-
<div
|
|
18
|
-
class="flex h-full w-full items-center justify-center"
|
|
19
|
-
>
|
|
20
|
-
<p class="text-error-400">
|
|
21
|
-
<Icon
|
|
22
|
-
name="i-heroicons:exclamation-circle-solid"
|
|
23
|
-
class="text-error-400 size-8"
|
|
24
|
-
/>
|
|
25
|
-
</p>
|
|
26
|
-
</div>
|
|
27
|
-
</slot>
|
|
28
|
-
</template>
|
|
29
|
-
</UseImage>
|
|
2
|
+
<UseImage v-bind="$props">
|
|
3
|
+
<template #loading>
|
|
4
|
+
<slot name="loading">
|
|
5
|
+
<div
|
|
6
|
+
class="flex h-full w-full items-center justify-center"
|
|
7
|
+
>
|
|
8
|
+
<Loader
|
|
9
|
+
:loading="true"
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
</slot>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<template #error>
|
|
16
|
+
<slot name="error">
|
|
17
|
+
<div
|
|
18
|
+
class="flex h-full w-full items-center justify-center"
|
|
19
|
+
>
|
|
20
|
+
<p class="text-error-400">
|
|
21
|
+
<Icon
|
|
22
|
+
name="i-heroicons:exclamation-circle-solid"
|
|
23
|
+
class="text-error-400 size-8"
|
|
24
|
+
/>
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
27
|
+
</slot>
|
|
28
|
+
</template>
|
|
29
|
+
</UseImage>
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
32
|
<script setup>
|
|
@@ -3,8 +3,9 @@ type __VLS_Slots = {
|
|
|
3
3
|
loading: () => any;
|
|
4
4
|
error: () => any;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<UseImageOptions, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UseImageOptions> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
9
10
|
type __VLS_WithSlots<T, S> = T & {
|
|
10
11
|
new (): {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { loaderTheme } from '#core/theme/loader';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
icon?: string;
|
|
5
|
+
ui?: typeof loaderTheme['slots'];
|
|
6
|
+
class?: any;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
loading: () => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
loading: boolean;
|
|
13
|
+
icon: string;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -8,11 +8,12 @@ type __VLS_Props = {
|
|
|
8
8
|
type __VLS_Slots = {
|
|
9
9
|
loading: () => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
12
|
loading: boolean;
|
|
13
13
|
icon: string;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
16
17
|
export default _default;
|
|
17
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
18
19
|
new (): {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data?: any;
|
|
3
|
+
title?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: 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>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -2,5 +2,6 @@ type __VLS_Props = {
|
|
|
2
2
|
data?: any;
|
|
3
3
|
title?: string;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_export: 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>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
6
7
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data?: any;
|
|
3
|
+
dataItems?: any[];
|
|
4
|
+
title?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: 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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<DevOnly>
|
|
3
|
-
<TeleportSafe
|
|
4
|
-
to="#dev-logs"
|
|
5
|
-
>
|
|
6
|
-
<LogItem
|
|
7
|
-
v-if="typeof data !== 'undefined'"
|
|
8
|
-
:data="data"
|
|
9
|
-
:title="title"
|
|
10
|
-
/>
|
|
11
|
-
<LogItem
|
|
12
|
-
v-for="(item, index) in dataItems"
|
|
13
|
-
:key="index"
|
|
14
|
-
:data="item"
|
|
15
|
-
:title="`${title} #${index + 1}`"
|
|
16
|
-
/>
|
|
17
|
-
</TeleportSafe>
|
|
18
|
-
</DevOnly>
|
|
2
|
+
<DevOnly>
|
|
3
|
+
<TeleportSafe
|
|
4
|
+
to="#dev-logs"
|
|
5
|
+
>
|
|
6
|
+
<LogItem
|
|
7
|
+
v-if="typeof data !== 'undefined'"
|
|
8
|
+
:data="data"
|
|
9
|
+
:title="title"
|
|
10
|
+
/>
|
|
11
|
+
<LogItem
|
|
12
|
+
v-for="(item, index) in dataItems"
|
|
13
|
+
:key="index"
|
|
14
|
+
:data="item"
|
|
15
|
+
:title="`${title} #${index + 1}`"
|
|
16
|
+
/>
|
|
17
|
+
</TeleportSafe>
|
|
18
|
+
</DevOnly>
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script setup>
|
|
@@ -3,5 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
dataItems?: any[];
|
|
4
4
|
title?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: 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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ISimpleTableOptions, type ITableOptions } from '#core/components/Table/types';
|
|
2
|
+
import { tableTheme } from '#core/theme/table';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
options: ITableOptions<any> & ISimpleTableOptions<any>;
|
|
5
|
+
ui?: (typeof tableTheme)['slots'];
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_22: {}, __VLS_29: {}, __VLS_31: {}, __VLS_45: string | number, __VLS_46: any;
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
[K in NonNullable<typeof __VLS_45>]?: (props: typeof __VLS_46) => any;
|
|
10
|
+
} & {
|
|
11
|
+
loading?: (props: typeof __VLS_22) => any;
|
|
12
|
+
} & {
|
|
13
|
+
error?: (props: typeof __VLS_29) => any;
|
|
14
|
+
} & {
|
|
15
|
+
error?: (props: typeof __VLS_31) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
search: (...args: any[]) => void;
|
|
19
|
+
pageChange: (...args: any[]) => void;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onPageChange?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -101,7 +101,6 @@ import {
|
|
|
101
101
|
import ColumnNumber from "#core/components/Table/ColumnNumber.vue";
|
|
102
102
|
import ColumnImage from "#core/components/Table/ColumnImage.vue";
|
|
103
103
|
import {
|
|
104
|
-
updateAppConfig,
|
|
105
104
|
useAppConfig,
|
|
106
105
|
useUiConfig,
|
|
107
106
|
useWatchChange,
|
|
@@ -129,9 +128,7 @@ const columnTypeComponents = {
|
|
|
129
128
|
const theme = computed(() => useUiConfig(tableTheme, "table")());
|
|
130
129
|
const config = useAppConfig();
|
|
131
130
|
const page = ref(props.options.pageOptions?.currentPage || 1);
|
|
132
|
-
const pageLimit = ref(
|
|
133
|
-
props.options.pageOptions?.limit || config.core.limit_per_page
|
|
134
|
-
);
|
|
131
|
+
const pageLimit = ref(props.options.pageOptions?.limit || config.core.limit_per_page);
|
|
135
132
|
const uTableCompatibleColumns = computed(
|
|
136
133
|
() => props.options.columns.map((col) => ({
|
|
137
134
|
...col,
|
|
@@ -156,11 +153,11 @@ const onPageChange = (newPage) => {
|
|
|
156
153
|
};
|
|
157
154
|
const changePageLimit = (limit) => {
|
|
158
155
|
pageLimit.value = limit;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
props.options.repo.fetchPageChange(1, {
|
|
157
|
+
params: {
|
|
158
|
+
...props.options.pageOptions?.request?.params,
|
|
159
|
+
limit
|
|
162
160
|
}
|
|
163
161
|
});
|
|
164
|
-
emits("search");
|
|
165
162
|
};
|
|
166
163
|
</script>
|
|
@@ -14,14 +14,15 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
error?: (props: typeof __VLS_31) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
search: (...args: any[]) => void;
|
|
19
19
|
pageChange: (...args: any[]) => void;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
21
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
onPageChange?: ((...args: any[]) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
declare const
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
25
26
|
export default _default;
|
|
26
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
27
28
|
new (): {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TableColumn } from '@nuxt/ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: any;
|
|
4
|
+
row: any;
|
|
5
|
+
column: TableColumn<any>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
{{ getValue || "-" }}
|
|
2
|
+
{{ getValue || "-" }}
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
@@ -8,7 +8,7 @@ import { TimeHelper } from "#core/utils/TimeHelper";
|
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
value: { type: null, required: true },
|
|
10
10
|
row: { type: null, required: true },
|
|
11
|
-
column: { type:
|
|
11
|
+
column: { type: Object, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => TimeHelper.displayDate(props.value));
|
|
14
14
|
</script>
|
|
@@ -4,5 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TableColumn } from '@nuxt/ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: any;
|
|
4
|
+
row: any;
|
|
5
|
+
column: TableColumn<any>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
{{ getValue || "-" }}
|
|
2
|
+
{{ getValue || "-" }}
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
@@ -8,7 +8,7 @@ import { TimeHelper } from "#core/utils/TimeHelper";
|
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
value: { type: null, required: true },
|
|
10
10
|
row: { type: null, required: true },
|
|
11
|
-
column: { type:
|
|
11
|
+
column: { type: Object, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => {
|
|
14
14
|
return TimeHelper.displayDateTime(props.value);
|
|
@@ -4,5 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TableColumn } from '@nuxt/ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: any;
|
|
4
|
+
row: any;
|
|
5
|
+
column: TableColumn<any>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Image
|
|
3
|
-
class="h-12 rounded"
|
|
4
|
-
:src="getValue"
|
|
5
|
-
/>
|
|
2
|
+
<Image
|
|
3
|
+
class="h-12 rounded"
|
|
4
|
+
:src="getValue"
|
|
5
|
+
/>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
@@ -10,7 +10,7 @@ import { computed } from "vue";
|
|
|
10
10
|
const props = defineProps({
|
|
11
11
|
value: { type: null, required: true },
|
|
12
12
|
row: { type: null, required: true },
|
|
13
|
-
column: { type:
|
|
13
|
+
column: { type: Object, required: true }
|
|
14
14
|
});
|
|
15
15
|
const getValue = computed(() => props.value);
|
|
16
16
|
</script>
|
|
@@ -4,5 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TableColumn } from '@nuxt/ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: any;
|
|
4
|
+
row: any;
|
|
5
|
+
column: TableColumn<any>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -8,7 +8,7 @@ import { NumberHelper } from "#core/utils/NumberHelper";
|
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
value: { type: null, required: true },
|
|
10
10
|
row: { type: null, required: true },
|
|
11
|
-
column: { type:
|
|
11
|
+
column: { type: Object, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => NumberHelper.withComma(props.value));
|
|
14
14
|
</script>
|
|
@@ -4,5 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TableColumn } from '@nuxt/ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value: any;
|
|
4
|
+
row: any;
|
|
5
|
+
column: TableColumn<any>;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
{{ getValue }}
|
|
2
|
+
{{ getValue }}
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
@@ -8,7 +8,7 @@ import { StringHelper } from "#imports";
|
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
value: { type: null, required: true },
|
|
10
10
|
row: { type: null, required: true },
|
|
11
|
-
column: { type:
|
|
11
|
+
column: { type: Object, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => {
|
|
14
14
|
const value = props.value;
|
|
@@ -4,5 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: 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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ISimpleTableOptions, type ITableOptions } from '#imports';
|
|
2
|
+
import { tableTheme } from '../../theme/table.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
page: number;
|
|
5
|
+
pageLimit: number;
|
|
6
|
+
options: ITableOptions<any> & ISimpleTableOptions<any>;
|
|
7
|
+
ui?: (typeof tableTheme)['slots'];
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
search: () => any;
|
|
11
|
+
pageChange: (page: number) => any;
|
|
12
|
+
pageLimitChange: (limit: number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSearch?: (() => any) | undefined;
|
|
15
|
+
onPageChange?: ((page: number) => any) | undefined;
|
|
16
|
+
onPageLimitChange?: ((limit: number) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
3
|
:class="
|
|
4
4
|
theme.paginationContainer({
|
|
5
5
|
class: [ui?.paginationContainer]
|
|
6
6
|
})
|
|
7
|
-
"
|
|
8
|
-
>
|
|
9
|
-
<div
|
|
7
|
+
"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
10
|
:class="
|
|
11
11
|
theme.paginationInfoWrapper({
|
|
12
12
|
class: [ui?.paginationInfoWrapper]
|
|
13
13
|
})
|
|
14
|
-
"
|
|
15
|
-
>
|
|
16
|
-
<USelect
|
|
17
|
-
v-if="options.pageOptions && !options.isHideLimitSelect"
|
|
18
|
-
size="lg"
|
|
19
|
-
trailing="รายการ"
|
|
14
|
+
"
|
|
15
|
+
>
|
|
16
|
+
<USelect
|
|
17
|
+
v-if="options.pageOptions && !options.isHideLimitSelect"
|
|
18
|
+
size="lg"
|
|
19
|
+
trailing="รายการ"
|
|
20
20
|
:class="
|
|
21
21
|
theme.paginationLimitSelect({
|
|
22
22
|
class: [ui?.paginationLimitSelect, 'cursor-pointer']
|
|
23
23
|
})
|
|
24
|
-
"
|
|
25
|
-
:items="pageLimitItems"
|
|
26
|
-
:model-value="pageLimit"
|
|
27
|
-
@update:modelValue="emits('pageLimitChange', $event)"
|
|
28
|
-
>
|
|
29
|
-
<template #default="{ modelValue }">
|
|
30
|
-
<p
|
|
24
|
+
"
|
|
25
|
+
:items="pageLimitItems"
|
|
26
|
+
:model-value="pageLimit"
|
|
27
|
+
@update:modelValue="emits('pageLimitChange', $event)"
|
|
28
|
+
>
|
|
29
|
+
<template #default="{ modelValue }">
|
|
30
|
+
<p
|
|
31
31
|
:class="
|
|
32
32
|
theme.paginationLimitSelectLabel({
|
|
33
33
|
class: [ui?.paginationLimitSelectLabel]
|
|
34
34
|
})
|
|
35
|
-
"
|
|
36
|
-
>
|
|
37
|
-
{{ modelValue }} รายการ
|
|
38
|
-
</p>
|
|
39
|
-
</template>
|
|
40
|
-
</USelect>
|
|
41
|
-
<p
|
|
35
|
+
"
|
|
36
|
+
>
|
|
37
|
+
{{ modelValue }} รายการ
|
|
38
|
+
</p>
|
|
39
|
+
</template>
|
|
40
|
+
</USelect>
|
|
41
|
+
<p
|
|
42
42
|
:class="
|
|
43
43
|
theme.paginationInfo({
|
|
44
44
|
class: [ui?.paginationInfo, '']
|
|
45
45
|
})
|
|
46
|
-
"
|
|
47
|
-
>
|
|
48
|
-
<span v-if="options.pageOptions">{{ pageBetween }} จากทั้งหมด {{ totalCountWithComma }}</span>
|
|
49
|
-
<span v-else>ทั้งหมด {{ options.rawData.length }} รายการ</span>
|
|
50
|
-
</p>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
<UPagination
|
|
54
|
-
v-if="options.pageOptions && options.pageOptions.totalPage > 1"
|
|
55
|
-
:page="page"
|
|
56
|
-
:default-page="options.pageOptions?.currentPage || 1"
|
|
57
|
-
:items-per-page="options.pageOptions.limit"
|
|
58
|
-
:total="options.pageOptions.totalCount"
|
|
59
|
-
:to="options.isRouteChange ? to : void 0"
|
|
60
|
-
show-edges
|
|
61
|
-
variant="outline"
|
|
62
|
-
color="neutral"
|
|
63
|
-
active-color="neutral"
|
|
64
|
-
active-variant="subtle"
|
|
65
|
-
@update:page="emits('pageChange', $event)"
|
|
66
|
-
/>
|
|
67
|
-
</div>
|
|
46
|
+
"
|
|
47
|
+
>
|
|
48
|
+
<span v-if="options.pageOptions">{{ pageBetween }} จากทั้งหมด {{ totalCountWithComma }}</span>
|
|
49
|
+
<span v-else>ทั้งหมด {{ options.rawData.length }} รายการ</span>
|
|
50
|
+
</p>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<UPagination
|
|
54
|
+
v-if="options.pageOptions && options.pageOptions.totalPage > 1"
|
|
55
|
+
:page="page"
|
|
56
|
+
:default-page="options.pageOptions?.currentPage || 1"
|
|
57
|
+
:items-per-page="options.pageOptions.limit"
|
|
58
|
+
:total="options.pageOptions.totalCount"
|
|
59
|
+
:to="options.isRouteChange ? to : void 0"
|
|
60
|
+
show-edges
|
|
61
|
+
variant="outline"
|
|
62
|
+
color="neutral"
|
|
63
|
+
active-color="neutral"
|
|
64
|
+
active-variant="subtle"
|
|
65
|
+
@update:page="emits('pageChange', $event)"
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
68
|
</template>
|
|
69
69
|
|
|
70
70
|
<script setup>
|
|
@@ -6,7 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
options: ITableOptions<any> & ISimpleTableOptions<any>;
|
|
7
7
|
ui?: (typeof tableTheme)['slots'];
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
10
|
search: () => any;
|
|
11
11
|
pageChange: (page: number) => any;
|
|
12
12
|
pageLimitChange: (limit: number) => any;
|
|
@@ -15,4 +15,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {},
|
|
|
15
15
|
onPageChange?: ((page: number) => any) | undefined;
|
|
16
16
|
onPageLimitChange?: ((limit: number) => any) | undefined;
|
|
17
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
18
19
|
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ISimpleTableOptions } from '#core/components/Table/types';
|
|
2
|
+
import type { tableTheme } from '../../theme/table.js';
|
|
3
|
+
import type { TableSlots } from '@nuxt/ui';
|
|
4
|
+
type Slot = TableSlots<any> & {
|
|
5
|
+
error: (props?: Record<string, any>) => any;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
options: ISimpleTableOptions<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, {}, 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;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|