@neutron.co.id/operasional-modules 1.13.0-beta.1 → 1.13.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.
- package/build/personalia/index.d.ts +1 -1
- package/build/personalia/module.mjs +17 -1
- package/build/personalia/resources/attendance/attendance.resource.d.ts +1 -1
- package/build/personalia/resources/attendance/attendance.resource.mjs +33 -1
- package/build/personalia/resources/attendance/attendance.views.d.ts +66 -0
- package/build/personalia/resources/attendance/attendance.views.mjs +64 -8
- package/build/personalia/resources/attendanceType/attendanceType.resource.d.ts +3 -0
- package/build/personalia/resources/attendanceType/attendanceType.resource.mjs +30 -0
- package/build/personalia/resources/attendanceType/attendanceType.views.d.ts +66 -0
- package/build/personalia/resources/attendanceType/attendanceType.views.mjs +12 -0
- package/build/personalia/resources/attendanceType/index.d.ts +2 -0
- package/build/personalia/resources/attendanceType/index.mjs +2 -0
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +3 -0
- package/build/personalia/resources/checkIn/checkIn.resource.mjs +1 -1
- package/build/personalia/resources/checkIn/checkIn.views.mjs +1 -0
- package/build/personalia/resources/index.d.ts +8 -0
- package/build/personalia/resources/index.mjs +8 -0
- package/build/personalia/resources/leaveConflict/index.d.ts +2 -0
- package/build/personalia/resources/leaveConflict/index.mjs +2 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.resource.d.ts +3 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.resource.mjs +20 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.views.d.ts +66 -0
- package/build/personalia/resources/leaveConflict/leaveConflict.views.mjs +13 -0
- package/build/personalia/resources/leaveQuota/index.d.ts +2 -0
- package/build/personalia/resources/leaveQuota/index.mjs +2 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.resources.d.ts +3 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.resources.mjs +57 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.views.d.ts +66 -0
- package/build/personalia/resources/leaveQuota/leaveQuota.views.mjs +30 -0
- package/build/personalia/resources/leaveStaff/index.d.ts +2 -0
- package/build/personalia/resources/leaveStaff/index.mjs +2 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.resources.d.ts +3 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.resources.mjs +40 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.views.d.ts +66 -0
- package/build/personalia/resources/leaveStaff/leaveStaff.views.mjs +13 -0
- package/build/personalia/resources/plan/plan.resource.d.ts +1 -1
- package/build/personalia/resources/plan/plan.views.mjs +2 -5
- package/build/personalia/resources/progress/progress.resource.d.ts +1 -1
- package/build/personalia/resources/responsibility/responsibility.resource.d.ts +1 -1
- package/build/personalia/resources/responsibility/responsibility.views.mjs +1 -26
- package/build/personalia/resources/shift/index.d.ts +2 -0
- package/build/personalia/resources/shift/index.mjs +2 -0
- package/build/personalia/resources/shift/shift.resource.d.ts +3 -0
- package/build/personalia/resources/shift/shift.resource.mjs +44 -0
- package/build/personalia/resources/shift/shift.views.d.ts +198 -0
- package/build/personalia/resources/shift/shift.views.mjs +128 -0
- package/build/personalia/resources/shiftStaff/index.d.ts +2 -0
- package/build/personalia/resources/shiftStaff/index.mjs +2 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.resource.d.ts +3 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.resource.mjs +29 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.views.d.ts +117 -0
- package/build/personalia/resources/shiftStaff/shiftStaff.views.mjs +32 -0
- package/build/personalia/resources/shiftType/index.d.ts +2 -0
- package/build/personalia/resources/shiftType/index.mjs +2 -0
- package/build/personalia/resources/shiftType/shiftType.resource.d.ts +3 -0
- package/build/personalia/resources/shiftType/shiftType.resource.mjs +25 -0
- package/build/personalia/resources/shiftType/shiftType.views.d.ts +66 -0
- package/build/personalia/resources/shiftType/shiftType.views.mjs +9 -0
- package/build/personalia/resources/situation/situation.resource.d.ts +1 -1
- package/build/personalia/resources/situation/situation.views.mjs +2 -2
- package/build/personalia/resources/staff/staff.resource.d.ts +1 -1
- package/build/personalia/resources/staff/staff.views.mjs +6 -2
- package/build/personalia/resources/submission/submission.resource.d.ts +4 -1
- package/build/personalia/resources/submission/submission.resource.mjs +89 -1
- package/build/personalia/resources/submission/submission.views.d.ts +132 -0
- package/build/personalia/resources/submission/submission.views.mjs +275 -40
- package/build/personalia/resources/submissionLog/index.d.ts +2 -0
- package/build/personalia/resources/submissionLog/index.mjs +2 -0
- package/build/personalia/resources/submissionLog/submissionLog.resource.d.ts +3 -0
- package/build/personalia/resources/submissionLog/submissionLog.resource.mjs +21 -0
- package/build/personalia/resources/submissionLog/submissionLog.views.d.ts +66 -0
- package/build/personalia/resources/submissionLog/submissionLog.views.mjs +14 -0
- package/build/personalia/resources/submissionType/submissionType.resource.d.ts +2 -1
- package/build/personalia/resources/target/target.resource.d.ts +1 -1
- package/build/personalia/resources/target/target.views.mjs +1 -1
- package/build/personalia/resources/task/task.views.mjs +5 -2
- package/build/personalia/view-names.mjs +27 -0
- package/build/personalia/views.mjs +2 -2
- package/build/views.mjs +27 -0
- package/package.json +7 -7
|
@@ -10,10 +10,18 @@ import { ResponsibilityTypeResource } from "./resources/responsibilityType/respo
|
|
|
10
10
|
import { SituationResource } from "./resources/situation/situation.resource.mjs";
|
|
11
11
|
import { SituationTypeResource } from "./resources/situationType/situationType.resource.mjs";
|
|
12
12
|
import { StaffResource } from "./resources/staff/staff.resource.mjs";
|
|
13
|
+
import { SubmissionLogResource } from "./resources/submissionLog/submissionLog.resource.mjs";
|
|
13
14
|
import { SubmissionResource } from "./resources/submission/submission.resource.mjs";
|
|
14
15
|
import { SubmissionTypeResource } from "./resources/submissionType/submissionType.resource.mjs";
|
|
16
|
+
import { ShiftResource } from "./resources/shift/shift.resource.mjs";
|
|
17
|
+
import { ShiftTypeResource } from "./resources/shiftType/shiftType.resource.mjs";
|
|
18
|
+
import { ShiftStaffResource } from "./resources/shiftStaff/shiftStaff.resource.mjs";
|
|
15
19
|
import { TaskResource } from "./resources/task/task.resource.mjs";
|
|
16
20
|
import { TargetResource } from "./resources/target/target.resource.mjs";
|
|
21
|
+
import { AttendanceTypeResource } from "./resources/attendanceType/attendanceType.resource.mjs";
|
|
22
|
+
import { LeaveQuotaResource } from "./resources/leaveQuota/leaveQuota.resources.mjs";
|
|
23
|
+
import { LeaveStaffResource } from "./resources/leaveStaff/leaveStaff.resources.mjs";
|
|
24
|
+
import { LeaveConflictResource } from "./resources/leaveConflict/leaveConflict.resource.mjs";
|
|
17
25
|
export const PersonaliaModule = Module.define({
|
|
18
26
|
definition: "neu:operasional:personalia",
|
|
19
27
|
label: "Personalia",
|
|
@@ -25,6 +33,7 @@ export const PersonaliaModule = Module.define({
|
|
|
25
33
|
SituationTypeResource,
|
|
26
34
|
SituationResource,
|
|
27
35
|
CheckInResource,
|
|
36
|
+
SubmissionLogResource,
|
|
28
37
|
SubmissionResource,
|
|
29
38
|
SubmissionTypeResource,
|
|
30
39
|
ResponsibilityTypeResource,
|
|
@@ -34,6 +43,13 @@ export const PersonaliaModule = Module.define({
|
|
|
34
43
|
PlanResource,
|
|
35
44
|
ProgressResource,
|
|
36
45
|
AttendanceResource,
|
|
37
|
-
|
|
46
|
+
AttendanceTypeResource,
|
|
47
|
+
ProgressAccessResource,
|
|
48
|
+
ShiftTypeResource,
|
|
49
|
+
ShiftResource,
|
|
50
|
+
ShiftStaffResource,
|
|
51
|
+
LeaveQuotaResource,
|
|
52
|
+
LeaveStaffResource,
|
|
53
|
+
LeaveConflictResource
|
|
38
54
|
]
|
|
39
55
|
});
|
|
@@ -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 AttendanceResource: Resource<Schema.Attendance, import("@neon.id/model").Model<"neu:personalia:attendance", "type" | "nameStaff" | "status" | "branch" | "attendanceAt" | "comeAt" | "decideStaff" | "
|
|
3
|
+
export declare const AttendanceResource: Resource<Schema.Attendance, import("@neon.id/model").Model<"neu:personalia:attendance", "type" | "image" | "nameStaff" | "status" | "branch" | "endedAt" | "startedAt" | "isNotes" | "isGenerate" | "notes" | "attendanceAt" | "comeAt" | "decideStaff" | "delegateNotes" | "delegateStaffs" | "earlyAt" | "homeAt" | "isDelegateStaff" | "lateAt" | "monitoringStaffs" | "submitStaff" | "submittedAt" | "virtualStatus" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
@@ -2,6 +2,10 @@ import { Resource } from "@neon.id/context";
|
|
|
2
2
|
import {
|
|
3
3
|
AttendanceModel
|
|
4
4
|
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { h } from "vue";
|
|
6
|
+
function stripHtmlTags(html) {
|
|
7
|
+
return html.replace(/<[^>]*>/g, "");
|
|
8
|
+
}
|
|
5
9
|
export const AttendanceResource = Resource.define({
|
|
6
10
|
model: AttendanceModel,
|
|
7
11
|
collection: {
|
|
@@ -24,6 +28,14 @@ export const AttendanceResource = Resource.define({
|
|
|
24
28
|
path: "/penugasan/staff-attendances:slug",
|
|
25
29
|
component: "AttendanceSingleStaffView"
|
|
26
30
|
},
|
|
31
|
+
attendanceDelegate: {
|
|
32
|
+
path: "/penugasan/delegate-attendances",
|
|
33
|
+
component: "AttendanceCollectionDelegateView"
|
|
34
|
+
},
|
|
35
|
+
attendanceDelegateSingle: {
|
|
36
|
+
path: "/penugasan/delegate-attendances:slug",
|
|
37
|
+
component: "AttendanceSingleDelegateView"
|
|
38
|
+
},
|
|
27
39
|
attendanceManager: {
|
|
28
40
|
path: "/penugasan/manager-attendances",
|
|
29
41
|
component: "AttendanceCollectionManagerView"
|
|
@@ -42,5 +54,25 @@ export const AttendanceResource = Resource.define({
|
|
|
42
54
|
}
|
|
43
55
|
},
|
|
44
56
|
fragments: AttendanceModel.fragments,
|
|
45
|
-
renders: {
|
|
57
|
+
renders: {
|
|
58
|
+
startedAt: (item) => h(
|
|
59
|
+
"span",
|
|
60
|
+
null,
|
|
61
|
+
item.startedAt ? new Date(item.startedAt).toLocaleDateString("id-ID", {
|
|
62
|
+
day: "2-digit",
|
|
63
|
+
month: "long",
|
|
64
|
+
year: "numeric"
|
|
65
|
+
}) : ""
|
|
66
|
+
),
|
|
67
|
+
notes: (item) => h(
|
|
68
|
+
"span",
|
|
69
|
+
null,
|
|
70
|
+
item.notes ? stripHtmlTags(item.notes) : ""
|
|
71
|
+
),
|
|
72
|
+
delegateNotes: (item) => h(
|
|
73
|
+
"span",
|
|
74
|
+
null,
|
|
75
|
+
item.delegateNotes ? stripHtmlTags(item.delegateNotes) : ""
|
|
76
|
+
)
|
|
77
|
+
}
|
|
46
78
|
});
|
|
@@ -130,6 +130,72 @@ export declare const AttendanceSingleStaffView: import("vue").DefineComponent<{
|
|
|
130
130
|
isMain: boolean;
|
|
131
131
|
overrides: Record<string, any>;
|
|
132
132
|
}, {}>;
|
|
133
|
+
export declare const AttendanceCollectionDelegateView: import("vue").DefineComponent<{
|
|
134
|
+
overrides: {
|
|
135
|
+
type: ObjectConstructor;
|
|
136
|
+
default: () => {};
|
|
137
|
+
};
|
|
138
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
overrides: {
|
|
142
|
+
type: ObjectConstructor;
|
|
143
|
+
default: () => {};
|
|
144
|
+
};
|
|
145
|
+
}>>, {
|
|
146
|
+
overrides: Record<string, any>;
|
|
147
|
+
}, {}>;
|
|
148
|
+
export declare const AttendanceSingleDelegateView: import("vue").DefineComponent<{
|
|
149
|
+
state: {
|
|
150
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
153
|
+
id: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: undefined;
|
|
156
|
+
};
|
|
157
|
+
isNew: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
161
|
+
isMain: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
overrides: {
|
|
166
|
+
type: ObjectConstructor;
|
|
167
|
+
default: () => {};
|
|
168
|
+
};
|
|
169
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
170
|
+
[key: string]: any;
|
|
171
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
172
|
+
state: {
|
|
173
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
174
|
+
default: undefined;
|
|
175
|
+
};
|
|
176
|
+
id: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: undefined;
|
|
179
|
+
};
|
|
180
|
+
isNew: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: undefined;
|
|
183
|
+
};
|
|
184
|
+
isMain: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
overrides: {
|
|
189
|
+
type: ObjectConstructor;
|
|
190
|
+
default: () => {};
|
|
191
|
+
};
|
|
192
|
+
}>>, {
|
|
193
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
194
|
+
id: string;
|
|
195
|
+
isNew: boolean;
|
|
196
|
+
isMain: boolean;
|
|
197
|
+
overrides: Record<string, any>;
|
|
198
|
+
}, {}>;
|
|
133
199
|
export declare const AttendanceCollectionManagerView: import("vue").DefineComponent<{
|
|
134
200
|
overrides: {
|
|
135
201
|
type: ObjectConstructor;
|
|
@@ -39,18 +39,19 @@ export const AttendanceCollectionStaffView = ResourceUtil.createCollection({
|
|
|
39
39
|
"type",
|
|
40
40
|
"notes",
|
|
41
41
|
"decideStaff",
|
|
42
|
-
"status"
|
|
42
|
+
"status",
|
|
43
|
+
"delegateStaffs"
|
|
43
44
|
],
|
|
44
45
|
query: () => {
|
|
45
46
|
const state = useOperasionalStore();
|
|
46
47
|
const { staff } = state.getAllStoreValue();
|
|
47
48
|
return Query.define({
|
|
48
49
|
filter: {
|
|
49
|
-
handle: "
|
|
50
|
+
handle: "virtualSubmitStaffId",
|
|
50
51
|
operator: "eq",
|
|
51
52
|
value: staff?.id
|
|
52
53
|
},
|
|
53
|
-
sort: [{ handle: "
|
|
54
|
+
sort: [{ handle: "startedAt", direction: "descending" }]
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
});
|
|
@@ -65,6 +66,55 @@ export const AttendanceSingleStaffView = ResourceUtil.createSingle({
|
|
|
65
66
|
},
|
|
66
67
|
path: "/penugasan/staff-attendances"
|
|
67
68
|
});
|
|
69
|
+
export const AttendanceCollectionDelegateView = ResourceUtil.createCollection({
|
|
70
|
+
name: "delegate",
|
|
71
|
+
definition: "neu:personalia:attendance",
|
|
72
|
+
title: "Delegasi",
|
|
73
|
+
icon: "person-chalkboard",
|
|
74
|
+
scope: "delegate",
|
|
75
|
+
path: "/penugasan/delegate-attendances",
|
|
76
|
+
single: {
|
|
77
|
+
view: "delegate"
|
|
78
|
+
// peeks: ['page'],
|
|
79
|
+
},
|
|
80
|
+
filters: ["status", "type", "submitStaff", "decideStaff"],
|
|
81
|
+
sorts: ["submittedAt", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
82
|
+
columns: [
|
|
83
|
+
"status",
|
|
84
|
+
"startedAt",
|
|
85
|
+
"submitStaff",
|
|
86
|
+
"delegateStaffs"
|
|
87
|
+
],
|
|
88
|
+
query: () => {
|
|
89
|
+
const state = useOperasionalStore();
|
|
90
|
+
const { staff } = state.getAllStoreValue();
|
|
91
|
+
return Query.define({
|
|
92
|
+
filter: [
|
|
93
|
+
{
|
|
94
|
+
handle: "status",
|
|
95
|
+
operator: "in",
|
|
96
|
+
value: ["approved"]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
delegateStaffIds: staff?.id
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
excludes: ["create"]
|
|
106
|
+
});
|
|
107
|
+
export const AttendanceSingleDelegateView = ResourceUtil.createSingle({
|
|
108
|
+
name: "delegate",
|
|
109
|
+
definition: "neu:personalia:attendance",
|
|
110
|
+
slots: {
|
|
111
|
+
default: "delegate",
|
|
112
|
+
actions: {
|
|
113
|
+
setup: getLabel
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
path: "/penugasan/delegate-attendances"
|
|
117
|
+
});
|
|
68
118
|
export const AttendanceCollectionManagerView = ResourceUtil.createCollection({
|
|
69
119
|
name: "manager",
|
|
70
120
|
definition: "neu:personalia:attendance",
|
|
@@ -121,7 +171,7 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
121
171
|
view: "supervisor"
|
|
122
172
|
// peeks: ['modal'],
|
|
123
173
|
},
|
|
124
|
-
filters: ["status", "type", "submitStaff", "decideStaff"],
|
|
174
|
+
filters: ["status", "type", "submitStaff", "decideStaff", "monitoringStaffs"],
|
|
125
175
|
sorts: ["submittedAt", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
126
176
|
columns: [
|
|
127
177
|
"startedAt",
|
|
@@ -129,7 +179,8 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
129
179
|
"type",
|
|
130
180
|
"notes",
|
|
131
181
|
"decideStaff",
|
|
132
|
-
"status"
|
|
182
|
+
"status",
|
|
183
|
+
"monitoringStaffs"
|
|
133
184
|
],
|
|
134
185
|
query: () => {
|
|
135
186
|
const state = useOperasionalStore();
|
|
@@ -137,13 +188,18 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
137
188
|
return Query.define({
|
|
138
189
|
filter: [
|
|
139
190
|
{
|
|
140
|
-
handle: "
|
|
191
|
+
handle: "virtualStatus",
|
|
141
192
|
operator: "in",
|
|
142
193
|
value: ["approved", "notApproved"]
|
|
143
194
|
},
|
|
144
|
-
{
|
|
195
|
+
{
|
|
196
|
+
$or: [
|
|
197
|
+
{ decideStaffId: staff?.id },
|
|
198
|
+
{ monitoringStaffIds: staff?.id }
|
|
199
|
+
]
|
|
200
|
+
}
|
|
145
201
|
],
|
|
146
|
-
sort: [{ handle: "
|
|
202
|
+
sort: [{ handle: "startedAt", direction: "descending" }]
|
|
147
203
|
});
|
|
148
204
|
},
|
|
149
205
|
excludes: ["create"]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
+
export declare const AttendanceTypeResource: Resource<Schema.AttendanceType, import("@neon.id/model").Model<"neu:personalia:attendanceType", "code" | "name" | "branches" | "description" | "leaveQuota" | "maxDurationDays" | "showAttendanceType" | "showLeaveQuota", Schema.AttendanceType>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
AttendanceTypeModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { NeonCheck } from "@neon.id/form";
|
|
6
|
+
import { h } from "vue";
|
|
7
|
+
export const AttendanceTypeResource = Resource.define({
|
|
8
|
+
model: AttendanceTypeModel,
|
|
9
|
+
collection: {
|
|
10
|
+
title: "Tipe Absensi",
|
|
11
|
+
path: "attendance-types",
|
|
12
|
+
component: "AttendanceTypeCollectionView",
|
|
13
|
+
menu: true,
|
|
14
|
+
displays: ["table"]
|
|
15
|
+
},
|
|
16
|
+
single: {
|
|
17
|
+
path: "attendance-types/:slug",
|
|
18
|
+
component: "AttendanceTypeSingleView"
|
|
19
|
+
},
|
|
20
|
+
views: {},
|
|
21
|
+
fragments: AttendanceTypeModel.fragments,
|
|
22
|
+
renders: {
|
|
23
|
+
showLeaveQuota: (item) => h(NeonCheck, {
|
|
24
|
+
modelValue: item.showLeaveQuota
|
|
25
|
+
}),
|
|
26
|
+
showAttendanceType: (item) => h(NeonCheck, {
|
|
27
|
+
modelValue: item.showAttendanceType
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const AttendanceTypeCollectionView: import("vue").DefineComponent<{
|
|
2
|
+
overrides: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
overrides: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
overrides: Record<string, any>;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const AttendanceTypeSingleView: import("vue").DefineComponent<{
|
|
17
|
+
state: {
|
|
18
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
isNew: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
isMain: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
overrides: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
state: {
|
|
41
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
id: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
isNew: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
isMain: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
overrides: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
}>>, {
|
|
61
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
62
|
+
id: string;
|
|
63
|
+
isNew: boolean;
|
|
64
|
+
isMain: boolean;
|
|
65
|
+
overrides: Record<string, any>;
|
|
66
|
+
}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const AttendanceTypeCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:attendanceType",
|
|
5
|
+
single: {
|
|
6
|
+
peeks: ["modal"]
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export const AttendanceTypeSingleView = ResourceUtil.createSingle({
|
|
10
|
+
name: "default",
|
|
11
|
+
definition: "neu:personalia:attendanceType"
|
|
12
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
import { type Schema } from '@neutron.co.id/sentral-models';
|
|
3
|
+
export declare const CheckInResource: Resource<Schema.CheckIn, import("@neon.id/model").Model<"neu:tempat:checkIn", "type" | "nameStaff" | "branch" | "user" | "note" | "building" | "latitude" | "longitude" | "checkInAt" | "informationCheckIn" | "staff" | "statusGPS" | "student" | "teacher" | "virtualStaff", Schema.CheckIn>>;
|
|
@@ -46,6 +46,7 @@ export const CheckInCollectionSupervisorView = ResourceUtil.createCollection({
|
|
|
46
46
|
},
|
|
47
47
|
columns: ["statusGPS", "display", "type", "checkInAt", "staff", "building"],
|
|
48
48
|
sorts: ["checkInAt"],
|
|
49
|
+
filters: ["staff", "type", "checkInAt", "building", "statusGPS"],
|
|
49
50
|
query: () => {
|
|
50
51
|
const { supervisedStaffIds } = useOperasional();
|
|
51
52
|
return Query.define({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './attendance';
|
|
2
|
+
export * from './attendanceType';
|
|
2
3
|
export * from './checkIn';
|
|
4
|
+
export * from './leaveQuota';
|
|
3
5
|
export * from './plan';
|
|
4
6
|
export * from './planType';
|
|
5
7
|
export * from './progress';
|
|
@@ -9,7 +11,13 @@ export * from './responsibilityType';
|
|
|
9
11
|
export * from './situation';
|
|
10
12
|
export * from './situationType';
|
|
11
13
|
export * from './staff';
|
|
14
|
+
export * from './submissionLog';
|
|
12
15
|
export * from './submission';
|
|
13
16
|
export * from './submissionType';
|
|
14
17
|
export * from './target';
|
|
15
18
|
export * from './task';
|
|
19
|
+
export * from './shift';
|
|
20
|
+
export * from './shiftType';
|
|
21
|
+
export * from './shiftStaff';
|
|
22
|
+
export * from './leaveStaff';
|
|
23
|
+
export * from './leaveConflict';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./attendance/index.mjs";
|
|
2
|
+
export * from "./attendanceType/index.mjs";
|
|
2
3
|
export * from "./checkIn/index.mjs";
|
|
4
|
+
export * from "./leaveQuota/index.mjs";
|
|
3
5
|
export * from "./plan/index.mjs";
|
|
4
6
|
export * from "./planType/index.mjs";
|
|
5
7
|
export * from "./progress/index.mjs";
|
|
@@ -9,7 +11,13 @@ export * from "./responsibilityType/index.mjs";
|
|
|
9
11
|
export * from "./situation/index.mjs";
|
|
10
12
|
export * from "./situationType/index.mjs";
|
|
11
13
|
export * from "./staff/index.mjs";
|
|
14
|
+
export * from "./submissionLog/index.mjs";
|
|
12
15
|
export * from "./submission/index.mjs";
|
|
13
16
|
export * from "./submissionType/index.mjs";
|
|
14
17
|
export * from "./target/index.mjs";
|
|
15
18
|
export * from "./task/index.mjs";
|
|
19
|
+
export * from "./shift/index.mjs";
|
|
20
|
+
export * from "./shiftType/index.mjs";
|
|
21
|
+
export * from "./shiftStaff/index.mjs";
|
|
22
|
+
export * from "./leaveStaff/index.mjs";
|
|
23
|
+
export * from "./leaveConflict/index.mjs";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
import { type Schema } from '@neutron.co.id/personalia-models';
|
|
3
|
+
export declare const LeaveConflictResource: Resource<Schema.LeaveConflict, import("@neon.id/model").Model<"neu:personalia:leaveConflict", "staff" | "staffId" | "deleteType" | "leaveQuotaConflict" | "leaveStaffConflictNew" | "leaveStaffConflictOld" | "leaveQuotaNew" | "leaveQuotaNewName" | "leaveQuotaOld" | "leaveQuotaOldName", Schema.LeaveConflict>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
LeaveConflictModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
export const LeaveConflictResource = Resource.define({
|
|
6
|
+
model: LeaveConflictModel,
|
|
7
|
+
collection: {
|
|
8
|
+
title: "Konflik Cuti",
|
|
9
|
+
path: "leave-conflict",
|
|
10
|
+
component: "LeaveConflictCollectionView",
|
|
11
|
+
displays: ["table"]
|
|
12
|
+
},
|
|
13
|
+
single: {
|
|
14
|
+
path: "leave-conflict/:slug",
|
|
15
|
+
component: "LeaveConflictSingleView"
|
|
16
|
+
},
|
|
17
|
+
views: {},
|
|
18
|
+
fragments: LeaveConflictModel.fragments,
|
|
19
|
+
renders: {}
|
|
20
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const LeaveConflictCollectionView: import("vue").DefineComponent<{
|
|
2
|
+
overrides: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
overrides: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
overrides: Record<string, any>;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const LeaveConflictSingleView: import("vue").DefineComponent<{
|
|
17
|
+
state: {
|
|
18
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
isNew: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
isMain: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
overrides: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
state: {
|
|
41
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
id: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
isNew: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
isMain: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
overrides: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
}>>, {
|
|
61
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
62
|
+
id: string;
|
|
63
|
+
isNew: boolean;
|
|
64
|
+
isMain: boolean;
|
|
65
|
+
overrides: Record<string, any>;
|
|
66
|
+
}, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const LeaveConflictCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:leaveConflict",
|
|
5
|
+
single: {
|
|
6
|
+
peeks: ["modal"]
|
|
7
|
+
},
|
|
8
|
+
excludes: ["create", "click"]
|
|
9
|
+
});
|
|
10
|
+
export const LeaveConflictSingleView = ResourceUtil.createSingle({
|
|
11
|
+
name: "default",
|
|
12
|
+
definition: "neu:personalia:leaveConflict"
|
|
13
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
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" | "hasGenerated" | "nameLeave" | "nameStaffs" | "typeLeave", Schema.LeaveQuota>>;
|