@neutron.co.id/operasional-modules 1.12.21-beta.1 → 1.12.22-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.
|
@@ -2,6 +2,7 @@ import { Resource } from "@neon.id/context";
|
|
|
2
2
|
import {
|
|
3
3
|
LeaveStaffModel
|
|
4
4
|
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { h } from "vue";
|
|
5
6
|
export const LeaveStaffResource = Resource.define({
|
|
6
7
|
model: LeaveStaffModel,
|
|
7
8
|
collection: {
|
|
@@ -16,5 +17,24 @@ export const LeaveStaffResource = Resource.define({
|
|
|
16
17
|
},
|
|
17
18
|
views: {},
|
|
18
19
|
fragments: LeaveStaffModel.fragments,
|
|
19
|
-
renders: {
|
|
20
|
+
renders: {
|
|
21
|
+
startedAt: (item) => h(
|
|
22
|
+
"span",
|
|
23
|
+
null,
|
|
24
|
+
item.startedAt ? new Date(item.startedAt).toLocaleDateString("id-ID", {
|
|
25
|
+
day: "2-digit",
|
|
26
|
+
month: "long",
|
|
27
|
+
year: "numeric"
|
|
28
|
+
}) : ""
|
|
29
|
+
),
|
|
30
|
+
endedAt: (item) => h(
|
|
31
|
+
"span",
|
|
32
|
+
null,
|
|
33
|
+
item.endedAt ? new Date(item.endedAt).toLocaleDateString("id-ID", {
|
|
34
|
+
day: "2-digit",
|
|
35
|
+
month: "long",
|
|
36
|
+
year: "numeric"
|
|
37
|
+
}) : ""
|
|
38
|
+
)
|
|
39
|
+
}
|
|
20
40
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.22-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.
|
|
51
|
+
"@neutron.co.id/personalia-models": "1.13.14-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.
|
|
81
|
+
"@neutron.co.id/personalia-models": "1.13.14-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":
|
|
88
|
+
"build": 120
|
|
89
89
|
}
|