@finema/core 2.53.0 → 2.54.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 +1 -1
- package/dist/runtime/components/App.vue.d.ts +2 -3
- package/dist/runtime/components/DevToolsWindow/index.vue.d.ts +1 -2
- package/dist/runtime/components/Dialog/index.vue.d.ts +1 -2
- package/dist/runtime/components/Empty.vue.d.ts +1 -2
- package/dist/runtime/components/FlexDeck/index.vue.d.ts +3 -4
- package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/FieldWrapper.vue.d.ts +2 -3
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/Fields.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputComponent/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputMonth/index.vue +51 -51
- package/dist/runtime/components/Form/InputMonth/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputRadio/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +43 -43
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputTags/index.vue +23 -23
- package/dist/runtime/components/Form/InputTags/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputText/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputTime/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue.d.ts +1 -2
- package/dist/runtime/components/Form/InputWYSIWYG/index.vue.d.ts +1 -2
- package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
- package/dist/runtime/components/Form/fileState/EmptyState.vue.d.ts +1 -2
- package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
- package/dist/runtime/components/Form/fileState/FailedState.vue.d.ts +1 -2
- package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
- package/dist/runtime/components/Form/fileState/LoadingState.vue.d.ts +1 -2
- package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
- package/dist/runtime/components/Form/fileState/PreviewModal.vue.d.ts +1 -2
- package/dist/runtime/components/Form/fileState/SuccessState.vue.d.ts +1 -2
- package/dist/runtime/components/Form/index.vue +5 -5
- package/dist/runtime/components/Form/index.vue.d.ts +2 -3
- package/dist/runtime/components/Image.vue +28 -28
- package/dist/runtime/components/Image.vue.d.ts +2 -3
- package/dist/runtime/components/Loader.vue.d.ts +2 -3
- package/dist/runtime/components/Log/LogItem.vue.d.ts +1 -2
- package/dist/runtime/components/Log/index.vue +17 -17
- package/dist/runtime/components/Log/index.vue.d.ts +1 -2
- package/dist/runtime/components/Table/Base.vue.d.ts +2 -3
- package/dist/runtime/components/Table/ColumnDate.vue +2 -2
- package/dist/runtime/components/Table/ColumnDate.vue.d.ts +1 -2
- package/dist/runtime/components/Table/ColumnDateTime.vue +2 -2
- package/dist/runtime/components/Table/ColumnDateTime.vue.d.ts +1 -2
- package/dist/runtime/components/Table/ColumnImage.vue +5 -5
- package/dist/runtime/components/Table/ColumnImage.vue.d.ts +1 -2
- package/dist/runtime/components/Table/ColumnNumber.vue +1 -1
- package/dist/runtime/components/Table/ColumnNumber.vue.d.ts +1 -2
- package/dist/runtime/components/Table/ColumnText.vue +2 -2
- package/dist/runtime/components/Table/ColumnText.vue.d.ts +1 -2
- package/dist/runtime/components/Table/Pagination.vue +46 -46
- package/dist/runtime/components/Table/Pagination.vue.d.ts +1 -2
- package/dist/runtime/components/Table/Simple.vue +17 -17
- package/dist/runtime/components/Table/Simple.vue.d.ts +2 -3
- package/dist/runtime/components/Table/index.vue.d.ts +2 -3
- package/dist/runtime/components/TeleportSafe.vue.d.ts +2 -3
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/theme/dialog.js +1 -1
- package/dist/runtime/theme/slideover.js +1 -1
- package/dist/runtime/theme/table.js +2 -2
- package/package.json +1 -1
- package/dist/runtime/components/App.d.vue.ts +0 -17
- package/dist/runtime/components/DevToolsWindow/index.d.vue.ts +0 -3
- package/dist/runtime/components/Dialog/index.d.vue.ts +0 -11
- package/dist/runtime/components/Empty.d.vue.ts +0 -13
- package/dist/runtime/components/FlexDeck/index.d.vue.ts +0 -46
- package/dist/runtime/components/Form/FieldWrapper.d.vue.ts +0 -17
- package/dist/runtime/components/Form/Fields.d.vue.ts +0 -15
- package/dist/runtime/components/Form/InputCheckbox/index.d.vue.ts +0 -8
- package/dist/runtime/components/Form/InputComponent/index.d.vue.ts +0 -4
- package/dist/runtime/components/Form/InputDateTime/index.d.vue.ts +0 -12
- package/dist/runtime/components/Form/InputDateTimeRange/index.d.vue.ts +0 -12
- package/dist/runtime/components/Form/InputMonth/index.d.vue.ts +0 -12
- package/dist/runtime/components/Form/InputNumber/index.d.vue.ts +0 -10
- package/dist/runtime/components/Form/InputRadio/index.d.vue.ts +0 -12
- package/dist/runtime/components/Form/InputSearch/index.d.vue.ts +0 -14
- package/dist/runtime/components/Form/InputSelect/index.d.vue.ts +0 -10
- package/dist/runtime/components/Form/InputSelectMultiple/index.d.vue.ts +0 -8
- package/dist/runtime/components/Form/InputTags/index.d.vue.ts +0 -12
- package/dist/runtime/components/Form/InputText/index.d.vue.ts +0 -12
- package/dist/runtime/components/Form/InputTextarea/index.d.vue.ts +0 -8
- package/dist/runtime/components/Form/InputTime/index.d.vue.ts +0 -13
- package/dist/runtime/components/Form/InputToggle/index.d.vue.ts +0 -8
- package/dist/runtime/components/Form/InputUploadDropzone/index.d.vue.ts +0 -13
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.d.vue.ts +0 -25
- package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.d.vue.ts +0 -12
- package/dist/runtime/components/Form/InputWYSIWYG/index.d.vue.ts +0 -7
- package/dist/runtime/components/Form/fileState/EmptyState.d.vue.ts +0 -13
- package/dist/runtime/components/Form/fileState/FailedState.d.vue.ts +0 -15
- package/dist/runtime/components/Form/fileState/LoadingState.d.vue.ts +0 -9
- package/dist/runtime/components/Form/fileState/PreviewModal.d.vue.ts +0 -11
- package/dist/runtime/components/Form/fileState/SuccessState.d.vue.ts +0 -18
- package/dist/runtime/components/Form/index.d.vue.ts +0 -13
- package/dist/runtime/components/Image.d.vue.ts +0 -14
- package/dist/runtime/components/Loader.d.vue.ts +0 -22
- package/dist/runtime/components/Log/LogItem.d.vue.ts +0 -7
- package/dist/runtime/components/Log/index.d.vue.ts +0 -8
- package/dist/runtime/components/Table/Base.d.vue.ts +0 -31
- package/dist/runtime/components/Table/ColumnDate.d.vue.ts +0 -9
- package/dist/runtime/components/Table/ColumnDateTime.d.vue.ts +0 -9
- package/dist/runtime/components/Table/ColumnImage.d.vue.ts +0 -9
- package/dist/runtime/components/Table/ColumnNumber.d.vue.ts +0 -9
- package/dist/runtime/components/Table/ColumnText.d.vue.ts +0 -9
- package/dist/runtime/components/Table/Pagination.d.vue.ts +0 -19
- package/dist/runtime/components/Table/Simple.d.vue.ts +0 -20
- package/dist/runtime/components/Table/index.d.vue.ts +0 -26
- package/dist/runtime/components/TeleportSafe.d.vue.ts +0 -17
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Modal
|
|
3
|
-
:close="{ onClick: () => emits('close', false) }"
|
|
4
|
-
:dismissible="false"
|
|
5
|
-
:title="value?.name"
|
|
2
|
+
<Modal
|
|
3
|
+
:close="{ onClick: () => emits('close', false) }"
|
|
4
|
+
:dismissible="false"
|
|
5
|
+
:title="value?.name"
|
|
6
6
|
:ui="{
|
|
7
7
|
content: 'max-w-3xl'
|
|
8
|
-
}"
|
|
9
|
-
>
|
|
10
|
-
<template #body>
|
|
11
|
-
<div class="flex justify-center">
|
|
12
|
-
<img
|
|
13
|
-
v-if="value && isImageFromPath(value.path)"
|
|
14
|
-
:src="value.url"
|
|
15
|
-
alt="img-preview"
|
|
16
|
-
class="max-h-96 max-w-full rounded-lg"
|
|
17
|
-
/>
|
|
18
|
-
<video
|
|
19
|
-
v-else-if="value && isVideoFromPath(value.path)"
|
|
20
|
-
:src="value.url"
|
|
21
|
-
controls
|
|
22
|
-
class="max-h-96 max-w-full"
|
|
23
|
-
/>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
</Modal>
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<template #body>
|
|
11
|
+
<div class="flex justify-center">
|
|
12
|
+
<img
|
|
13
|
+
v-if="value && isImageFromPath(value.path)"
|
|
14
|
+
:src="value.url"
|
|
15
|
+
alt="img-preview"
|
|
16
|
+
class="max-h-96 max-w-full rounded-lg"
|
|
17
|
+
/>
|
|
18
|
+
<video
|
|
19
|
+
v-else-if="value && isVideoFromPath(value.path)"
|
|
20
|
+
:src="value.url"
|
|
21
|
+
controls
|
|
22
|
+
class="max-h-96 max-w-full"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
</Modal>
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script setup>
|
|
@@ -2,10 +2,9 @@ import type { IFileValue } from '#core/components/Form/types';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
value?: IFileValue;
|
|
4
4
|
}
|
|
5
|
-
declare const
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
6
|
close: (args_0: boolean) => any;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
8
8
|
onClose?: ((args_0: boolean) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const _default: typeof __VLS_export;
|
|
11
10
|
export default _default;
|
|
@@ -5,7 +5,7 @@ interface Props {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
readonly?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const
|
|
8
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
delete: () => any;
|
|
10
10
|
preview: () => any;
|
|
11
11
|
download: () => any;
|
|
@@ -14,5 +14,4 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
14
14
|
onPreview?: (() => any) | undefined;
|
|
15
15
|
onDownload?: (() => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
18
17
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<form class="form">
|
|
3
|
-
<slot />
|
|
4
|
-
</form>
|
|
5
|
-
</template>
|
|
1
|
+
<template>
|
|
2
|
+
<form class="form">
|
|
3
|
+
<slot />
|
|
4
|
+
</form>
|
|
5
|
+
</template>
|
|
@@ -2,9 +2,8 @@ declare var __VLS_1: {};
|
|
|
2
2
|
type __VLS_Slots = {} & {
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
declare const _default: typeof __VLS_export;
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
7
|
export default _default;
|
|
9
8
|
type __VLS_WithSlots<T, S> = T & {
|
|
10
9
|
new (): {
|
|
@@ -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,9 +3,8 @@ type __VLS_Slots = {
|
|
|
3
3
|
loading: () => any;
|
|
4
4
|
error: () => any;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<UseImageOptions, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UseImageOptions> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
9
8
|
export default _default;
|
|
10
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
11
10
|
new (): {
|
|
@@ -8,12 +8,11 @@ type __VLS_Props = {
|
|
|
8
8
|
type __VLS_Slots = {
|
|
9
9
|
loading: () => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, 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
|
|
16
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
16
|
export default _default;
|
|
18
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
18
|
new (): {
|
|
@@ -2,6 +2,5 @@ type __VLS_Props = {
|
|
|
2
2
|
data?: any;
|
|
3
3
|
title?: string;
|
|
4
4
|
};
|
|
5
|
-
declare const
|
|
6
|
-
declare const _default: typeof __VLS_export;
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
6
|
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,6 +3,5 @@ type __VLS_Props = {
|
|
|
3
3
|
dataItems?: any[];
|
|
4
4
|
title?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
7
|
-
declare const _default: typeof __VLS_export;
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
7
|
export default _default;
|
|
@@ -14,15 +14,14 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
error?: (props: typeof __VLS_31) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, 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
|
|
25
|
-
declare const _default: typeof __VLS_export;
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
25
|
export default _default;
|
|
27
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
27
|
new (): {
|
|
@@ -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: null, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => TimeHelper.displayDate(props.value));
|
|
14
14
|
</script>
|
|
@@ -4,6 +4,5 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
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: null, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => {
|
|
14
14
|
return TimeHelper.displayDateTime(props.value);
|
|
@@ -4,6 +4,5 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
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: null, required: true }
|
|
14
14
|
});
|
|
15
15
|
const getValue = computed(() => props.value);
|
|
16
16
|
</script>
|
|
@@ -4,6 +4,5 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
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: null, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => NumberHelper.withComma(props.value));
|
|
14
14
|
</script>
|
|
@@ -4,6 +4,5 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
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: null, required: true }
|
|
12
12
|
});
|
|
13
13
|
const getValue = computed(() => {
|
|
14
14
|
const value = props.value;
|
|
@@ -4,6 +4,5 @@ type __VLS_Props = {
|
|
|
4
4
|
row: any;
|
|
5
5
|
column: TableColumn<any>;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
declare const _default: typeof __VLS_export;
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
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 _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
10
|
search: () => any;
|
|
11
11
|
pageChange: (page: number) => any;
|
|
12
12
|
pageLimitChange: (limit: number) => any;
|
|
@@ -15,5 +15,4 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
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;
|
|
19
18
|
export default _default;
|
|
@@ -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,9 +9,8 @@ type __VLS_Props = {
|
|
|
9
9
|
ui?: (typeof tableTheme)['slots'];
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = Slot;
|
|
12
|
-
declare const
|
|
13
|
-
declare const
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
14
|
export default _default;
|
|
16
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
17
16
|
new (): {
|
|
@@ -9,15 +9,14 @@ type __VLS_Props = {
|
|
|
9
9
|
ui?: (typeof tableTheme)['slots'];
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = Slot;
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, 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
|
|
20
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
20
|
export default _default;
|
|
22
21
|
type __VLS_WithSlots<T, S> = T & {
|
|
23
22
|
new (): {
|
|
@@ -6,9 +6,8 @@ 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
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
11
|
export default _default;
|
|
13
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
14
13
|
new (): {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../.nuxt/tsconfig.server.json",
|
|
3
|
+
}
|