@neutron.co.id/operasional-modules 1.12.20-beta.1 → 1.12.21-beta.1

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.
@@ -1,3 +1,3 @@
1
1
  import { Resource } from '@neon.id/context';
2
2
  import { type Schema } from '@neutron.co.id/personalia-models';
3
- export declare const LeaveQuotaResource: Resource<Schema.LeaveQuota, import("@neon.id/model").Model<"neu:personalia:leaveQuota", "endedAt" | "startedAt" | "note" | "branches" | "leaveQuota" | "hasConflict" | "nameLeave" | "nameStaffs" | "typeLeave", Schema.LeaveQuota>>;
3
+ export declare const LeaveQuotaResource: Resource<Schema.LeaveQuota, import("@neon.id/model").Model<"neu:personalia:leaveQuota", "endedAt" | "startedAt" | "note" | "branches" | "leaveQuota" | "hasConflict" | "hasGenerated" | "nameLeave" | "nameStaffs" | "typeLeave", Schema.LeaveQuota>>;
@@ -2,6 +2,7 @@ import { Resource } from "@neon.id/context";
2
2
  import {
3
3
  LeaveQuotaModel
4
4
  } from "@neutron.co.id/personalia-models";
5
+ import { h } from "vue";
5
6
  export const LeaveQuotaResource = Resource.define({
6
7
  model: LeaveQuotaModel,
7
8
  collection: {
@@ -15,12 +16,26 @@ export const LeaveQuotaResource = Resource.define({
15
16
  path: "leave-quota/:slug",
16
17
  component: "LeaveQuotaSingleView"
17
18
  },
18
- views: {
19
- // leaveStaff: {
20
- // path: '/cuti/staff',
21
- // component: 'LeaveStaffCollectionView',
22
- // },
23
- },
19
+ views: {},
24
20
  fragments: LeaveQuotaModel.fragments,
25
- renders: {}
21
+ renders: {
22
+ startedAt: (item) => h(
23
+ "span",
24
+ null,
25
+ item.startedAt ? new Date(item.startedAt).toLocaleDateString("id-ID", {
26
+ day: "2-digit",
27
+ month: "long",
28
+ year: "numeric"
29
+ }) : ""
30
+ ),
31
+ endedAt: (item) => h(
32
+ "span",
33
+ null,
34
+ item.endedAt ? new Date(item.endedAt).toLocaleDateString("id-ID", {
35
+ day: "2-digit",
36
+ month: "long",
37
+ year: "numeric"
38
+ }) : ""
39
+ )
40
+ }
26
41
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-modules",
3
- "version": "1.12.20-beta.1",
3
+ "version": "1.12.21-beta.1",
4
4
  "description": "Modules of Neutron Operasional.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "contributors": [
@@ -48,7 +48,7 @@
48
48
  "@neon.id/interfaces": "^1.57.0",
49
49
  "@neon.id/office": "1.46.0",
50
50
  "@neon.id/query": "^1.12.0",
51
- "@neutron.co.id/personalia-models": "1.13.12-beta.1",
51
+ "@neutron.co.id/personalia-models": "1.13.13-beta.1",
52
52
  "pretty-bytes": "^6.1.1",
53
53
  "vue": "^3.4.31"
54
54
  },
@@ -78,12 +78,12 @@
78
78
  "@neon.id/interfaces": "^1.57.0",
79
79
  "@neon.id/office": "1.46.0",
80
80
  "@neon.id/query": "^1.12.0",
81
- "@neutron.co.id/personalia-models": "1.13.12-beta.1",
81
+ "@neutron.co.id/personalia-models": "1.13.13-beta.1",
82
82
  "@nuxt/kit": "^3.12.3",
83
83
  "pretty-bytes": "^6.1.1"
84
84
  },
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "build": 118
88
+ "build": 119
89
89
  }