@neutron.co.id/operasional-modules 1.13.0-beta.1 → 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 +7 -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/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 +3 -0
- package/build/personalia/resources/index.mjs +3 -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 +2 -2
- 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 +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/submission/submission.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.views.mjs +86 -26
- 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 +13 -0
- package/build/personalia/views.mjs +2 -2
- package/build/views.mjs +13 -0
- package/package.json +6 -6
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import { Query } from "@neon.id/query";
|
|
3
|
+
import {
|
|
4
|
+
OfficeSingleSync,
|
|
5
|
+
useOperasionalStore
|
|
6
|
+
} from "@neutron.co.id/operasional-interfaces/office";
|
|
7
|
+
import { h } from "vue";
|
|
8
|
+
export const ShiftCollectionView = ResourceUtil.createCollection({
|
|
9
|
+
name: "default",
|
|
10
|
+
definition: "neu:personalia:shift",
|
|
11
|
+
single: {
|
|
12
|
+
// peeks: ['page'],
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export const ShiftSingleView = ResourceUtil.createSingle({
|
|
16
|
+
name: "default",
|
|
17
|
+
definition: "neu:personalia:shift",
|
|
18
|
+
slots: {
|
|
19
|
+
actions: () => h(OfficeSingleSync)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export const ShiftCollectionAdministratorView = ResourceUtil.createCollection(
|
|
23
|
+
{
|
|
24
|
+
name: "administrator",
|
|
25
|
+
definition: "neu:personalia:shift",
|
|
26
|
+
title: "Pengelola Kehadiran",
|
|
27
|
+
icon: "person-chalkboard",
|
|
28
|
+
scope: "administrator",
|
|
29
|
+
path: "/pengelola/shifts",
|
|
30
|
+
single: {
|
|
31
|
+
view: "administrator"
|
|
32
|
+
},
|
|
33
|
+
filters: [
|
|
34
|
+
"branch",
|
|
35
|
+
"shiftingStaffs"
|
|
36
|
+
],
|
|
37
|
+
sorts: [
|
|
38
|
+
"createdAt",
|
|
39
|
+
"updatedAt"
|
|
40
|
+
],
|
|
41
|
+
columns: [
|
|
42
|
+
"titleShift",
|
|
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
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
export const ShiftSingleAdministratorView = ResourceUtil.createSingle({
|
|
67
|
+
name: "administrator",
|
|
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",
|
|
124
|
+
slots: {
|
|
125
|
+
default: "supervisor",
|
|
126
|
+
actions: () => h(OfficeSingleSync)
|
|
127
|
+
}
|
|
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" | "
|
|
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 SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "nameStaff" | "status" | "image" | "title" | "branches" | "
|
|
3
|
+
export declare const SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "nameStaff" | "status" | "image" | "title" | "branches" | "statusStaff" | "agreedStaffs" | "approvedAt" | "decideStaffs" | "decidedAt" | "delayAt" | "delayStaffs" | "detailDecide" | "detailDecideOther" | "detailProcess" | "detailRaise" | "document" | "followUpStaffs" | "hasProcessStaffs" | "hasRaiseStaffs" | "nominal" | "preparedAt" | "processedAt" | "raiseStaffs" | "raisedAt" | "specifications" | "submissionStaffs" | "virtualFollowUpStaffs" | "workingHours" | "yetProcessStaffs" | "yetRaiseStaffs", Schema.Submission>>;
|