@finema/core 2.52.2 → 2.52.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputComponent/index.vue +1 -1
- package/dist/runtime/components/Form/InputMonth/index.vue +51 -51
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +43 -43
- package/dist/runtime/components/Form/InputTags/index.vue +23 -23
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
- package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
- package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
- package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
- package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
- package/dist/runtime/components/Form/index.vue +5 -5
- package/dist/runtime/components/Image.vue +28 -28
- package/dist/runtime/components/Log/index.vue +17 -17
- package/dist/runtime/components/Table/Base.vue +89 -94
- package/dist/runtime/components/Table/Base.vue.d.ts +1 -1
- package/dist/runtime/components/Table/ColumnDate.vue +1 -1
- package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
- package/dist/runtime/components/Table/ColumnImage.vue +4 -4
- package/dist/runtime/components/Table/ColumnText.vue +1 -1
- package/dist/runtime/components/Table/Pagination.vue +33 -23
- package/dist/runtime/components/Table/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/Table/index.vue +27 -30
- package/dist/runtime/components/Table/index.vue.d.ts +1 -1
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/theme/table.d.ts +1 -0
- package/dist/runtime/theme/table.js +2 -1
- package/package.json +2 -2
|
@@ -1,39 +1,49 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
:class="
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
:class="
|
|
4
|
+
theme.paginationContainer({
|
|
5
|
+
class: [ui?.paginationContainer]
|
|
6
|
+
})
|
|
7
|
+
"
|
|
6
8
|
>
|
|
7
9
|
<div
|
|
8
|
-
:class="
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
:class="
|
|
11
|
+
theme.paginationInfoWrapper({
|
|
12
|
+
class: [ui?.paginationInfoWrapper]
|
|
13
|
+
})
|
|
14
|
+
"
|
|
11
15
|
>
|
|
12
16
|
<USelect
|
|
13
17
|
v-if="options.pageOptions && !options.isHideLimitSelect"
|
|
14
18
|
size="lg"
|
|
15
19
|
trailing="รายการ"
|
|
16
|
-
:class="
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
:class="
|
|
21
|
+
theme.paginationLimitSelect({
|
|
22
|
+
class: [ui?.paginationLimitSelect, 'cursor-pointer']
|
|
23
|
+
})
|
|
24
|
+
"
|
|
19
25
|
:items="pageLimitItems"
|
|
20
26
|
:model-value="pageLimit"
|
|
21
27
|
@update:modelValue="emits('pageLimitChange', $event)"
|
|
22
28
|
>
|
|
23
29
|
<template #default="{ modelValue }">
|
|
24
30
|
<p
|
|
25
|
-
:class="
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
:class="
|
|
32
|
+
theme.paginationLimitSelectLabel({
|
|
33
|
+
class: [ui?.paginationLimitSelectLabel]
|
|
34
|
+
})
|
|
35
|
+
"
|
|
28
36
|
>
|
|
29
|
-
{{ modelValue }}
|
|
37
|
+
{{ modelValue }} รายการ
|
|
30
38
|
</p>
|
|
31
39
|
</template>
|
|
32
40
|
</USelect>
|
|
33
41
|
<p
|
|
34
|
-
:class="
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
:class="
|
|
43
|
+
theme.paginationInfo({
|
|
44
|
+
class: [ui?.paginationInfo, '']
|
|
45
|
+
})
|
|
46
|
+
"
|
|
37
47
|
>
|
|
38
48
|
<span v-if="options.pageOptions">{{ pageBetween }} จากทั้งหมด {{ totalCountWithComma }}</span>
|
|
39
49
|
<span v-else>ทั้งหมด {{ options.rawData.length }} รายการ</span>
|
|
@@ -58,7 +68,11 @@
|
|
|
58
68
|
</template>
|
|
59
69
|
|
|
60
70
|
<script setup>
|
|
61
|
-
import {
|
|
71
|
+
import {
|
|
72
|
+
computed,
|
|
73
|
+
NumberHelper,
|
|
74
|
+
useUiConfig
|
|
75
|
+
} from "#imports";
|
|
62
76
|
import UPagination from "#ui/components/Pagination";
|
|
63
77
|
import USelect from "#ui/components/Select";
|
|
64
78
|
import { tableTheme } from "../../theme/table";
|
|
@@ -75,12 +89,8 @@ const pageLimitItems = [
|
|
|
75
89
|
value: 10
|
|
76
90
|
},
|
|
77
91
|
{
|
|
78
|
-
label: "
|
|
79
|
-
value:
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
label: "30",
|
|
83
|
-
value: 30
|
|
92
|
+
label: "25",
|
|
93
|
+
value: 25
|
|
84
94
|
},
|
|
85
95
|
{
|
|
86
96
|
label: "50",
|
|
@@ -4,7 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
page: number;
|
|
5
5
|
pageLimit: number;
|
|
6
6
|
options: ITableOptions<any> & ISimpleTableOptions<any>;
|
|
7
|
-
ui?: typeof tableTheme['slots'];
|
|
7
|
+
ui?: (typeof tableTheme)['slots'];
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
10
|
search: () => any;
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div ref="tableContainer">
|
|
3
|
-
<div
|
|
4
|
-
v-if="options.isEnabledSearch"
|
|
5
|
-
:class="
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
>
|
|
25
|
-
<slot
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</template>
|
|
30
|
-
</Base>
|
|
31
|
-
</div>
|
|
2
|
+
<div ref="tableContainer">
|
|
3
|
+
<div
|
|
4
|
+
v-if="options.isEnabledSearch"
|
|
5
|
+
:class="
|
|
6
|
+
theme.searchContainer({
|
|
7
|
+
class: [ui?.searchContainer]
|
|
8
|
+
})
|
|
9
|
+
"
|
|
10
|
+
>
|
|
11
|
+
<Input
|
|
12
|
+
v-model="q"
|
|
13
|
+
icon="i-heroicons-magnifying-glass"
|
|
14
|
+
:placeholder="options.searchPlaceholder || '\u0E04\u0E49\u0E19\u0E2B\u0E32....'"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<Base
|
|
18
|
+
v-bind="$attrs"
|
|
19
|
+
:options="options"
|
|
20
|
+
@page-change="onPageChange"
|
|
21
|
+
@search="emits('search', q)"
|
|
22
|
+
:ui="ui"
|
|
23
|
+
>
|
|
24
|
+
<template v-for="(_, slot) of $slots" #[slot]="slotProps">
|
|
25
|
+
<slot :name="slot" v-bind="slotProps || {}" />
|
|
26
|
+
</template>
|
|
27
|
+
</Base>
|
|
28
|
+
</div>
|
|
32
29
|
</template>
|
|
33
30
|
|
|
34
31
|
<script setup>
|
|
@@ -6,7 +6,7 @@ type Slot = TableSlots<any> & {
|
|
|
6
6
|
};
|
|
7
7
|
type __VLS_Props = {
|
|
8
8
|
options: ITableOptions<any>;
|
|
9
|
-
ui?: typeof tableTheme['slots'];
|
|
9
|
+
ui?: (typeof tableTheme)['slots'];
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = Slot;
|
|
12
12
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -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.52.
|
|
3
|
+
"version": "2.52.4",
|
|
4
4
|
"repository": "https://gitlab.finema.co/finema/ui-kit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finema Dev Core Team",
|
|
@@ -91,4 +91,4 @@
|
|
|
91
91
|
"lint-staged": {
|
|
92
92
|
"*": "eslint"
|
|
93
93
|
}
|
|
94
|
-
}
|
|
94
|
+
}
|