@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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import { NeonLabel } from "@neon.id/interfaces";
|
|
3
|
+
import {
|
|
4
|
+
LeaveQuotaModel
|
|
5
|
+
} from "@neutron.co.id/personalia-models";
|
|
6
|
+
import { h } from "vue";
|
|
7
|
+
export const LeaveQuotaResource = Resource.define({
|
|
8
|
+
model: LeaveQuotaModel,
|
|
9
|
+
collection: {
|
|
10
|
+
title: "Kuota Cuti",
|
|
11
|
+
path: "leave-quota",
|
|
12
|
+
component: "LeaveQuotaCollectionView",
|
|
13
|
+
menu: true,
|
|
14
|
+
displays: ["table"]
|
|
15
|
+
},
|
|
16
|
+
single: {
|
|
17
|
+
path: "leave-quota/:slug",
|
|
18
|
+
component: "LeaveQuotaSingleView"
|
|
19
|
+
},
|
|
20
|
+
views: {
|
|
21
|
+
leaveQuotaStaff: {
|
|
22
|
+
path: "/pengawas/staff-leaveQuotas",
|
|
23
|
+
component: "LeaveQuotaCollectionView"
|
|
24
|
+
},
|
|
25
|
+
leaveQuotaStaffSingle: {
|
|
26
|
+
path: "/pengawas/staff-leaveQuotas/:slug",
|
|
27
|
+
component: "LeaveQuotaSingleView"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
fragments: LeaveQuotaModel.fragments,
|
|
31
|
+
renders: {
|
|
32
|
+
hasConflict: (item) => h(NeonLabel, {
|
|
33
|
+
modelValue: item.hasConflict,
|
|
34
|
+
color: item.hasConflict ? "danger" : "success",
|
|
35
|
+
text: item.hasConflict ? "Ada Konflik" : "Tidak Ada Konflik",
|
|
36
|
+
icon: item.hasConflict ? "triangle-exclamation" : "check"
|
|
37
|
+
}),
|
|
38
|
+
startedAt: (item) => h(
|
|
39
|
+
"span",
|
|
40
|
+
null,
|
|
41
|
+
item.startedAt ? new Date(item.startedAt).toLocaleDateString("id-ID", {
|
|
42
|
+
day: "2-digit",
|
|
43
|
+
month: "long",
|
|
44
|
+
year: "numeric"
|
|
45
|
+
}) : ""
|
|
46
|
+
),
|
|
47
|
+
endedAt: (item) => h(
|
|
48
|
+
"span",
|
|
49
|
+
null,
|
|
50
|
+
item.endedAt ? new Date(item.endedAt).toLocaleDateString("id-ID", {
|
|
51
|
+
day: "2-digit",
|
|
52
|
+
month: "long",
|
|
53
|
+
year: "numeric"
|
|
54
|
+
}) : ""
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const LeaveQuotaCollectionView: 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 LeaveQuotaSingleView: 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,30 @@
|
|
|
1
|
+
import { usePermit } from "@neon.id/context";
|
|
2
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
3
|
+
import { Query } from "@neon.id/query";
|
|
4
|
+
import { useOperasional } from "@neutron.co.id/operasional-interfaces/office";
|
|
5
|
+
export const LeaveQuotaCollectionView = ResourceUtil.createCollection({
|
|
6
|
+
name: "default",
|
|
7
|
+
definition: "neu:personalia:leaveQuota",
|
|
8
|
+
single: {
|
|
9
|
+
peeks: ["modal"]
|
|
10
|
+
},
|
|
11
|
+
query: () => {
|
|
12
|
+
const permit = usePermit();
|
|
13
|
+
const { staff } = useOperasional();
|
|
14
|
+
if (permit.isAny(["neu:pengawasSDM"])) {
|
|
15
|
+
return Query.define({
|
|
16
|
+
filter: {
|
|
17
|
+
handle: "branchIds",
|
|
18
|
+
operator: "in",
|
|
19
|
+
value: staff.value?.branchIds
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
} else {
|
|
23
|
+
return Query.define({});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export const LeaveQuotaSingleView = ResourceUtil.createSingle({
|
|
28
|
+
name: "default",
|
|
29
|
+
definition: "neu:personalia:leaveQuota"
|
|
30
|
+
});
|
|
@@ -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 LeaveStaffResource: Resource<Schema.LeaveStaff, import("@neon.id/model").Model<"neu:personalia:leaveStaff", "branch" | "endedAt" | "startedAt" | "staff" | "leaveQuota" | "typeLeave" | "leaveQuotaStaff" | "staffId" | "leaveConflict", Schema.LeaveStaff>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
LeaveStaffModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { h } from "vue";
|
|
6
|
+
export const LeaveStaffResource = Resource.define({
|
|
7
|
+
model: LeaveStaffModel,
|
|
8
|
+
collection: {
|
|
9
|
+
title: "Cuti Karyawan",
|
|
10
|
+
path: "leave-staff",
|
|
11
|
+
component: "LeaveStaffCollectionView",
|
|
12
|
+
displays: ["table"]
|
|
13
|
+
},
|
|
14
|
+
single: {
|
|
15
|
+
path: "leave-staff/:slug",
|
|
16
|
+
component: "LeaveStaffSingleView"
|
|
17
|
+
},
|
|
18
|
+
views: {},
|
|
19
|
+
fragments: LeaveStaffModel.fragments,
|
|
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
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const LeaveStaffCollectionView: 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 LeaveStaffSingleView: 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 LeaveStaffCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:leaveStaff",
|
|
5
|
+
single: {
|
|
6
|
+
peeks: ["modal"]
|
|
7
|
+
},
|
|
8
|
+
excludes: ["create", "click"]
|
|
9
|
+
});
|
|
10
|
+
export const LeaveStaffSingleView = ResourceUtil.createSingle({
|
|
11
|
+
name: "default",
|
|
12
|
+
definition: "neu:personalia:leaveStaff"
|
|
13
|
+
});
|
|
@@ -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,14 +40,11 @@ export const PlanCollectionStaffView = ResourceUtil.createCollection({
|
|
|
40
40
|
const { staff } = state.getAllStoreValue();
|
|
41
41
|
return Query.define({
|
|
42
42
|
filter: {
|
|
43
|
-
|
|
44
|
-
operator: "in",
|
|
45
|
-
value: staff?.branchIds
|
|
43
|
+
virtualBranchIds: { $in: staff?.branchIds }
|
|
46
44
|
},
|
|
47
45
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
48
46
|
});
|
|
49
|
-
}
|
|
50
|
-
excludes: ["create"]
|
|
47
|
+
}
|
|
51
48
|
});
|
|
52
49
|
export const PlanSingleStaffView = ResourceUtil.createSingle({
|
|
53
50
|
name: "staff",
|
|
@@ -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" | "startedAt" | "isNotes" | "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>>;
|
|
@@ -4,32 +4,7 @@ import { useOperasional, useOperasionalStore } from "@neutron.co.id/operasional-
|
|
|
4
4
|
export const ResponsibilityCollectionView = ResourceUtil.createCollection({
|
|
5
5
|
name: "default",
|
|
6
6
|
definition: "neu:personalia:responsibility",
|
|
7
|
-
single: {
|
|
8
|
-
// peeks: ['modal'],
|
|
9
|
-
},
|
|
10
|
-
query: () => {
|
|
11
|
-
const state = useOperasionalStore();
|
|
12
|
-
const { staff } = state.getAllStoreValue();
|
|
13
|
-
return Query.define({
|
|
14
|
-
filter: [
|
|
15
|
-
{
|
|
16
|
-
$or: [
|
|
17
|
-
{
|
|
18
|
-
handle: "branchIds",
|
|
19
|
-
operator: "in",
|
|
20
|
-
value: staff?.branchIds
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
handle: "branchIds",
|
|
24
|
-
operator: "in",
|
|
25
|
-
value: staff?.branchId
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
sort: [{ handle: "title", direction: "ascending" }]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
7
|
+
single: {}
|
|
33
8
|
});
|
|
34
9
|
export const ResponsibilitySingleView = ResourceUtil.createSingle({
|
|
35
10
|
name: "default",
|
|
@@ -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 ShiftResource: Resource<Schema.Shift, import("@neon.id/model").Model<"neu:personalia:shift", "nameStaff" | "endedAt" | "startedAt" | "isGenerate" | "note" | "building" | "branches" | "administratorStaff" | "checkIn" | "shiftingStaffs" | "titleShift" | "totalTime" | "typeShift" | "virtualAdministratorStaff", Schema.Shift>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
ShiftModel
|
|
4
|
+
} from "@neutron.co.id/personalia-models";
|
|
5
|
+
import { DateUtil } from "@neon.id/utils/date";
|
|
6
|
+
export const ShiftResource = Resource.define({
|
|
7
|
+
model: ShiftModel,
|
|
8
|
+
collection: {
|
|
9
|
+
title: "Kehadiran",
|
|
10
|
+
path: "shifts",
|
|
11
|
+
component: "ShiftCollectionView",
|
|
12
|
+
displays: ["table", "calendar"],
|
|
13
|
+
menu: true
|
|
14
|
+
},
|
|
15
|
+
single: {
|
|
16
|
+
path: "shifts/:slug",
|
|
17
|
+
component: "ShiftSingleView"
|
|
18
|
+
},
|
|
19
|
+
views: {
|
|
20
|
+
shiftAdministrator: {
|
|
21
|
+
path: "/pengelola/shifts",
|
|
22
|
+
component: "ShiftCollectionAdministratorView"
|
|
23
|
+
},
|
|
24
|
+
shiftAdministratorSingle: {
|
|
25
|
+
path: "/pengelola/shifts:slug",
|
|
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"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
fragments: ShiftModel.fragments,
|
|
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
|
+
}
|
|
44
|
+
});
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export declare const ShiftCollectionView: 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 ShiftSingleView: 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 ShiftCollectionAdministratorView: import("vue").DefineComponent<{
|
|
68
|
+
overrides: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
default: () => {};
|
|
71
|
+
};
|
|
72
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
+
overrides: {
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: () => {};
|
|
78
|
+
};
|
|
79
|
+
}>>, {
|
|
80
|
+
overrides: Record<string, any>;
|
|
81
|
+
}, {}>;
|
|
82
|
+
export declare const ShiftSingleAdministratorView: import("vue").DefineComponent<{
|
|
83
|
+
state: {
|
|
84
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
id: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
isNew: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
isMain: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
overrides: {
|
|
100
|
+
type: ObjectConstructor;
|
|
101
|
+
default: () => {};
|
|
102
|
+
};
|
|
103
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
state: {
|
|
107
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
id: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
isNew: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
118
|
+
isMain: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
overrides: {
|
|
123
|
+
type: ObjectConstructor;
|
|
124
|
+
default: () => {};
|
|
125
|
+
};
|
|
126
|
+
}>>, {
|
|
127
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
128
|
+
id: string;
|
|
129
|
+
isNew: boolean;
|
|
130
|
+
isMain: boolean;
|
|
131
|
+
overrides: Record<string, any>;
|
|
132
|
+
}, {}>;
|
|
133
|
+
export declare const ShiftCollectionSupervisorView: 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 ShiftSingleSupervisorView: 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
|
+
}, {}>;
|