@neutron.co.id/operasional-modules 1.11.2 → 1.12.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/constants.d.ts +1 -0
- package/build/constants.mjs +1 -0
- package/build/personalia/index.mjs +5 -3
- package/build/personalia/module.mjs +15 -17
- package/build/personalia/plugin.mjs +5 -14
- package/build/personalia/resources/attendance/attendance.resource.d.ts +2 -1
- package/build/personalia/resources/attendance/attendance.resource.mjs +10 -20
- package/build/personalia/resources/attendance/attendance.views.d.ts +48 -12
- package/build/personalia/resources/attendance/attendance.views.mjs +16 -11
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +0 -2
- package/build/personalia/resources/checkIn/checkIn.resource.mjs +9 -18
- package/build/personalia/resources/checkIn/checkIn.views.d.ts +37 -10
- package/build/personalia/resources/checkIn/checkIn.views.mjs +9 -8
- package/build/personalia/resources/plan/plan.resource.d.ts +2 -1
- package/build/personalia/resources/plan/plan.resource.mjs +4 -10
- package/build/personalia/resources/plan/plan.views.d.ts +24 -6
- package/build/personalia/resources/plan/plan.views.mjs +7 -6
- package/build/personalia/resources/planType/planType.resource.d.ts +2 -1
- package/build/personalia/resources/planType/planType.resource.mjs +2 -3
- package/build/personalia/resources/planType/planType.views.d.ts +12 -3
- package/build/personalia/resources/planType/planType.views.mjs +1 -1
- package/build/personalia/resources/progress/progress.resource.d.ts +2 -1
- package/build/personalia/resources/progress/progress.resource.mjs +7 -16
- package/build/personalia/resources/progress/progress.views.d.ts +47 -11
- package/build/personalia/resources/progress/progress.views.mjs +14 -25
- package/build/personalia/resources/progressAccess/progressAccess.resource.d.ts +2 -1
- package/build/personalia/resources/progressAccess/progressAccess.resource.mjs +4 -10
- package/build/personalia/resources/progressAccess/progressAccess.views.d.ts +24 -6
- package/build/personalia/resources/progressAccess/progressAccess.views.mjs +4 -4
- package/build/personalia/resources/responsibility/responsibility.resource.d.ts +2 -1
- package/build/personalia/resources/responsibility/responsibility.resource.mjs +6 -14
- package/build/personalia/resources/responsibility/responsibility.views.d.ts +36 -9
- package/build/personalia/resources/responsibility/responsibility.views.mjs +14 -12
- package/build/personalia/resources/responsibilityType/responsibilityType.resource.d.ts +2 -1
- package/build/personalia/resources/responsibilityType/responsibilityType.resource.mjs +2 -6
- package/build/personalia/resources/responsibilityType/responsibilityType.views.d.ts +12 -3
- package/build/personalia/resources/responsibilityType/responsibilityType.views.mjs +1 -1
- package/build/personalia/resources/situation/situation.resource.d.ts +2 -1
- package/build/personalia/resources/situation/situation.resource.mjs +6 -14
- package/build/personalia/resources/situation/situation.views.d.ts +36 -9
- package/build/personalia/resources/situation/situation.views.mjs +16 -14
- package/build/personalia/resources/situationType/situationType.resource.d.ts +2 -1
- package/build/personalia/resources/situationType/situationType.resource.mjs +2 -6
- package/build/personalia/resources/situationType/situationType.views.d.ts +12 -3
- package/build/personalia/resources/situationType/situationType.views.mjs +1 -4
- package/build/personalia/resources/staff/staff.resource.d.ts +2 -1
- package/build/personalia/resources/staff/staff.resource.mjs +10 -14
- package/build/personalia/resources/staff/staff.views.d.ts +51 -9
- package/build/personalia/resources/staff/staff.views.mjs +31 -6
- package/build/personalia/resources/submission/submission.resource.d.ts +2 -1
- package/build/personalia/resources/submission/submission.resource.mjs +18 -34
- package/build/personalia/resources/submission/submission.views.d.ts +84 -21
- package/build/personalia/resources/submission/submission.views.mjs +25 -20
- package/build/personalia/resources/submissionType/index.d.ts +1 -1
- package/build/personalia/resources/submissionType/index.mjs +1 -1
- package/build/personalia/resources/submissionType/submissionType.resource.mjs +2 -6
- package/build/personalia/resources/submissionType/submissionType.views.d.ts +12 -3
- package/build/personalia/resources/submissionType/submissionType.views.mjs +1 -1
- package/build/personalia/resources/target/target.resource.d.ts +2 -1
- package/build/personalia/resources/target/target.resource.mjs +4 -10
- package/build/personalia/resources/target/target.views.d.ts +24 -6
- package/build/personalia/resources/target/target.views.mjs +7 -6
- package/build/personalia/resources/task/task.resource.d.ts +2 -1
- package/build/personalia/resources/task/task.resource.mjs +7 -15
- package/build/personalia/resources/task/task.views.d.ts +36 -9
- package/build/personalia/resources/task/task.views.mjs +24 -19
- package/build/personalia/view-names.mjs +83 -0
- package/build/personalia/views.mjs +2 -2
- package/build/plugin.d.ts +1 -0
- package/build/plugin.mjs +10 -0
- package/build/types/view-names.mjs +2 -0
- package/build/views.mjs +88 -0
- package/package.json +36 -30
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PKG = "@neutron.co.id/operasional-modules";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PKG = "@neutron.co.id/operasional-modules";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { addResourcePages } from "@neon.id/context/kit";
|
|
1
2
|
import { addPlugin, createResolver, defineNuxtModule } from "@nuxt/kit";
|
|
3
|
+
import { PKG } from "../constants.mjs";
|
|
4
|
+
import { PersonaliaModule } from "./module.mjs";
|
|
2
5
|
export default defineNuxtModule({
|
|
3
6
|
meta: {
|
|
4
7
|
name: "@neutron.co.id/operasional-personalia",
|
|
@@ -7,9 +10,8 @@ export default defineNuxtModule({
|
|
|
7
10
|
},
|
|
8
11
|
defaults: {},
|
|
9
12
|
async setup() {
|
|
10
|
-
console.log("module:neu:operasional:personalia");
|
|
11
13
|
const { resolve } = createResolver(import.meta.url);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
addPlugin(resolve("./plugin"));
|
|
15
|
+
await addResourcePages(PersonaliaModule, PKG);
|
|
14
16
|
}
|
|
15
17
|
});
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { Module } from "@neon.id/context";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
TaskResource
|
|
18
|
-
} from "./resources/index.mjs";
|
|
2
|
+
import { AttendanceResource } from "./resources/attendance/attendance.resource.mjs";
|
|
3
|
+
import { CheckInResource } from "./resources/checkIn/checkIn.resource.mjs";
|
|
4
|
+
import { PlanResource } from "./resources/plan/plan.resource.mjs";
|
|
5
|
+
import { PlanTypeResource } from "./resources/planType/planType.resource.mjs";
|
|
6
|
+
import { ProgressAccessResource } from "./resources/progressAccess/progressAccess.resource.mjs";
|
|
7
|
+
import { ProgressResource } from "./resources/progress/progress.resource.mjs";
|
|
8
|
+
import { ResponsibilityResource } from "./resources/responsibility/responsibility.resource.mjs";
|
|
9
|
+
import { ResponsibilityTypeResource } from "./resources/responsibilityType/responsibilityType.resource.mjs";
|
|
10
|
+
import { SituationResource } from "./resources/situation/situation.resource.mjs";
|
|
11
|
+
import { SituationTypeResource } from "./resources/situationType/situationType.resource.mjs";
|
|
12
|
+
import { StaffResource } from "./resources/staff/staff.resource.mjs";
|
|
13
|
+
import { SubmissionResource } from "./resources/submission/submission.resource.mjs";
|
|
14
|
+
import { SubmissionTypeResource } from "./resources/submissionType/submissionType.resource.mjs";
|
|
15
|
+
import { TaskResource } from "./resources/task/task.resource.mjs";
|
|
16
|
+
import { TargetResource } from "./resources/target/target.resource.mjs";
|
|
19
17
|
export const PersonaliaModule = Module.define({
|
|
20
18
|
definition: "neu:operasional:personalia",
|
|
21
19
|
label: "Personalia",
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import { OfficePage } from "#components";
|
|
2
|
-
import { defineNuxtPlugin, useRouter } from "#imports";
|
|
3
1
|
import { useModuleStore } from "@neon.id/context";
|
|
4
|
-
import {
|
|
2
|
+
import { addResourceViews } from "../plugin.mjs";
|
|
5
3
|
import { PersonaliaModule } from "./module.mjs";
|
|
6
|
-
import
|
|
7
|
-
export default defineNuxtPlugin((
|
|
8
|
-
console.log("plugin:neu:operasional:personalia");
|
|
4
|
+
import { defineNuxtPlugin } from "#imports";
|
|
5
|
+
export default defineNuxtPlugin(async () => {
|
|
9
6
|
const store = useModuleStore();
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
for (const key in views) {
|
|
13
|
-
const component = defineAsyncComponent(async () => {
|
|
14
|
-
return import("./views.mjs").then((r) => r[key]);
|
|
15
|
-
});
|
|
16
|
-
app.vueApp.component(key, component);
|
|
17
|
-
}
|
|
7
|
+
store.register(PersonaliaModule);
|
|
8
|
+
await addResourceViews("personalia");
|
|
18
9
|
});
|
|
@@ -1,2 +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" | "lateAt" | "notes" | "startedAt" | "submitStaff" | "submittedAt" | "virtualSubmitStaff", Schema.Attendance>>;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { Resource } from "@neon.id/context";
|
|
2
|
-
import {
|
|
3
|
-
AttendanceCollectionView,
|
|
4
|
-
AttendanceSingleView,
|
|
5
|
-
AttendanceCollectionStaffView,
|
|
6
|
-
AttendanceSingleStaffView,
|
|
7
|
-
AttendanceCollectionManagerView,
|
|
8
|
-
AttendanceSingleManagerView,
|
|
9
|
-
AttendanceCollectionSupervisorView,
|
|
10
|
-
AttendanceSingleSupervisorView
|
|
11
|
-
} from "./attendance.views.mjs";
|
|
12
2
|
import {
|
|
13
3
|
AttendanceModel
|
|
14
4
|
} from "@neutron.co.id/personalia-models";
|
|
@@ -17,38 +7,38 @@ export const AttendanceResource = Resource.define({
|
|
|
17
7
|
collection: {
|
|
18
8
|
title: "Absensi",
|
|
19
9
|
path: "attendances",
|
|
20
|
-
component: AttendanceCollectionView,
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
component: "AttendanceCollectionView",
|
|
11
|
+
displays: ["table", "calendar"],
|
|
12
|
+
menu: true
|
|
23
13
|
},
|
|
24
14
|
single: {
|
|
25
15
|
path: "attendances/:slug",
|
|
26
|
-
component: AttendanceSingleView
|
|
16
|
+
component: "AttendanceSingleView"
|
|
27
17
|
},
|
|
28
18
|
views: {
|
|
29
19
|
attendanceStaff: {
|
|
30
20
|
path: "/penugasan/staff-attendances",
|
|
31
|
-
component: AttendanceCollectionStaffView
|
|
21
|
+
component: "AttendanceCollectionStaffView"
|
|
32
22
|
},
|
|
33
23
|
attendanceStaffSingle: {
|
|
34
24
|
path: "/penugasan/staff-attendances:slug",
|
|
35
|
-
component: AttendanceSingleStaffView
|
|
25
|
+
component: "AttendanceSingleStaffView"
|
|
36
26
|
},
|
|
37
27
|
attendanceManager: {
|
|
38
28
|
path: "/penugasan/manager-attendances",
|
|
39
|
-
component: AttendanceCollectionManagerView
|
|
29
|
+
component: "AttendanceCollectionManagerView"
|
|
40
30
|
},
|
|
41
31
|
attendanceManagerSingle: {
|
|
42
32
|
path: "/penugasan/manager-attendances:slug",
|
|
43
|
-
component: AttendanceSingleManagerView
|
|
33
|
+
component: "AttendanceSingleManagerView"
|
|
44
34
|
},
|
|
45
35
|
attendanceSupervisor: {
|
|
46
36
|
path: "/pengawas/attendances",
|
|
47
|
-
component: AttendanceCollectionSupervisorView
|
|
37
|
+
component: "AttendanceCollectionSupervisorView"
|
|
48
38
|
},
|
|
49
39
|
attendanceSupervisorSingle: {
|
|
50
40
|
path: "/pengawas/attendances:slug",
|
|
51
|
-
component: AttendanceSingleSupervisorView
|
|
41
|
+
component: "AttendanceSingleSupervisorView"
|
|
52
42
|
}
|
|
53
43
|
},
|
|
54
44
|
fragments: AttendanceModel.fragments,
|
|
@@ -5,7 +5,7 @@ export declare const AttendanceCollectionView: import("vue").DefineComponent<{
|
|
|
5
5
|
};
|
|
6
6
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
7
|
[key: string]: any;
|
|
8
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
overrides: {
|
|
10
10
|
type: ObjectConstructor;
|
|
11
11
|
default: () => {};
|
|
@@ -14,6 +14,10 @@ export declare const AttendanceCollectionView: import("vue").DefineComponent<{
|
|
|
14
14
|
overrides: Record<string, any>;
|
|
15
15
|
}, {}>;
|
|
16
16
|
export declare const AttendanceSingleView: import("vue").DefineComponent<{
|
|
17
|
+
state: {
|
|
18
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
17
21
|
id: {
|
|
18
22
|
type: StringConstructor;
|
|
19
23
|
default: undefined;
|
|
@@ -32,7 +36,11 @@ export declare const AttendanceSingleView: import("vue").DefineComponent<{
|
|
|
32
36
|
};
|
|
33
37
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
38
|
[key: string]: any;
|
|
35
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
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
|
+
};
|
|
36
44
|
id: {
|
|
37
45
|
type: StringConstructor;
|
|
38
46
|
default: undefined;
|
|
@@ -50,9 +58,10 @@ export declare const AttendanceSingleView: import("vue").DefineComponent<{
|
|
|
50
58
|
default: () => {};
|
|
51
59
|
};
|
|
52
60
|
}>>, {
|
|
61
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
53
62
|
id: string;
|
|
54
|
-
isMain: boolean;
|
|
55
63
|
isNew: boolean;
|
|
64
|
+
isMain: boolean;
|
|
56
65
|
overrides: Record<string, any>;
|
|
57
66
|
}, {}>;
|
|
58
67
|
export declare const AttendanceCollectionStaffView: import("vue").DefineComponent<{
|
|
@@ -62,7 +71,7 @@ export declare const AttendanceCollectionStaffView: import("vue").DefineComponen
|
|
|
62
71
|
};
|
|
63
72
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
73
|
[key: string]: any;
|
|
65
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
74
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
75
|
overrides: {
|
|
67
76
|
type: ObjectConstructor;
|
|
68
77
|
default: () => {};
|
|
@@ -71,6 +80,10 @@ export declare const AttendanceCollectionStaffView: import("vue").DefineComponen
|
|
|
71
80
|
overrides: Record<string, any>;
|
|
72
81
|
}, {}>;
|
|
73
82
|
export declare const AttendanceSingleStaffView: import("vue").DefineComponent<{
|
|
83
|
+
state: {
|
|
84
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
74
87
|
id: {
|
|
75
88
|
type: StringConstructor;
|
|
76
89
|
default: undefined;
|
|
@@ -89,7 +102,11 @@ export declare const AttendanceSingleStaffView: import("vue").DefineComponent<{
|
|
|
89
102
|
};
|
|
90
103
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
104
|
[key: string]: any;
|
|
92
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
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
|
+
};
|
|
93
110
|
id: {
|
|
94
111
|
type: StringConstructor;
|
|
95
112
|
default: undefined;
|
|
@@ -107,9 +124,10 @@ export declare const AttendanceSingleStaffView: import("vue").DefineComponent<{
|
|
|
107
124
|
default: () => {};
|
|
108
125
|
};
|
|
109
126
|
}>>, {
|
|
127
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
110
128
|
id: string;
|
|
111
|
-
isMain: boolean;
|
|
112
129
|
isNew: boolean;
|
|
130
|
+
isMain: boolean;
|
|
113
131
|
overrides: Record<string, any>;
|
|
114
132
|
}, {}>;
|
|
115
133
|
export declare const AttendanceCollectionManagerView: import("vue").DefineComponent<{
|
|
@@ -119,7 +137,7 @@ export declare const AttendanceCollectionManagerView: import("vue").DefineCompon
|
|
|
119
137
|
};
|
|
120
138
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
121
139
|
[key: string]: any;
|
|
122
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
140
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
123
141
|
overrides: {
|
|
124
142
|
type: ObjectConstructor;
|
|
125
143
|
default: () => {};
|
|
@@ -128,6 +146,10 @@ export declare const AttendanceCollectionManagerView: import("vue").DefineCompon
|
|
|
128
146
|
overrides: Record<string, any>;
|
|
129
147
|
}, {}>;
|
|
130
148
|
export declare const AttendanceSingleManagerView: import("vue").DefineComponent<{
|
|
149
|
+
state: {
|
|
150
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
131
153
|
id: {
|
|
132
154
|
type: StringConstructor;
|
|
133
155
|
default: undefined;
|
|
@@ -146,7 +168,11 @@ export declare const AttendanceSingleManagerView: import("vue").DefineComponent<
|
|
|
146
168
|
};
|
|
147
169
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
148
170
|
[key: string]: any;
|
|
149
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
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
|
+
};
|
|
150
176
|
id: {
|
|
151
177
|
type: StringConstructor;
|
|
152
178
|
default: undefined;
|
|
@@ -164,9 +190,10 @@ export declare const AttendanceSingleManagerView: import("vue").DefineComponent<
|
|
|
164
190
|
default: () => {};
|
|
165
191
|
};
|
|
166
192
|
}>>, {
|
|
193
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
167
194
|
id: string;
|
|
168
|
-
isMain: boolean;
|
|
169
195
|
isNew: boolean;
|
|
196
|
+
isMain: boolean;
|
|
170
197
|
overrides: Record<string, any>;
|
|
171
198
|
}, {}>;
|
|
172
199
|
export declare const AttendanceCollectionSupervisorView: import("vue").DefineComponent<{
|
|
@@ -176,7 +203,7 @@ export declare const AttendanceCollectionSupervisorView: import("vue").DefineCom
|
|
|
176
203
|
};
|
|
177
204
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
178
205
|
[key: string]: any;
|
|
179
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
206
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
180
207
|
overrides: {
|
|
181
208
|
type: ObjectConstructor;
|
|
182
209
|
default: () => {};
|
|
@@ -185,6 +212,10 @@ export declare const AttendanceCollectionSupervisorView: import("vue").DefineCom
|
|
|
185
212
|
overrides: Record<string, any>;
|
|
186
213
|
}, {}>;
|
|
187
214
|
export declare const AttendanceSingleSupervisorView: import("vue").DefineComponent<{
|
|
215
|
+
state: {
|
|
216
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
217
|
+
default: undefined;
|
|
218
|
+
};
|
|
188
219
|
id: {
|
|
189
220
|
type: StringConstructor;
|
|
190
221
|
default: undefined;
|
|
@@ -203,7 +234,11 @@ export declare const AttendanceSingleSupervisorView: import("vue").DefineCompone
|
|
|
203
234
|
};
|
|
204
235
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
205
236
|
[key: string]: any;
|
|
206
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
237
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
238
|
+
state: {
|
|
239
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
240
|
+
default: undefined;
|
|
241
|
+
};
|
|
207
242
|
id: {
|
|
208
243
|
type: StringConstructor;
|
|
209
244
|
default: undefined;
|
|
@@ -221,8 +256,9 @@ export declare const AttendanceSingleSupervisorView: import("vue").DefineCompone
|
|
|
221
256
|
default: () => {};
|
|
222
257
|
};
|
|
223
258
|
}>>, {
|
|
259
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
224
260
|
id: string;
|
|
225
|
-
isMain: boolean;
|
|
226
261
|
isNew: boolean;
|
|
262
|
+
isMain: boolean;
|
|
227
263
|
overrides: Record<string, any>;
|
|
228
264
|
}, {}>;
|
|
@@ -2,13 +2,13 @@ import { useSingle } from "@neon.id/context";
|
|
|
2
2
|
import { NeonLabel } from "@neon.id/interfaces";
|
|
3
3
|
import { ResourceUtil } from "@neon.id/office";
|
|
4
4
|
import { Query } from "@neon.id/query";
|
|
5
|
-
import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
5
|
+
import { useOperasional, useOperasionalStore } from "@neutron.co.id/operasional-interfaces/office";
|
|
6
6
|
import { computed, h } from "vue";
|
|
7
7
|
export const AttendanceCollectionView = ResourceUtil.createCollection({
|
|
8
8
|
name: "default",
|
|
9
9
|
definition: "neu:personalia:attendance",
|
|
10
10
|
single: {
|
|
11
|
-
peeks: [
|
|
11
|
+
// peeks: ['modal'],
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
export const AttendanceSingleView = ResourceUtil.createSingle({
|
|
@@ -28,8 +28,8 @@ export const AttendanceCollectionStaffView = ResourceUtil.createCollection({
|
|
|
28
28
|
scope: "staff",
|
|
29
29
|
path: "/penugasan/staff-attendances",
|
|
30
30
|
single: {
|
|
31
|
-
view: "staff"
|
|
32
|
-
peeks: [
|
|
31
|
+
view: "staff"
|
|
32
|
+
// peeks: ['page'],
|
|
33
33
|
},
|
|
34
34
|
filters: ["status", "type", "submitStaff", "decideStaff"],
|
|
35
35
|
sorts: ["submittedAt", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
@@ -42,12 +42,13 @@ export const AttendanceCollectionStaffView = ResourceUtil.createCollection({
|
|
|
42
42
|
"status"
|
|
43
43
|
],
|
|
44
44
|
query: () => {
|
|
45
|
-
const
|
|
45
|
+
const state = useOperasionalStore();
|
|
46
|
+
const { staff } = state.getAllStoreValue();
|
|
46
47
|
return Query.define({
|
|
47
48
|
filter: {
|
|
48
49
|
handle: "submitStaffId",
|
|
49
50
|
operator: "eq",
|
|
50
|
-
value: staff
|
|
51
|
+
value: staff?.id
|
|
51
52
|
},
|
|
52
53
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
53
54
|
});
|
|
@@ -72,14 +73,14 @@ export const AttendanceCollectionManagerView = ResourceUtil.createCollection({
|
|
|
72
73
|
scope: "manager",
|
|
73
74
|
path: "/penugasan/manager-attendances",
|
|
74
75
|
single: {
|
|
75
|
-
view: "manager"
|
|
76
|
-
peeks: [
|
|
76
|
+
view: "manager"
|
|
77
|
+
// peeks: ['modal'],
|
|
77
78
|
},
|
|
78
79
|
filters: ["status", "type", "submitStaff", "decideStaff"],
|
|
79
80
|
sorts: ["submittedAt", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
80
81
|
columns: [
|
|
81
|
-
"startedAt",
|
|
82
82
|
"submitStaff",
|
|
83
|
+
"startedAt",
|
|
83
84
|
"type",
|
|
84
85
|
"notes",
|
|
85
86
|
"decideStaff",
|
|
@@ -117,8 +118,8 @@ export const AttendanceCollectionSupervisorView = ResourceUtil.createCollection(
|
|
|
117
118
|
scope: "supervisor",
|
|
118
119
|
path: "/pengawas/attendances",
|
|
119
120
|
single: {
|
|
120
|
-
view: "supervisor"
|
|
121
|
-
peeks: [
|
|
121
|
+
view: "supervisor"
|
|
122
|
+
// peeks: ['modal'],
|
|
122
123
|
},
|
|
123
124
|
filters: ["status", "type", "submitStaff", "decideStaff"],
|
|
124
125
|
sorts: ["submittedAt", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
@@ -172,6 +173,10 @@ function getLabel() {
|
|
|
172
173
|
notApproved: {
|
|
173
174
|
label: "Belum Disetujui",
|
|
174
175
|
color: "warning"
|
|
176
|
+
},
|
|
177
|
+
rejected: {
|
|
178
|
+
label: "Ditolak",
|
|
179
|
+
color: "danger"
|
|
175
180
|
}
|
|
176
181
|
};
|
|
177
182
|
const action = computed(() => actions[values.value.status]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { Resource } from '@neon.id/context';
|
|
2
|
-
export declare const CheckInResource: Resource<import("@neutron.co.id/tempat-models").CheckIn, import("@neon.id/model").Model<"neu:tempat:checkIn", "staff" | "type" | "user" | "branch" | "statusGPS" | "checkInAt" | "building" | "note" | "latitude" | "longitude" | "informationCheckIn" | "student" | "teacher" | "virtualStaff", import("@neutron.co.id/tempat-models").CheckIn>>;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { Resource } from "@neon.id/context";
|
|
2
|
-
import {
|
|
3
|
-
CheckInCollectionExternalView,
|
|
4
|
-
CheckInCollectionView,
|
|
5
|
-
CheckInSingleExternalView,
|
|
6
|
-
CheckInSingleView,
|
|
7
|
-
CheckInCollectionSupervisorView,
|
|
8
|
-
CheckInSingleSupervisorView,
|
|
9
|
-
CheckInCollectionStaffView
|
|
10
|
-
} from "./checkIn.views.mjs";
|
|
11
2
|
import {
|
|
12
3
|
CheckInModel
|
|
13
4
|
} from "@neutron.co.id/tempat-models";
|
|
@@ -15,14 +6,14 @@ export const CheckInResource = Resource.define({
|
|
|
15
6
|
model: CheckInModel,
|
|
16
7
|
collection: {
|
|
17
8
|
title: "Presensi",
|
|
18
|
-
path: "
|
|
19
|
-
component: CheckInCollectionView,
|
|
9
|
+
path: "checkInPresence",
|
|
10
|
+
component: "CheckInCollectionView",
|
|
20
11
|
menu: true,
|
|
21
12
|
displays: ["table"]
|
|
22
13
|
},
|
|
23
14
|
single: {
|
|
24
|
-
path: "
|
|
25
|
-
component: CheckInSingleView
|
|
15
|
+
path: "checkInPresence/:slug",
|
|
16
|
+
component: "CheckInSingleView"
|
|
26
17
|
},
|
|
27
18
|
views: {
|
|
28
19
|
// collection: {
|
|
@@ -38,23 +29,23 @@ export const CheckInResource = Resource.define({
|
|
|
38
29
|
// },
|
|
39
30
|
checkInExternal: {
|
|
40
31
|
path: "/operasional/checkIns",
|
|
41
|
-
component: CheckInCollectionExternalView
|
|
32
|
+
component: "CheckInCollectionExternalView"
|
|
42
33
|
},
|
|
43
34
|
checkInExternalSingle: {
|
|
44
35
|
path: "/operasional/checkIns/:slug",
|
|
45
|
-
component: CheckInSingleExternalView
|
|
36
|
+
component: "CheckInSingleExternalView"
|
|
46
37
|
},
|
|
47
38
|
checkInSupervisor: {
|
|
48
39
|
path: "/pengawas/checkIns",
|
|
49
|
-
component: CheckInCollectionSupervisorView
|
|
40
|
+
component: "CheckInCollectionSupervisorView"
|
|
50
41
|
},
|
|
51
42
|
checkInSupervisorSingle: {
|
|
52
43
|
path: "/pengawas/checkIns/:slug",
|
|
53
|
-
component: CheckInSingleSupervisorView
|
|
44
|
+
component: "CheckInSingleSupervisorView"
|
|
54
45
|
},
|
|
55
46
|
checkInStaff: {
|
|
56
47
|
path: "/staff/checkIns",
|
|
57
|
-
component: CheckInCollectionStaffView
|
|
48
|
+
component: "CheckInCollectionStaffView"
|
|
58
49
|
}
|
|
59
50
|
},
|
|
60
51
|
fragments: CheckInModel.fragments,
|
|
@@ -5,7 +5,7 @@ export declare const CheckInCollectionView: import("vue").DefineComponent<{
|
|
|
5
5
|
};
|
|
6
6
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
7
|
[key: string]: any;
|
|
8
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
overrides: {
|
|
10
10
|
type: ObjectConstructor;
|
|
11
11
|
default: () => {};
|
|
@@ -14,6 +14,10 @@ export declare const CheckInCollectionView: import("vue").DefineComponent<{
|
|
|
14
14
|
overrides: Record<string, any>;
|
|
15
15
|
}, {}>;
|
|
16
16
|
export declare const CheckInSingleView: import("vue").DefineComponent<{
|
|
17
|
+
state: {
|
|
18
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
17
21
|
id: {
|
|
18
22
|
type: StringConstructor;
|
|
19
23
|
default: undefined;
|
|
@@ -32,7 +36,11 @@ export declare const CheckInSingleView: import("vue").DefineComponent<{
|
|
|
32
36
|
};
|
|
33
37
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
38
|
[key: string]: any;
|
|
35
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
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
|
+
};
|
|
36
44
|
id: {
|
|
37
45
|
type: StringConstructor;
|
|
38
46
|
default: undefined;
|
|
@@ -50,9 +58,10 @@ export declare const CheckInSingleView: import("vue").DefineComponent<{
|
|
|
50
58
|
default: () => {};
|
|
51
59
|
};
|
|
52
60
|
}>>, {
|
|
61
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
53
62
|
id: string;
|
|
54
|
-
isMain: boolean;
|
|
55
63
|
isNew: boolean;
|
|
64
|
+
isMain: boolean;
|
|
56
65
|
overrides: Record<string, any>;
|
|
57
66
|
}, {}>;
|
|
58
67
|
export declare const CheckInCollectionExternalView: import("vue").DefineComponent<{
|
|
@@ -62,7 +71,7 @@ export declare const CheckInCollectionExternalView: import("vue").DefineComponen
|
|
|
62
71
|
};
|
|
63
72
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
73
|
[key: string]: any;
|
|
65
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
74
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
75
|
overrides: {
|
|
67
76
|
type: ObjectConstructor;
|
|
68
77
|
default: () => {};
|
|
@@ -71,6 +80,10 @@ export declare const CheckInCollectionExternalView: import("vue").DefineComponen
|
|
|
71
80
|
overrides: Record<string, any>;
|
|
72
81
|
}, {}>;
|
|
73
82
|
export declare const CheckInSingleExternalView: import("vue").DefineComponent<{
|
|
83
|
+
state: {
|
|
84
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
74
87
|
id: {
|
|
75
88
|
type: StringConstructor;
|
|
76
89
|
default: undefined;
|
|
@@ -89,7 +102,11 @@ export declare const CheckInSingleExternalView: import("vue").DefineComponent<{
|
|
|
89
102
|
};
|
|
90
103
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
104
|
[key: string]: any;
|
|
92
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
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
|
+
};
|
|
93
110
|
id: {
|
|
94
111
|
type: StringConstructor;
|
|
95
112
|
default: undefined;
|
|
@@ -107,9 +124,10 @@ export declare const CheckInSingleExternalView: import("vue").DefineComponent<{
|
|
|
107
124
|
default: () => {};
|
|
108
125
|
};
|
|
109
126
|
}>>, {
|
|
127
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
110
128
|
id: string;
|
|
111
|
-
isMain: boolean;
|
|
112
129
|
isNew: boolean;
|
|
130
|
+
isMain: boolean;
|
|
113
131
|
overrides: Record<string, any>;
|
|
114
132
|
}, {}>;
|
|
115
133
|
export declare const CheckInCollectionSupervisorView: import("vue").DefineComponent<{
|
|
@@ -119,7 +137,7 @@ export declare const CheckInCollectionSupervisorView: import("vue").DefineCompon
|
|
|
119
137
|
};
|
|
120
138
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
121
139
|
[key: string]: any;
|
|
122
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
140
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
123
141
|
overrides: {
|
|
124
142
|
type: ObjectConstructor;
|
|
125
143
|
default: () => {};
|
|
@@ -128,6 +146,10 @@ export declare const CheckInCollectionSupervisorView: import("vue").DefineCompon
|
|
|
128
146
|
overrides: Record<string, any>;
|
|
129
147
|
}, {}>;
|
|
130
148
|
export declare const CheckInSingleSupervisorView: import("vue").DefineComponent<{
|
|
149
|
+
state: {
|
|
150
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
151
|
+
default: undefined;
|
|
152
|
+
};
|
|
131
153
|
id: {
|
|
132
154
|
type: StringConstructor;
|
|
133
155
|
default: undefined;
|
|
@@ -146,7 +168,11 @@ export declare const CheckInSingleSupervisorView: import("vue").DefineComponent<
|
|
|
146
168
|
};
|
|
147
169
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
148
170
|
[key: string]: any;
|
|
149
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
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
|
+
};
|
|
150
176
|
id: {
|
|
151
177
|
type: StringConstructor;
|
|
152
178
|
default: undefined;
|
|
@@ -164,9 +190,10 @@ export declare const CheckInSingleSupervisorView: import("vue").DefineComponent<
|
|
|
164
190
|
default: () => {};
|
|
165
191
|
};
|
|
166
192
|
}>>, {
|
|
193
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
167
194
|
id: string;
|
|
168
|
-
isMain: boolean;
|
|
169
195
|
isNew: boolean;
|
|
196
|
+
isMain: boolean;
|
|
170
197
|
overrides: Record<string, any>;
|
|
171
198
|
}, {}>;
|
|
172
199
|
export declare const CheckInCollectionStaffView: import("vue").DefineComponent<{
|
|
@@ -176,7 +203,7 @@ export declare const CheckInCollectionStaffView: import("vue").DefineComponent<{
|
|
|
176
203
|
};
|
|
177
204
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
178
205
|
[key: string]: any;
|
|
179
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
206
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
180
207
|
overrides: {
|
|
181
208
|
type: ObjectConstructor;
|
|
182
209
|
default: () => {};
|