@finema/finework-layer 1.0.43 → 1.0.45

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.45](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.44...1.0.45) (2026-05-06)
4
+
5
+ ## [1.0.44](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.43...1.0.44) (2026-05-04)
6
+
7
+ ### Features
8
+
9
+ * noti message costsheet ([3fbaf31](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/3fbaf31bdeba23b5eca67d374a5d7b3248aa1f2b))
10
+
3
11
  ## [1.0.43](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.42...1.0.43) (2026-04-30)
4
12
 
5
13
  ### Features
@@ -2,12 +2,14 @@
2
2
  <div class="">
3
3
  <Slideover
4
4
  v-model:open="isOpen"
5
- side="top"
5
+ :side="isMobile ? 'left' : 'top'"
6
6
  :portal="true"
7
7
  :modal="false"
8
8
  class="w-full"
9
- :transition="false"
10
- :ui="{ content: 'lg:translate-y-[63px] w-full lg:translate-y-[71px]' }"
9
+ :transition="isMobile ? true: false"
10
+ :ui="{
11
+ content: isMobile ? '!w-[calc(100vw-3.5rem)]' : 'lg:translate-y-[63px] w-full lg:translate-y-[71px]',
12
+ }"
11
13
  >
12
14
  <Button
13
15
  icon="mingcute:dot-grid-line"
@@ -25,5 +27,14 @@
25
27
  </template>
26
28
 
27
29
  <script lang="ts" setup>
30
+ import { useBreakpoints } from '@vueuse/core'
31
+
28
32
  const isOpen = ref(false)
33
+
34
+ const breakpoints = useBreakpoints({
35
+ mobile: 0,
36
+ desktop: 768,
37
+ })
38
+
39
+ const isMobile = breakpoints.smaller('desktop')
29
40
  </script>
@@ -163,6 +163,41 @@ const getLink = (item: INotificationItem) => {
163
163
  }
164
164
  }
165
165
 
166
+ case 'COSTSHEET':
167
+ {
168
+ const costSheetDocID = item.data?.cost_sheet_doc_id
169
+ const sourceID = item.source_id
170
+
171
+ switch (item.action_type) {
172
+ case 'COSTSHEET_WAITING_APPROVAL':
173
+ return `/cost-sheet/doc/${costSheetDocID}?tab=COSTSHEET`
174
+ case 'COSTSHEET_APPROVED':
175
+ return `/cost-sheet/doc/${costSheetDocID}?tab=EXPENSE`
176
+
177
+ // เงินสดย่อย / Expense
178
+ case 'COSTSHEET_CREATE_EXPENSE_CASH':
179
+ case 'COSTSHEET_WAITING_DEBT_CASH':
180
+ case 'COSTSHEET_DONE_EXPENSE_CASH':
181
+ return `/cost-sheet/doc/${costSheetDocID}/expense/${sourceID}`
182
+ // ใบรับวางบิล / Invoice
183
+ case 'COSTSHEET_WAITING_APPROVE_INVOICE':
184
+ case 'COSTSHEET_WAITING_VERIFY_INVOICE':
185
+ case 'COSTSHEET_WAITING_DEBT_INVOICE':
186
+ case 'COSTSHEET_DONE_INVOICE':
187
+ return `/cost-sheet/doc/${costSheetDocID}/invoice/${sourceID}`
188
+
189
+ case 'COSTSHEET_WAITING_VERIFY_DEBT':
190
+ case 'COSTSHEET_WAITING_VERIFY_PAYMENT':
191
+ case 'COSTSHEET_EDIT_PAYMENT':
192
+ case 'COSTSHEET_WAITING_PAID_PAYMENT':
193
+ case 'COSTSHEET_PAID_PAYMENT':
194
+ return `/cost-sheet/doc/${costSheetDocID}/debt/${sourceID}`
195
+
196
+ default:
197
+ return '#'
198
+ }
199
+ }
200
+
166
201
  default:
167
202
  return '#'
168
203
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "1.0.43",
4
+ "version": "1.0.45",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",