@neutron.co.id/operasional-modules 1.12.10 → 1.13.0
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/module.mjs +5 -1
- package/build/personalia/resources/attendance/attendance.resource.d.ts +1 -1
- package/build/personalia/resources/attendance/attendance.resource.mjs +8 -0
- package/build/personalia/resources/attendance/attendance.views.d.ts +66 -0
- package/build/personalia/resources/attendance/attendance.views.mjs +60 -4
- package/build/personalia/resources/index.d.ts +2 -0
- package/build/personalia/resources/index.mjs +2 -0
- package/build/personalia/resources/plan/plan.resource.d.ts +1 -1
- package/build/personalia/resources/plan/plan.views.mjs +1 -1
- 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 +2 -2
- package/build/personalia/resources/shift/shift.resource.d.ts +1 -1
- package/build/personalia/resources/shift/shift.resource.mjs +17 -13
- package/build/personalia/resources/shift/shift.views.d.ts +4 -4
- package/build/personalia/resources/shift/shift.views.mjs +89 -76
- 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 +28 -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/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 +2 -3
- package/build/personalia/view-names.mjs +9 -2
- package/build/personalia/views.mjs +2 -2
- package/build/views.mjs +9 -2
- package/package.json +6 -6
|
@@ -13,6 +13,8 @@ import { StaffResource } from "./resources/staff/staff.resource.mjs";
|
|
|
13
13
|
import { SubmissionResource } from "./resources/submission/submission.resource.mjs";
|
|
14
14
|
import { SubmissionTypeResource } from "./resources/submissionType/submissionType.resource.mjs";
|
|
15
15
|
import { ShiftResource } from "./resources/shift/shift.resource.mjs";
|
|
16
|
+
import { ShiftTypeResource } from "./resources/shiftType/shiftType.resource.mjs";
|
|
17
|
+
import { ShiftStaffResource } from "./resources/shiftStaff/shiftStaff.resource.mjs";
|
|
16
18
|
import { TaskResource } from "./resources/task/task.resource.mjs";
|
|
17
19
|
import { TargetResource } from "./resources/target/target.resource.mjs";
|
|
18
20
|
export const PersonaliaModule = Module.define({
|
|
@@ -36,6 +38,8 @@ export const PersonaliaModule = Module.define({
|
|
|
36
38
|
ProgressResource,
|
|
37
39
|
AttendanceResource,
|
|
38
40
|
ProgressAccessResource,
|
|
39
|
-
|
|
41
|
+
ShiftTypeResource,
|
|
42
|
+
ShiftResource,
|
|
43
|
+
ShiftStaffResource
|
|
40
44
|
]
|
|
41
45
|
});
|
|
@@ -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" | "delegateStaffs" | "earlyAt" | "endedAt" | "homeAt" | "isGenerate" | "lateAt" | "notes" | "startedAt" | "submitStaff" | "submittedAt" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
3
|
+
export declare const AttendanceResource: Resource<Schema.Attendance, import("@neon.id/model").Model<"neu:personalia:attendance", "type" | "nameStaff" | "status" | "branch" | "attendanceAt" | "comeAt" | "decideStaff" | "delegateNotes" | "delegateStaffs" | "earlyAt" | "endedAt" | "homeAt" | "isDelegateStaff" | "isGenerate" | "isNotes" | "lateAt" | "monitoringStaffs" | "notes" | "startedAt" | "submitStaff" | "submittedAt" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
@@ -24,6 +24,14 @@ export const AttendanceResource = Resource.define({
|
|
|
24
24
|
path: "/penugasan/staff-attendances:slug",
|
|
25
25
|
component: "AttendanceSingleStaffView"
|
|
26
26
|
},
|
|
27
|
+
attendanceDelegate: {
|
|
28
|
+
path: "/penugasan/delegate-attendances",
|
|
29
|
+
component: "AttendanceCollectionDelegateView"
|
|
30
|
+
},
|
|
31
|
+
attendanceDelegateSingle: {
|
|
32
|
+
path: "/penugasan/delegate-attendances:slug",
|
|
33
|
+
component: "AttendanceSingleDelegateView"
|
|
34
|
+
},
|
|
27
35
|
attendanceManager: {
|
|
28
36
|
path: "/penugasan/manager-attendances",
|
|
29
37
|
component: "AttendanceCollectionManagerView"
|
|
@@ -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,7 +39,8 @@ 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();
|
|
@@ -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();
|
|
@@ -141,7 +192,12 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
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
202
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
147
203
|
});
|
|
@@ -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 PlanResource: Resource<Schema.Plan, import("@neon.id/model").Model<"neu:personalia:plan", "endedAt" | "startedAt" | "name" | "branches" | "staffs" | "detail" | "domain" | "planTypes" | "stages" | "target", Schema.Plan>>;
|
|
3
|
+
export declare const PlanResource: Resource<Schema.Plan, import("@neon.id/model").Model<"neu:personalia:plan", "endedAt" | "startedAt" | "name" | "branches" | "staffs" | "detail" | "domain" | "planTypes" | "stages" | "target" | "virtualBranches", Schema.Plan>>;
|
|
@@ -40,7 +40,7 @@ export const PlanCollectionStaffView = ResourceUtil.createCollection({
|
|
|
40
40
|
const { staff } = state.getAllStoreValue();
|
|
41
41
|
return Query.define({
|
|
42
42
|
filter: {
|
|
43
|
-
|
|
43
|
+
virtualBranchIds: { $in: staff?.branchIds }
|
|
44
44
|
},
|
|
45
45
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
46
46
|
});
|
|
@@ -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 ProgressResource: Resource<Schema.Progress, import("@neon.id/model").Model<"neu:personalia:progress", "nameStaff" | "endedAt" | "startedAt" | "branches" | "staffs" | "detail" | "plans" | "priority" | "submissions" | "tasks" | "accessStaffs" | "
|
|
3
|
+
export declare const ProgressResource: Resource<Schema.Progress, import("@neon.id/model").Model<"neu:personalia:progress", "nameStaff" | "endedAt" | "isNotes" | "startedAt" | "branches" | "staffs" | "detail" | "plans" | "priority" | "submissions" | "tasks" | "accessStaffs" | "reports" | "responsibilities" | "virtualIsNotes" | "virtualStaffs", Schema.Progress>>;
|
|
@@ -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 ResponsibilityResource: Resource<Schema.Responsibility, import("@neon.id/model").Model<"neu:personalia:responsibility", "nameStaff" | "title" | "branches" | "detail" | "reports" | "condition" | "lastProgress" | "responsibilityType" | "result" | "score" | "staffSupervises" | "staffWorks" | "virtualStaffWorks", Schema.Responsibility>>;
|
|
3
|
+
export declare const ResponsibilityResource: Resource<Schema.Responsibility, import("@neon.id/model").Model<"neu:personalia:responsibility", "nameStaff" | "title" | "branches" | "detail" | "virtualBranches" | "reports" | "condition" | "lastProgress" | "responsibilityType" | "result" | "score" | "staffSupervises" | "staffWorks" | "virtualStaffWorks", Schema.Responsibility>>;
|
|
@@ -15,12 +15,12 @@ export const ResponsibilityCollectionView = ResourceUtil.createCollection({
|
|
|
15
15
|
{
|
|
16
16
|
$or: [
|
|
17
17
|
{
|
|
18
|
-
handle: "
|
|
18
|
+
handle: "virtualBranchIds",
|
|
19
19
|
operator: "in",
|
|
20
20
|
value: staff?.branchIds
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
handle: "
|
|
23
|
+
handle: "virtualBranchIds",
|
|
24
24
|
operator: "in",
|
|
25
25
|
value: staff?.branchId
|
|
26
26
|
}
|
|
@@ -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 ShiftResource: Resource<Schema.Shift, import("@neon.id/model").Model<"neu:personalia:shift", "
|
|
3
|
+
export declare const ShiftResource: Resource<Schema.Shift, import("@neon.id/model").Model<"neu:personalia:shift", "nameStaff" | "endedAt" | "isGenerate" | "startedAt" | "note" | "building" | "branches" | "administratorStaff" | "checkIn" | "shiftingStaffs" | "titleShift" | "totalTime" | "typeShift" | "virtualAdministratorStaff", Schema.Shift>>;
|
|
@@ -2,6 +2,7 @@ import { Resource } from "@neon.id/context";
|
|
|
2
2
|
import {
|
|
3
3
|
ShiftModel
|
|
4
4
|
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { DateUtil } from "@neon.id/utils/date";
|
|
5
6
|
export const ShiftResource = Resource.define({
|
|
6
7
|
model: ShiftModel,
|
|
7
8
|
collection: {
|
|
@@ -16,25 +17,28 @@ export const ShiftResource = Resource.define({
|
|
|
16
17
|
component: "ShiftSingleView"
|
|
17
18
|
},
|
|
18
19
|
views: {
|
|
19
|
-
// Karyawan kehadiran
|
|
20
|
-
shiftStaff: {
|
|
21
|
-
path: "/kehadiran/staff-shift",
|
|
22
|
-
component: "ShiftCollectionStaffView"
|
|
23
|
-
},
|
|
24
|
-
shiftStaffSingle: {
|
|
25
|
-
path: "/kehadiran/staff-shift/:slug",
|
|
26
|
-
component: "ShiftSingleStaffView"
|
|
27
|
-
},
|
|
28
|
-
//Pengelola kehadiran
|
|
29
20
|
shiftAdministrator: {
|
|
30
|
-
path: "/
|
|
21
|
+
path: "/pengelola/shifts",
|
|
31
22
|
component: "ShiftCollectionAdministratorView"
|
|
32
23
|
},
|
|
33
24
|
shiftAdministratorSingle: {
|
|
34
|
-
path: "/
|
|
25
|
+
path: "/pengelola/shifts:slug",
|
|
35
26
|
component: "ShiftSingleAdministratorView"
|
|
27
|
+
},
|
|
28
|
+
shiftSupervisor: {
|
|
29
|
+
path: "/pengelola/supervisor-shifts",
|
|
30
|
+
component: "ShiftCollectionSupervisorView"
|
|
31
|
+
},
|
|
32
|
+
shiftSupervisorSingle: {
|
|
33
|
+
path: "/pengelola/supervisor-shifts:slug",
|
|
34
|
+
component: "ShiftSingleSupervisorView"
|
|
36
35
|
}
|
|
37
36
|
},
|
|
38
37
|
fragments: ShiftModel.fragments,
|
|
39
|
-
renders: {
|
|
38
|
+
renders: {
|
|
39
|
+
endedAt: (item) => `${DateUtil.format(item?.endedAt, { pattern: "yyyy-MM-dd" }) || "-"}`,
|
|
40
|
+
startedAt: (item) => `${DateUtil.format(item?.startedAt, { pattern: "yyyy-MM-dd" }) || "-"}`,
|
|
41
|
+
startedTime: (item) => `${DateUtil.format(item?.startedTime, { pattern: "HH:mm" }) || "-"}`,
|
|
42
|
+
endedTime: (item) => `${DateUtil.format(item?.endedTime, { pattern: "HH:mm" }) || "-"}`
|
|
43
|
+
}
|
|
40
44
|
});
|
|
@@ -64,7 +64,7 @@ export declare const ShiftSingleView: import("vue").DefineComponent<{
|
|
|
64
64
|
isMain: boolean;
|
|
65
65
|
overrides: Record<string, any>;
|
|
66
66
|
}, {}>;
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const ShiftCollectionAdministratorView: import("vue").DefineComponent<{
|
|
68
68
|
overrides: {
|
|
69
69
|
type: ObjectConstructor;
|
|
70
70
|
default: () => {};
|
|
@@ -79,7 +79,7 @@ export declare const ShiftCollectionStaffView: import("vue").DefineComponent<{
|
|
|
79
79
|
}>>, {
|
|
80
80
|
overrides: Record<string, any>;
|
|
81
81
|
}, {}>;
|
|
82
|
-
export declare const
|
|
82
|
+
export declare const ShiftSingleAdministratorView: import("vue").DefineComponent<{
|
|
83
83
|
state: {
|
|
84
84
|
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
85
85
|
default: undefined;
|
|
@@ -130,7 +130,7 @@ export declare const ShiftSingleStaffView: import("vue").DefineComponent<{
|
|
|
130
130
|
isMain: boolean;
|
|
131
131
|
overrides: Record<string, any>;
|
|
132
132
|
}, {}>;
|
|
133
|
-
export declare const
|
|
133
|
+
export declare const ShiftCollectionSupervisorView: import("vue").DefineComponent<{
|
|
134
134
|
overrides: {
|
|
135
135
|
type: ObjectConstructor;
|
|
136
136
|
default: () => {};
|
|
@@ -145,7 +145,7 @@ export declare const ShiftCollectionAdministratorView: import("vue").DefineCompo
|
|
|
145
145
|
}>>, {
|
|
146
146
|
overrides: Record<string, any>;
|
|
147
147
|
}, {}>;
|
|
148
|
-
export declare const
|
|
148
|
+
export declare const ShiftSingleSupervisorView: import("vue").DefineComponent<{
|
|
149
149
|
state: {
|
|
150
150
|
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
151
151
|
default: undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ResourceUtil } from "@neon.id/office";
|
|
2
2
|
import { Query } from "@neon.id/query";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
OfficeSingleSync,
|
|
5
|
+
useOperasionalStore
|
|
6
6
|
} from "@neutron.co.id/operasional-interfaces/office";
|
|
7
7
|
import { h } from "vue";
|
|
8
8
|
export const ShiftCollectionView = ResourceUtil.createCollection({
|
|
@@ -19,53 +19,6 @@ export const ShiftSingleView = ResourceUtil.createSingle({
|
|
|
19
19
|
actions: () => h(OfficeSingleSync)
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
export const ShiftCollectionStaffView = ResourceUtil.createCollection({
|
|
23
|
-
name: "staff",
|
|
24
|
-
definition: "neu:personalia:shift",
|
|
25
|
-
title: "Kehadiran",
|
|
26
|
-
icon: "clipboard-list-check",
|
|
27
|
-
scope: "staff",
|
|
28
|
-
path: "/kehadiran/staff-shift",
|
|
29
|
-
single: {
|
|
30
|
-
view: "staff",
|
|
31
|
-
peeks: ["page"]
|
|
32
|
-
},
|
|
33
|
-
columns: [
|
|
34
|
-
"titleShift",
|
|
35
|
-
"expTime",
|
|
36
|
-
"shiftingStaff",
|
|
37
|
-
// 'picketStaff',
|
|
38
|
-
"disciplineEnd",
|
|
39
|
-
"disciplineAt",
|
|
40
|
-
// 'effortTime',
|
|
41
|
-
"offsetTime"
|
|
42
|
-
],
|
|
43
|
-
filters: [],
|
|
44
|
-
sorts: [],
|
|
45
|
-
query: () => {
|
|
46
|
-
const state = useOperasionalStore();
|
|
47
|
-
const { staff } = state.getAllStoreValue();
|
|
48
|
-
return Query.define({
|
|
49
|
-
filter: [
|
|
50
|
-
{
|
|
51
|
-
handle: "shiftingStaffId",
|
|
52
|
-
operator: "in",
|
|
53
|
-
value: staff?.id
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
excludes: ["create"]
|
|
60
|
-
});
|
|
61
|
-
export const ShiftSingleStaffView = ResourceUtil.createSingle({
|
|
62
|
-
name: "staff",
|
|
63
|
-
definition: "neu:personalia:shift",
|
|
64
|
-
slots: {
|
|
65
|
-
actions: () => h(OfficeSingleSync)
|
|
66
|
-
},
|
|
67
|
-
path: "/kehadiran/staff-shift"
|
|
68
|
-
});
|
|
69
22
|
export const ShiftCollectionAdministratorView = ResourceUtil.createCollection(
|
|
70
23
|
{
|
|
71
24
|
name: "administrator",
|
|
@@ -73,43 +26,103 @@ export const ShiftCollectionAdministratorView = ResourceUtil.createCollection(
|
|
|
73
26
|
title: "Pengelola Kehadiran",
|
|
74
27
|
icon: "person-chalkboard",
|
|
75
28
|
scope: "administrator",
|
|
76
|
-
path: "/
|
|
29
|
+
path: "/pengelola/shifts",
|
|
77
30
|
single: {
|
|
78
31
|
view: "administrator"
|
|
79
|
-
// peeks: ['modal'],
|
|
80
32
|
},
|
|
81
|
-
filters: [
|
|
82
|
-
|
|
33
|
+
filters: [
|
|
34
|
+
"branch",
|
|
35
|
+
"shiftingStaffs"
|
|
36
|
+
],
|
|
37
|
+
sorts: [
|
|
38
|
+
"createdAt",
|
|
39
|
+
"updatedAt"
|
|
40
|
+
],
|
|
83
41
|
columns: [
|
|
84
42
|
"titleShift",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
]
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
43
|
+
"branches",
|
|
44
|
+
"typeShift",
|
|
45
|
+
"startedAt",
|
|
46
|
+
"endedAt",
|
|
47
|
+
"building",
|
|
48
|
+
"shiftingStaffs"
|
|
49
|
+
],
|
|
50
|
+
query: () => {
|
|
51
|
+
const state = useOperasionalStore();
|
|
52
|
+
const { staff } = state.getAllStoreValue();
|
|
53
|
+
return Query.define({
|
|
54
|
+
filter: [
|
|
55
|
+
{
|
|
56
|
+
handle: "branchIds",
|
|
57
|
+
operator: "in",
|
|
58
|
+
value: staff?.branchIds
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
62
|
+
});
|
|
63
|
+
}
|
|
106
64
|
}
|
|
107
65
|
);
|
|
108
66
|
export const ShiftSingleAdministratorView = ResourceUtil.createSingle({
|
|
109
67
|
name: "administrator",
|
|
110
68
|
definition: "neu:personalia:shift",
|
|
69
|
+
title: "Pengelola Kehadiran",
|
|
70
|
+
slots: {
|
|
71
|
+
default: "administrator",
|
|
72
|
+
actions: () => h(OfficeSingleSync)
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export const ShiftCollectionSupervisorView = ResourceUtil.createCollection(
|
|
76
|
+
{
|
|
77
|
+
name: "supervisor",
|
|
78
|
+
definition: "neu:personalia:shift",
|
|
79
|
+
title: "Jadwal Shift Mereka",
|
|
80
|
+
icon: "person-chalkboard",
|
|
81
|
+
scope: "supervisor",
|
|
82
|
+
path: "/pengelola/supervisor-shifts",
|
|
83
|
+
single: {
|
|
84
|
+
view: "supervisor"
|
|
85
|
+
},
|
|
86
|
+
filters: [
|
|
87
|
+
"branch",
|
|
88
|
+
"shiftingStaffs"
|
|
89
|
+
],
|
|
90
|
+
sorts: [
|
|
91
|
+
"createdAt",
|
|
92
|
+
"updatedAt"
|
|
93
|
+
],
|
|
94
|
+
columns: [
|
|
95
|
+
"titleShift",
|
|
96
|
+
"branches",
|
|
97
|
+
"typeShift",
|
|
98
|
+
"startedAt",
|
|
99
|
+
"endedAt",
|
|
100
|
+
"building",
|
|
101
|
+
"shiftingStaffs"
|
|
102
|
+
],
|
|
103
|
+
query: () => {
|
|
104
|
+
const state = useOperasionalStore();
|
|
105
|
+
const { staff } = state.getAllStoreValue();
|
|
106
|
+
return Query.define({
|
|
107
|
+
filter: [
|
|
108
|
+
{
|
|
109
|
+
handle: "administratorStaffId",
|
|
110
|
+
operator: "in",
|
|
111
|
+
value: staff?.id
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
excludes: ["create"]
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
export const ShiftSingleSupervisorView = ResourceUtil.createSingle({
|
|
121
|
+
name: "supervisor",
|
|
122
|
+
definition: "neu:personalia:shift",
|
|
123
|
+
title: "Jadwal Shift Mereka",
|
|
111
124
|
slots: {
|
|
125
|
+
default: "supervisor",
|
|
112
126
|
actions: () => h(OfficeSingleSync)
|
|
113
|
-
}
|
|
114
|
-
path: "/kehadiran/administrator-shift"
|
|
127
|
+
}
|
|
115
128
|
});
|
|
@@ -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 ShiftStaffResource: Resource<Schema.ShiftStaff, import("@neon.id/model").Model<"neu:personalia:shiftStaff", "nameStaff" | "endedAt" | "startedAt" | "note" | "building" | "branches" | "administratorStaff" | "titleShift" | "totalTime" | "typeShift" | "startedTime" | "endedTime" | "attendShift" | "backHomeShift" | "disciplineAttend" | "disciplineBackHome" | "effortAttend" | "hourAttendShift" | "hourBackHome" | "hourEndedTime" | "hourStartedTime" | "offsetAttend" | "shiftingStaff", Schema.ShiftStaff>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import { DateUtil } from "@neon.id/utils/date";
|
|
3
|
+
import {
|
|
4
|
+
ShiftStaffModel
|
|
5
|
+
} from "@neutron.co.id/personalia-models";
|
|
6
|
+
export const ShiftStaffResource = Resource.define({
|
|
7
|
+
model: ShiftStaffModel,
|
|
8
|
+
collection: {
|
|
9
|
+
title: "Jadwal Shift",
|
|
10
|
+
path: "shift-staffs",
|
|
11
|
+
component: "ShiftStaffCollectionView",
|
|
12
|
+
menu: true,
|
|
13
|
+
displays: ["table", "calendar"]
|
|
14
|
+
},
|
|
15
|
+
single: {
|
|
16
|
+
path: "shift-staffs/:slug",
|
|
17
|
+
component: "ShiftStaffSingleView"
|
|
18
|
+
},
|
|
19
|
+
views: {
|
|
20
|
+
shiftStaffSingleBranch: {
|
|
21
|
+
path: "jadwal/branchs/:slug",
|
|
22
|
+
component: "ShiftStaffBranchSingleView"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
fragments: ShiftStaffModel.fragments,
|
|
26
|
+
renders: {
|
|
27
|
+
startedAt: (item) => `${DateUtil.format(item?.startedAt, { pattern: "yyyy-MM-dd" }) || "-"}`
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export declare const ShiftStaffCollectionView: 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 ShiftStaffSingleView: 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
|
+
}, {}>;
|
|
67
|
+
export declare const ShiftStaffBranchSingleView: import("vue").DefineComponent<{
|
|
68
|
+
state: {
|
|
69
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
id: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
isNew: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: undefined;
|
|
79
|
+
};
|
|
80
|
+
isMain: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
overrides: {
|
|
85
|
+
type: ObjectConstructor;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
state: {
|
|
92
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
id: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
isNew: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
isMain: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
overrides: {
|
|
108
|
+
type: ObjectConstructor;
|
|
109
|
+
default: () => {};
|
|
110
|
+
};
|
|
111
|
+
}>>, {
|
|
112
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
113
|
+
id: string;
|
|
114
|
+
isNew: boolean;
|
|
115
|
+
isMain: boolean;
|
|
116
|
+
overrides: Record<string, any>;
|
|
117
|
+
}, {}>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import {
|
|
3
|
+
OfficeSingleSync
|
|
4
|
+
} from "@neutron.co.id/operasional-interfaces/office";
|
|
5
|
+
import { h } from "vue";
|
|
6
|
+
export const ShiftStaffCollectionView = ResourceUtil.createCollection({
|
|
7
|
+
name: "default",
|
|
8
|
+
definition: "neu:personalia:shiftStaff",
|
|
9
|
+
single: {
|
|
10
|
+
peeks: ["modal"]
|
|
11
|
+
},
|
|
12
|
+
excludes: ["create"]
|
|
13
|
+
});
|
|
14
|
+
export const ShiftStaffSingleView = ResourceUtil.createSingle({
|
|
15
|
+
name: "default",
|
|
16
|
+
definition: "neu:personalia:shiftStaff",
|
|
17
|
+
slots: {
|
|
18
|
+
actions: () => h(OfficeSingleSync)
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export const ShiftStaffBranchSingleView = ResourceUtil.createSingle({
|
|
22
|
+
name: "branch",
|
|
23
|
+
definition: "neu:personalia:shiftStaff",
|
|
24
|
+
path: "/jadwal/branchs",
|
|
25
|
+
slots: {
|
|
26
|
+
actions: () => h(OfficeSingleSync)
|
|
27
|
+
}
|
|
28
|
+
});
|
|
@@ -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 ShiftTypeResource: Resource<Schema.ShiftType, import("@neon.id/model").Model<"neu:personalia:shiftType", "branch" | "notes" | "titleShift" | "endTime" | "expTime" | "startTime", Schema.ShiftType>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
ShiftTypeModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { DateUtil } from "@neon.id/utils/date";
|
|
6
|
+
export const ShiftTypeResource = Resource.define({
|
|
7
|
+
model: ShiftTypeModel,
|
|
8
|
+
collection: {
|
|
9
|
+
title: "Tipe Kehadiran",
|
|
10
|
+
path: "shift-types",
|
|
11
|
+
component: "ShiftTypeCollectionView",
|
|
12
|
+
menu: true,
|
|
13
|
+
displays: ["table"]
|
|
14
|
+
},
|
|
15
|
+
single: {
|
|
16
|
+
path: "shift-types/:slug",
|
|
17
|
+
component: "ShiftTypeSingleView"
|
|
18
|
+
},
|
|
19
|
+
views: {},
|
|
20
|
+
fragments: ShiftTypeModel.fragments,
|
|
21
|
+
renders: {
|
|
22
|
+
startTime: (item) => `${DateUtil.format(item?.startTime, { pattern: "HH:mm" }) || "-"}`,
|
|
23
|
+
endTime: (item) => `${DateUtil.format(item?.endTime, { pattern: "HH:mm" }) || "-"}`
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const ShiftTypeCollectionView: 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 ShiftTypeSingleView: 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,9 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const ShiftTypeCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:shiftType"
|
|
5
|
+
});
|
|
6
|
+
export const ShiftTypeSingleView = ResourceUtil.createSingle({
|
|
7
|
+
name: "default",
|
|
8
|
+
definition: "neu:personalia:shiftType"
|
|
9
|
+
});
|
|
@@ -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 SituationResource: Resource<Schema.SituationType, import("@neon.id/model").Model<"neu:personalia:situation", "user" | "branches" | "situationStatus" | "employeeNameTrimmed" | "searchBySituationTypeTrimmed" | "situationDescription" | "situationRelatedBy" | "situationReportedBy" | "situationResponse" | "situationSupportedBy" | "situationType" | "supportiveStatus" | "urgentSituationDate", Schema.Situation>>;
|
|
3
|
+
export declare const SituationResource: Resource<Schema.SituationType, import("@neon.id/model").Model<"neu:personalia:situation", "user" | "branches" | "virtualBranches" | "situationStatus" | "employeeNameTrimmed" | "searchBySituationTypeTrimmed" | "situationDescription" | "situationRelatedBy" | "situationReportedBy" | "situationResponse" | "situationSupportedBy" | "situationType" | "supportiveStatus" | "urgentSituationDate", Schema.Situation>>;
|
|
@@ -50,7 +50,7 @@ export const SituationCollectionWorkView = ResourceUtil.createCollection({
|
|
|
50
50
|
if (permit.is("neu:cabangOperasional")) {
|
|
51
51
|
return Query.define({
|
|
52
52
|
filter: {
|
|
53
|
-
handle: "
|
|
53
|
+
handle: "virtualBranchIds",
|
|
54
54
|
operator: "in",
|
|
55
55
|
value: staff?.branchIds
|
|
56
56
|
}
|
|
@@ -122,7 +122,7 @@ export const SituationCollectionSupportiveView = ResourceUtil.createCollection({
|
|
|
122
122
|
if (permit.is("neu:cabangOperasional")) {
|
|
123
123
|
return Query.define({
|
|
124
124
|
filter: {
|
|
125
|
-
handle: "
|
|
125
|
+
handle: "virtualBranchIds",
|
|
126
126
|
operator: "in",
|
|
127
127
|
value: staff?.branchIds
|
|
128
128
|
}
|
|
@@ -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 StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "status" | "branch" | "user" | "point" | "image" | "name" | "note" | "branches" | "birthDate" | "birthPlace" | "kubikAt" | "kubikStatus" | "nik" | "virtualRoles" | "workCome" | "workHome" | "workNote" | "workStatus", Schema.Staff>>;
|
|
3
|
+
export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "status" | "branch" | "user" | "point" | "image" | "name" | "note" | "branches" | "birthDate" | "birthPlace" | "kubikAt" | "kubikStatus" | "nik" | "virtualRoles" | "workCheckIn" | "workCheckInAt" | "workCome" | "workHome" | "workNote" | "workStatus", Schema.Staff>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ResourceUtil } from "@neon.id/office";
|
|
2
2
|
import { Query } from "@neon.id/query";
|
|
3
3
|
import { usePermit } from "@neon.id/context";
|
|
4
|
-
import { useOperasional } from "@neutron.co.id/operasional-interfaces/office";
|
|
4
|
+
import { OfficeSingleSync, useOperasional } from "@neutron.co.id/operasional-interfaces/office";
|
|
5
|
+
import { h } from "vue";
|
|
5
6
|
export const StaffCollectionView = ResourceUtil.createCollection({
|
|
6
7
|
name: "default",
|
|
7
8
|
definition: "neu:personalia:staff",
|
|
@@ -11,7 +12,10 @@ export const StaffCollectionView = ResourceUtil.createCollection({
|
|
|
11
12
|
});
|
|
12
13
|
export const StaffSingleView = ResourceUtil.createSingle({
|
|
13
14
|
name: "default",
|
|
14
|
-
definition: "neu:personalia:staff"
|
|
15
|
+
definition: "neu:personalia:staff",
|
|
16
|
+
slots: {
|
|
17
|
+
actions: () => h(OfficeSingleSync)
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
export const StaffCollectionOperasionalView = ResourceUtil.createCollection({
|
|
17
21
|
name: "operasional",
|
|
@@ -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 TargetResource: Resource<Schema.Target, import("@neon.id/model").Model<"neu:personalia:target", "endedAt" | "startedAt" | "name" | "branches" | "stages" | "condition" | "actualInvoice" | "school" | "targetEst", Schema.Target>>;
|
|
3
|
+
export declare const TargetResource: Resource<Schema.Target, import("@neon.id/model").Model<"neu:personalia:target", "endedAt" | "startedAt" | "name" | "branches" | "stages" | "virtualBranches" | "condition" | "actualInvoice" | "school" | "targetEst", Schema.Target>>;
|
|
@@ -55,7 +55,7 @@ export const TargetCollectionBranchView = ResourceUtil.createCollection({
|
|
|
55
55
|
const { staff } = state.getAllStoreValue();
|
|
56
56
|
return Query.define({
|
|
57
57
|
filter: {
|
|
58
|
-
handle: "
|
|
58
|
+
handle: "virtualBranchIds",
|
|
59
59
|
operator: "in",
|
|
60
60
|
value: staff?.branchIds
|
|
61
61
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
OfficeSingleSync,
|
|
2
3
|
TaskWorkButton,
|
|
3
|
-
useOperasionalStore
|
|
4
|
-
OfficeSingleSync
|
|
4
|
+
useOperasionalStore
|
|
5
5
|
} from "@neutron.co.id/operasional-interfaces/office";
|
|
6
6
|
import { Query } from "@neon.id/query";
|
|
7
7
|
import { ResourceUtil } from "@neon.id/office";
|
|
@@ -63,7 +63,6 @@ export const TaskCollectionPlanView = ResourceUtil.createCollection({
|
|
|
63
63
|
},
|
|
64
64
|
filters: [
|
|
65
65
|
"status",
|
|
66
|
-
"branches",
|
|
67
66
|
"giveAssignments",
|
|
68
67
|
"doingAssignments",
|
|
69
68
|
"supervisingAssignments",
|
|
@@ -3,6 +3,8 @@ export default [
|
|
|
3
3
|
'AttendanceSingleView',
|
|
4
4
|
'AttendanceCollectionStaffView',
|
|
5
5
|
'AttendanceSingleStaffView',
|
|
6
|
+
'AttendanceCollectionDelegateView',
|
|
7
|
+
'AttendanceSingleDelegateView',
|
|
6
8
|
'AttendanceCollectionManagerView',
|
|
7
9
|
'AttendanceSingleManagerView',
|
|
8
10
|
'AttendanceCollectionSupervisorView',
|
|
@@ -41,10 +43,15 @@ export default [
|
|
|
41
43
|
'ResponsibilityTypeSingleView',
|
|
42
44
|
'ShiftCollectionView',
|
|
43
45
|
'ShiftSingleView',
|
|
44
|
-
'ShiftCollectionStaffView',
|
|
45
|
-
'ShiftSingleStaffView',
|
|
46
46
|
'ShiftCollectionAdministratorView',
|
|
47
47
|
'ShiftSingleAdministratorView',
|
|
48
|
+
'ShiftCollectionSupervisorView',
|
|
49
|
+
'ShiftSingleSupervisorView',
|
|
50
|
+
'ShiftStaffCollectionView',
|
|
51
|
+
'ShiftStaffSingleView',
|
|
52
|
+
'ShiftStaffBranchSingleView',
|
|
53
|
+
'ShiftTypeCollectionView',
|
|
54
|
+
'ShiftTypeSingleView',
|
|
48
55
|
'SituationCollectionView',
|
|
49
56
|
'SituationSingleView',
|
|
50
57
|
'SituationCollectionWorkView',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView,
|
|
2
|
-
export { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView,
|
|
1
|
+
import { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionDelegateView, AttendanceSingleDelegateView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, ShiftCollectionSupervisorView, ShiftSingleSupervisorView, ShiftStaffCollectionView, ShiftStaffSingleView, ShiftStaffBranchSingleView, ShiftTypeCollectionView, ShiftTypeSingleView, SituationCollectionView, SituationSingleView, SituationCollectionWorkView, SituationSingleWorkView, SituationCollectionSupportiveView, SituationSingleSupportiveView, SituationTypeCollectionView, SituationTypeSingleView, StaffCollectionView, StaffSingleView, StaffCollectionOperasionalView, StaffSingleOperasionalView, StaffCollectionAccessView, StaffSingleAccessView, StaffCollectionEventView, SubmissionCollectionView, SubmissionSingleView, SubmissionCollectionStaffView, SubmissionSingleStaffView, SubmissionCollectionFollowUpView, SubmissionSingleFollowUpView, SubmissionCollectionAuditView, SubmissionSingleAuditView, SubmissionCollectionDecisionView, SubmissionSingleDecisionView, SubmissionCollectionWaitingDecisionView, SubmissionSingleWaitingDecisionView, SubmissionCollectionSupervisorView, SubmissionSingleSupervisorView, SubmissionTypeCollectionView, SubmissionTypeSingleView, TargetCollectionView, TargetSingleView, TargetCollectionBranchView, TargetSingleBranchView, TaskCollectionView, TaskSingleView, TaskCollectionPlanView, TaskSinglePlanView, TaskCollectionWorkView, TaskSingleWorkView } from './resources'
|
|
2
|
+
export { AttendanceCollectionView, AttendanceSingleView, AttendanceCollectionStaffView, AttendanceSingleStaffView, AttendanceCollectionDelegateView, AttendanceSingleDelegateView, AttendanceCollectionManagerView, AttendanceSingleManagerView, AttendanceCollectionSupervisorView, AttendanceSingleSupervisorView, CheckInCollectionView, CheckInSingleView, CheckInCollectionExternalView, CheckInSingleExternalView, CheckInCollectionSupervisorView, CheckInSingleSupervisorView, CheckInCollectionStaffView, PlanCollectionView, PlanSingleView, PlanCollectionStaffView, PlanSingleStaffView, PlanTypeCollectionView, PlanTypeSingleView, ProgressCollectionView, ProgressCollectionNoteView, ProgressSingleNoteView, ProgressSingleView, ProgressSingleYesterdayView, ProgressSingleTomorrowView, ProgressCollectionSupervisorView, ProgressAccessCollectionView, ProgressAccessSingleView, ProgressAccessCollectionSupervisorView, ProgressAccessSingleSupervisorView, ResponsibilityCollectionView, ResponsibilitySingleView, ResponsibilityCollectionStaffView, ResponsibilitySingleStaffView, ResponsibilityCollectionSupervisorView, ResponsibilitySingleSupervisorView, ResponsibilityTypeCollectionView, ResponsibilityTypeSingleView, ShiftCollectionView, ShiftSingleView, ShiftCollectionAdministratorView, ShiftSingleAdministratorView, ShiftCollectionSupervisorView, ShiftSingleSupervisorView, ShiftStaffCollectionView, ShiftStaffSingleView, ShiftStaffBranchSingleView, ShiftTypeCollectionView, ShiftTypeSingleView, SituationCollectionView, SituationSingleView, SituationCollectionWorkView, SituationSingleWorkView, SituationCollectionSupportiveView, SituationSingleSupportiveView, SituationTypeCollectionView, SituationTypeSingleView, StaffCollectionView, StaffSingleView, StaffCollectionOperasionalView, StaffSingleOperasionalView, StaffCollectionAccessView, StaffSingleAccessView, StaffCollectionEventView, SubmissionCollectionView, SubmissionSingleView, SubmissionCollectionStaffView, SubmissionSingleStaffView, SubmissionCollectionFollowUpView, SubmissionSingleFollowUpView, SubmissionCollectionAuditView, SubmissionSingleAuditView, SubmissionCollectionDecisionView, SubmissionSingleDecisionView, SubmissionCollectionWaitingDecisionView, SubmissionSingleWaitingDecisionView, SubmissionCollectionSupervisorView, SubmissionSingleSupervisorView, SubmissionTypeCollectionView, SubmissionTypeSingleView, TargetCollectionView, TargetSingleView, TargetCollectionBranchView, TargetSingleBranchView, TaskCollectionView, TaskSingleView, TaskCollectionPlanView, TaskSinglePlanView, TaskCollectionWorkView, TaskSingleWorkView }
|
package/build/views.mjs
CHANGED
|
@@ -4,6 +4,8 @@ export default {
|
|
|
4
4
|
'AttendanceSingleView',
|
|
5
5
|
'AttendanceCollectionStaffView',
|
|
6
6
|
'AttendanceSingleStaffView',
|
|
7
|
+
'AttendanceCollectionDelegateView',
|
|
8
|
+
'AttendanceSingleDelegateView',
|
|
7
9
|
'AttendanceCollectionManagerView',
|
|
8
10
|
'AttendanceSingleManagerView',
|
|
9
11
|
'AttendanceCollectionSupervisorView',
|
|
@@ -42,10 +44,15 @@ export default {
|
|
|
42
44
|
'ResponsibilityTypeSingleView',
|
|
43
45
|
'ShiftCollectionView',
|
|
44
46
|
'ShiftSingleView',
|
|
45
|
-
'ShiftCollectionStaffView',
|
|
46
|
-
'ShiftSingleStaffView',
|
|
47
47
|
'ShiftCollectionAdministratorView',
|
|
48
48
|
'ShiftSingleAdministratorView',
|
|
49
|
+
'ShiftCollectionSupervisorView',
|
|
50
|
+
'ShiftSingleSupervisorView',
|
|
51
|
+
'ShiftStaffCollectionView',
|
|
52
|
+
'ShiftStaffSingleView',
|
|
53
|
+
'ShiftStaffBranchSingleView',
|
|
54
|
+
'ShiftTypeCollectionView',
|
|
55
|
+
'ShiftTypeSingleView',
|
|
49
56
|
'SituationCollectionView',
|
|
50
57
|
'SituationSingleView',
|
|
51
58
|
'SituationCollectionWorkView',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Modules of Neutron Operasional.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@neon.id/context": "^1.62.0",
|
|
47
47
|
"@neon.id/display": "^1.24.0",
|
|
48
48
|
"@neon.id/interfaces": "^1.57.0",
|
|
49
|
-
"@neon.id/office": "
|
|
49
|
+
"@neon.id/office": "1.46.0",
|
|
50
50
|
"@neon.id/query": "^1.12.0",
|
|
51
|
-
"@neutron.co.id/personalia-models": "1.
|
|
51
|
+
"@neutron.co.id/personalia-models": "1.14.0",
|
|
52
52
|
"pretty-bytes": "^6.1.1",
|
|
53
53
|
"vue": "^3.4.31"
|
|
54
54
|
},
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"@neon.id/context": "^1.62.0",
|
|
77
77
|
"@neon.id/display": "^1.24.0",
|
|
78
78
|
"@neon.id/interfaces": "^1.57.0",
|
|
79
|
-
"@neon.id/office": "
|
|
79
|
+
"@neon.id/office": "1.46.0",
|
|
80
80
|
"@neon.id/query": "^1.12.0",
|
|
81
|
-
"@neutron.co.id/personalia-models": "1.
|
|
81
|
+
"@neutron.co.id/personalia-models": "1.14.0",
|
|
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": 108
|
|
89
89
|
}
|