@finema/core 1.4.189 → 1.4.191

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.189",
3
+ "version": "1.4.191",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, installModule, addPlugin, addComponen
2
2
  import { defu } from 'defu';
3
3
 
4
4
  const name = "@finema/core";
5
- const version = "1.4.189";
5
+ const version = "1.4.191";
6
6
 
7
7
  const colorModeOptions = {
8
8
  preference: "light"
@@ -1,4 +1,10 @@
1
1
  <template>
2
+ <div v-if="!isHideCaption || !isHideBottomPagination" class="mb-4 text-gray-500">
3
+ <span class="font-bold">ผลลัพธ์ทั้งหมด:</span>
4
+ จำนวน
5
+ <span class="font-bold">{{ pageOptions?.totalCount || 0 }}</span>
6
+ รายการ
7
+ </div>
2
8
  <slot v-if="!status.isLoading && rawData.length === 0" name="empty-state">
3
9
  <div class="min-h-60">
4
10
  <p class="text-center text-sm italic">ไม่พบข้อมูล!</p>
@@ -82,6 +88,10 @@ const props = defineProps({
82
88
  type: Boolean as PropType<IFlexDeckOptions['isEnableInfiniteScroll']>,
83
89
  default: false,
84
90
  },
91
+ isHideCaption: {
92
+ type: Boolean as PropType<IFlexDeckOptions['isHideCaption']>,
93
+ default: false,
94
+ },
85
95
  containerClass: { type: [String, Array, Object] },
86
96
  })
87
97
 
@@ -8,6 +8,7 @@ export interface IFlexDeckOptions<T = object> {
8
8
  isEnabledSearch?: boolean;
9
9
  searchPlaceholder?: string;
10
10
  isPreventRouteChange: boolean;
11
+ isHideCaption?: boolean;
11
12
  isHideBottomPagination?: boolean;
12
13
  isHideTopPagination?: boolean;
13
14
  isSimplePagination?: boolean;
@@ -145,6 +145,11 @@ const handleOpenFile = () => {
145
145
 
146
146
  const handleDeleteFile = (index: number) => {
147
147
  selectedFiles.value.splice(index, 1)
148
+
149
+ const updatedValue = [...selectedFiles.value]
150
+
151
+ updatedValue.splice(index, 1)
152
+ selectedFiles.value = updatedValue
148
153
  }
149
154
 
150
155
  const handleDeleteFileView = (index: number) => {
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <div v-if="!isHideCaption" class="mb-4 text-gray-500">
3
- <span class="font-bold">ผลลัพธิ์ทั้งหมด:</span>
2
+ <div v-if="!isHideCaption || !isHideBottomPagination" class="mb-4 text-gray-500">
3
+ <span class="font-bold">ผลลัพธ์ทั้งหมด:</span>
4
4
  จำนวน
5
5
  <span class="font-bold">{{ pageOptions?.totalCount || 0 }}</span>
6
6
  รายการ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.189",
3
+ "version": "1.4.191",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",