@neutron.co.id/operasional-modules 1.4.8 → 1.4.9-beta.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 +0 -2
- package/build/personalia/module.mjs +6 -2
- package/build/personalia/resources/checkIn/checkIn.views.d.ts +6 -6
- package/build/personalia/resources/index.d.ts +2 -0
- package/build/personalia/resources/index.mjs +2 -0
- package/build/personalia/resources/situation/situation.views.d.ts +9 -9
- package/build/personalia/resources/situationType/situationType.views.d.ts +3 -3
- package/build/personalia/resources/staff/staff.views.d.ts +6 -6
- package/build/personalia/resources/submission/index.d.ts +2 -0
- package/build/personalia/resources/submission/index.mjs +2 -0
- package/build/personalia/resources/submission/submission.model.d.ts +6 -0
- package/build/personalia/resources/submission/submission.model.mjs +71 -0
- package/build/personalia/resources/submission/submission.resource.d.ts +2 -0
- package/build/personalia/resources/submission/submission.resource.mjs +80 -0
- package/build/personalia/resources/submission/submission.views.d.ts +180 -0
- package/build/personalia/resources/submission/submission.views.mjs +245 -0
- package/build/personalia/resources/submissionType/index.d.ts +2 -0
- package/build/personalia/resources/submissionType/index.mjs +2 -0
- package/build/personalia/resources/submissionType/submissionType.model.d.ts +6 -0
- package/build/personalia/resources/submissionType/submissionType.model.mjs +21 -0
- package/build/personalia/resources/submissionType/submissionType.resource.d.ts +2 -0
- package/build/personalia/resources/submissionType/submissionType.resource.mjs +26 -0
- package/build/personalia/resources/submissionType/submissionType.views.d.ts +36 -0
- package/build/personalia/resources/submissionType/submissionType.views.mjs +9 -0
- package/build/personalia/resources/task/task.model.d.ts +1 -1
- package/build/personalia/resources/task/task.resource.d.ts +1 -1
- package/build/personalia/resources/task/task.views.d.ts +9 -9
- package/build/personalia/views.mjs +1 -1
- package/package.json +22 -22
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
TaskResource,
|
|
5
5
|
SituationTypeResource,
|
|
6
6
|
SituationResource,
|
|
7
|
-
CheckInResource
|
|
7
|
+
CheckInResource,
|
|
8
|
+
SubmissionResource,
|
|
9
|
+
SubmissionTypeResource
|
|
8
10
|
} from "./resources/index.mjs";
|
|
9
11
|
export const PersonaliaModule = Module.define({
|
|
10
12
|
definition: "neu:operasional:personalia",
|
|
@@ -16,6 +18,8 @@ export const PersonaliaModule = Module.define({
|
|
|
16
18
|
TaskResource,
|
|
17
19
|
SituationTypeResource,
|
|
18
20
|
SituationResource,
|
|
19
|
-
CheckInResource
|
|
21
|
+
CheckInResource,
|
|
22
|
+
SubmissionResource,
|
|
23
|
+
SubmissionTypeResource
|
|
20
24
|
]
|
|
21
25
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const CheckInCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export declare const CheckInSingleView: import("vue").DefineComponent<{
|
|
5
5
|
id: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -31,12 +31,12 @@ export declare const CheckInSingleView: import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
}>>, {
|
|
33
33
|
id: string;
|
|
34
|
-
isMain: boolean;
|
|
35
34
|
isNew: boolean;
|
|
36
|
-
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
37
37
|
export declare const CheckInCollectionExternalView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
38
|
[key: string]: any;
|
|
39
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
39
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
40
40
|
export declare const CheckInSingleExternalView: import("vue").DefineComponent<{
|
|
41
41
|
id: {
|
|
42
42
|
type: StringConstructor;
|
|
@@ -67,6 +67,6 @@ export declare const CheckInSingleExternalView: import("vue").DefineComponent<{
|
|
|
67
67
|
};
|
|
68
68
|
}>>, {
|
|
69
69
|
id: string;
|
|
70
|
-
isMain: boolean;
|
|
71
70
|
isNew: boolean;
|
|
72
|
-
|
|
71
|
+
isMain: boolean;
|
|
72
|
+
}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SituationCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export declare const SituationSingleView: import("vue").DefineComponent<{
|
|
5
5
|
id: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -31,12 +31,12 @@ export declare const SituationSingleView: import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
}>>, {
|
|
33
33
|
id: string;
|
|
34
|
-
isMain: boolean;
|
|
35
34
|
isNew: boolean;
|
|
36
|
-
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
37
37
|
export declare const SituationCollectionWorkView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
38
|
[key: string]: any;
|
|
39
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
39
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
40
40
|
export declare const SituationSingleWorkView: import("vue").DefineComponent<{
|
|
41
41
|
id: {
|
|
42
42
|
type: StringConstructor;
|
|
@@ -67,12 +67,12 @@ export declare const SituationSingleWorkView: import("vue").DefineComponent<{
|
|
|
67
67
|
};
|
|
68
68
|
}>>, {
|
|
69
69
|
id: string;
|
|
70
|
-
isMain: boolean;
|
|
71
70
|
isNew: boolean;
|
|
72
|
-
|
|
71
|
+
isMain: boolean;
|
|
72
|
+
}, {}>;
|
|
73
73
|
export declare const SituationCollectionSupportiveView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
74
74
|
[key: string]: any;
|
|
75
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
75
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
76
76
|
export declare const SituationSingleSupportiveView: import("vue").DefineComponent<{
|
|
77
77
|
id: {
|
|
78
78
|
type: StringConstructor;
|
|
@@ -103,6 +103,6 @@ export declare const SituationSingleSupportiveView: import("vue").DefineComponen
|
|
|
103
103
|
};
|
|
104
104
|
}>>, {
|
|
105
105
|
id: string;
|
|
106
|
-
isMain: boolean;
|
|
107
106
|
isNew: boolean;
|
|
108
|
-
|
|
107
|
+
isMain: boolean;
|
|
108
|
+
}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SituationTypeCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export declare const SituationTypeSingleView: import("vue").DefineComponent<{
|
|
5
5
|
id: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -31,6 +31,6 @@ export declare const SituationTypeSingleView: import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
}>>, {
|
|
33
33
|
id: string;
|
|
34
|
-
isMain: boolean;
|
|
35
34
|
isNew: boolean;
|
|
36
|
-
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const StaffCollectionDefaultView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export declare const StaffSingleDefaultView: import("vue").DefineComponent<{
|
|
5
5
|
id: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -31,12 +31,12 @@ export declare const StaffSingleDefaultView: import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
}>>, {
|
|
33
33
|
id: string;
|
|
34
|
-
isMain: boolean;
|
|
35
34
|
isNew: boolean;
|
|
36
|
-
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
37
37
|
export declare const StaffCollectionOperasionalView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
38
|
[key: string]: any;
|
|
39
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
39
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
40
40
|
export declare const StaffSingleOperasionalView: import("vue").DefineComponent<{
|
|
41
41
|
id: {
|
|
42
42
|
type: StringConstructor;
|
|
@@ -67,6 +67,6 @@ export declare const StaffSingleOperasionalView: import("vue").DefineComponent<{
|
|
|
67
67
|
};
|
|
68
68
|
}>>, {
|
|
69
69
|
id: string;
|
|
70
|
-
isMain: boolean;
|
|
71
70
|
isNew: boolean;
|
|
72
|
-
|
|
71
|
+
isMain: boolean;
|
|
72
|
+
}, {}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SubmissionModel: import("@neon.id/model").Model<"neu:personalia:submission", "type" | "status" | "title" | "branches" | "specifications" | "raisedAt" | "submissionStaffs" | "raiseStaffs" | "decideStaffs" | "followUpStaffs" | "nominal" | "preparedAt" | "processedAt" | "agreedStaffs" | "delayStaffs" | "document">;
|
|
2
|
+
export type TSubmissionModel = typeof SubmissionModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.Submission;
|
|
5
|
+
detail: Schema.Submission;
|
|
6
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const SubmissionModel = models.SubmissionModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
status: 1,
|
|
8
|
+
type: {
|
|
9
|
+
id: 1,
|
|
10
|
+
display: 1,
|
|
11
|
+
name: 1
|
|
12
|
+
},
|
|
13
|
+
specifications: 1,
|
|
14
|
+
title: 1,
|
|
15
|
+
raisedAt: 1,
|
|
16
|
+
branches: {
|
|
17
|
+
id: 1,
|
|
18
|
+
display: 1,
|
|
19
|
+
name: 1
|
|
20
|
+
},
|
|
21
|
+
submissionStaffs: {
|
|
22
|
+
id: 1,
|
|
23
|
+
display: 1,
|
|
24
|
+
name: 1
|
|
25
|
+
},
|
|
26
|
+
raiseStaffs: {
|
|
27
|
+
id: 1,
|
|
28
|
+
display: 1,
|
|
29
|
+
name: 1
|
|
30
|
+
},
|
|
31
|
+
decideStaffs: {
|
|
32
|
+
id: 1,
|
|
33
|
+
display: 1,
|
|
34
|
+
name: 1
|
|
35
|
+
},
|
|
36
|
+
followUpStaffs: {
|
|
37
|
+
id: 1,
|
|
38
|
+
display: 1,
|
|
39
|
+
name: 1
|
|
40
|
+
},
|
|
41
|
+
nominal: 1,
|
|
42
|
+
agreedStaffs: {
|
|
43
|
+
id: 1,
|
|
44
|
+
display: 1,
|
|
45
|
+
name: 1
|
|
46
|
+
},
|
|
47
|
+
delayStaffs: {
|
|
48
|
+
id: 1,
|
|
49
|
+
display: 1,
|
|
50
|
+
name: 1
|
|
51
|
+
},
|
|
52
|
+
preparedAt: 1,
|
|
53
|
+
processedAt: 1,
|
|
54
|
+
document: 1,
|
|
55
|
+
updatedAt: 1
|
|
56
|
+
};
|
|
57
|
+
const detail = {
|
|
58
|
+
...item,
|
|
59
|
+
branchIds: 1,
|
|
60
|
+
submissionStaffIds: 1,
|
|
61
|
+
raiseStaffIds: 1,
|
|
62
|
+
decideStaffIds: 1,
|
|
63
|
+
followUpStaffIds: 1,
|
|
64
|
+
agreedStaffIds: 1,
|
|
65
|
+
delayStaffIds: 1,
|
|
66
|
+
submissionTypeIds: 1
|
|
67
|
+
};
|
|
68
|
+
export const fragments = {
|
|
69
|
+
item,
|
|
70
|
+
detail
|
|
71
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
export declare const SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "status" | "title" | "branches" | "specifications" | "raisedAt" | "submissionStaffs" | "raiseStaffs" | "decideStaffs" | "followUpStaffs" | "nominal" | "preparedAt" | "processedAt" | "agreedStaffs" | "delayStaffs" | "document">>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
SubmissionCollectionView,
|
|
4
|
+
SubmissionSingleView,
|
|
5
|
+
SubmissionCollectionStaffView,
|
|
6
|
+
SubmissionSingleStaffView,
|
|
7
|
+
SubmissionCollectionFollowUpView,
|
|
8
|
+
SubmissionSingleFollowUpView,
|
|
9
|
+
SubmissionCollectionAuditView,
|
|
10
|
+
SubmissionSingleAuditView,
|
|
11
|
+
SubmissionCollectionDecisionView,
|
|
12
|
+
SubmissionSingleDecisionView
|
|
13
|
+
} from "./submission.views.mjs";
|
|
14
|
+
import {
|
|
15
|
+
fragments,
|
|
16
|
+
SubmissionModel
|
|
17
|
+
} from "./submission.model.mjs";
|
|
18
|
+
const formatRupiah = (money) => {
|
|
19
|
+
return new Intl.NumberFormat("id-ID", {
|
|
20
|
+
style: "currency",
|
|
21
|
+
currency: "IDR",
|
|
22
|
+
minimumFractionDigits: 0
|
|
23
|
+
}).format(money);
|
|
24
|
+
};
|
|
25
|
+
export const SubmissionResource = Resource.define({
|
|
26
|
+
model: SubmissionModel,
|
|
27
|
+
collection: {
|
|
28
|
+
title: "Pengajuan",
|
|
29
|
+
path: "submissions",
|
|
30
|
+
component: SubmissionCollectionView,
|
|
31
|
+
menu: true,
|
|
32
|
+
displays: ["table"]
|
|
33
|
+
},
|
|
34
|
+
single: {
|
|
35
|
+
path: "submissions/:slug",
|
|
36
|
+
component: SubmissionSingleView
|
|
37
|
+
},
|
|
38
|
+
views: {
|
|
39
|
+
// Karyawan Pengajuan
|
|
40
|
+
submissionStaff: {
|
|
41
|
+
path: "/pengajuan/staff-submission",
|
|
42
|
+
component: SubmissionCollectionStaffView
|
|
43
|
+
},
|
|
44
|
+
submissionStaffSingle: {
|
|
45
|
+
path: "/pengajuan/staff-submission/:slug",
|
|
46
|
+
component: SubmissionSingleStaffView
|
|
47
|
+
},
|
|
48
|
+
// Karyawan Tidak Lanjut
|
|
49
|
+
submissionFollowUp: {
|
|
50
|
+
path: "/pengajuan/follow-up-submission",
|
|
51
|
+
component: SubmissionCollectionFollowUpView
|
|
52
|
+
},
|
|
53
|
+
submissionFollowUpSingle: {
|
|
54
|
+
path: "/pengajuan/follow-up-submission/:slug",
|
|
55
|
+
component: SubmissionSingleFollowUpView
|
|
56
|
+
},
|
|
57
|
+
// Pengawas Pengajuan
|
|
58
|
+
submissionAudit: {
|
|
59
|
+
path: "/pengajuan/audit-submission",
|
|
60
|
+
component: SubmissionCollectionAuditView
|
|
61
|
+
},
|
|
62
|
+
submissionAuditSingle: {
|
|
63
|
+
path: "/pengajuan/audit-submission/:slug",
|
|
64
|
+
component: SubmissionSingleAuditView
|
|
65
|
+
},
|
|
66
|
+
// Pengambil Keputusan
|
|
67
|
+
submissionDecision: {
|
|
68
|
+
path: "/pengajuan/decision-submission",
|
|
69
|
+
component: SubmissionCollectionDecisionView
|
|
70
|
+
},
|
|
71
|
+
submissionDecisionSingle: {
|
|
72
|
+
path: "/pengajuan/decision-submission/:slug",
|
|
73
|
+
component: SubmissionSingleDecisionView
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
fragments,
|
|
77
|
+
renders: {
|
|
78
|
+
nominal: (item) => `${item.nominal ? formatRupiah(item.nominal) : "-"}`
|
|
79
|
+
}
|
|
80
|
+
});
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
export declare const SubmissionCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export declare const SubmissionSingleView: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: null;
|
|
8
|
+
};
|
|
9
|
+
isNew: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: null;
|
|
12
|
+
};
|
|
13
|
+
isMain: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
id: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
isNew: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
isMain: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
id: string;
|
|
34
|
+
isNew: boolean;
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export declare const SubmissionCollectionStaffView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
40
|
+
export declare const SubmissionSingleStaffView: import("vue").DefineComponent<{
|
|
41
|
+
id: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
45
|
+
isNew: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: null;
|
|
48
|
+
};
|
|
49
|
+
isMain: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
id: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
isNew: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
isMain: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>>, {
|
|
69
|
+
id: string;
|
|
70
|
+
isNew: boolean;
|
|
71
|
+
isMain: boolean;
|
|
72
|
+
}, {}>;
|
|
73
|
+
export declare const SubmissionCollectionFollowUpView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
76
|
+
export declare const SubmissionSingleFollowUpView: import("vue").DefineComponent<{
|
|
77
|
+
id: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: null;
|
|
80
|
+
};
|
|
81
|
+
isNew: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: null;
|
|
84
|
+
};
|
|
85
|
+
isMain: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
id: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: null;
|
|
95
|
+
};
|
|
96
|
+
isNew: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: null;
|
|
99
|
+
};
|
|
100
|
+
isMain: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
}>>, {
|
|
105
|
+
id: string;
|
|
106
|
+
isNew: boolean;
|
|
107
|
+
isMain: boolean;
|
|
108
|
+
}, {}>;
|
|
109
|
+
export declare const SubmissionCollectionAuditView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
112
|
+
export declare const SubmissionSingleAuditView: import("vue").DefineComponent<{
|
|
113
|
+
id: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: null;
|
|
116
|
+
};
|
|
117
|
+
isNew: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: null;
|
|
120
|
+
};
|
|
121
|
+
isMain: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
128
|
+
id: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: null;
|
|
131
|
+
};
|
|
132
|
+
isNew: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: null;
|
|
135
|
+
};
|
|
136
|
+
isMain: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
}>>, {
|
|
141
|
+
id: string;
|
|
142
|
+
isNew: boolean;
|
|
143
|
+
isMain: boolean;
|
|
144
|
+
}, {}>;
|
|
145
|
+
export declare const SubmissionCollectionDecisionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
146
|
+
[key: string]: any;
|
|
147
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
148
|
+
export declare const SubmissionSingleDecisionView: import("vue").DefineComponent<{
|
|
149
|
+
id: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
default: null;
|
|
152
|
+
};
|
|
153
|
+
isNew: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: null;
|
|
156
|
+
};
|
|
157
|
+
isMain: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
162
|
+
[key: string]: any;
|
|
163
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
164
|
+
id: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: null;
|
|
167
|
+
};
|
|
168
|
+
isNew: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: null;
|
|
171
|
+
};
|
|
172
|
+
isMain: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
}>>, {
|
|
177
|
+
id: string;
|
|
178
|
+
isNew: boolean;
|
|
179
|
+
isMain: boolean;
|
|
180
|
+
}, {}>;
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import { useSingle } from "@neon.id/context";
|
|
3
|
+
import { NeonButton } from "@neon.id/interfaces";
|
|
4
|
+
import { h } from "vue";
|
|
5
|
+
import { Query } from "@neon.id/query";
|
|
6
|
+
export const SubmissionCollectionView = ResourceUtil.createCollection({
|
|
7
|
+
name: "default",
|
|
8
|
+
definition: "neu:personalia:submission"
|
|
9
|
+
});
|
|
10
|
+
export const SubmissionSingleView = ResourceUtil.createSingle({
|
|
11
|
+
name: "default",
|
|
12
|
+
definition: "neu:personalia:submission",
|
|
13
|
+
slots: {
|
|
14
|
+
actions: {
|
|
15
|
+
setup() {
|
|
16
|
+
const { values, isLoading, syncOne } = useSingle();
|
|
17
|
+
return () => h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
18
|
+
h(NeonButton, {
|
|
19
|
+
iconLeft: values.value.status == "prepared" ? "pen-line" : values.value.status == "raised" ? "arrow-up-from-line" : values.value.status == "processed" ? "spinner" : values.value.status == "delay" ? "circle-stop" : values.value.status == "approved" ? "list-check" : values.value.status == "monitored" ? "binoculars" : values.value.status == "discontinued" ? "ban" : values.value.status == "resolved" ? "file-check" : "",
|
|
20
|
+
label: values.value.status == "prepared" ? "Disiapkan" : values.value.status == "raised" ? "Dinaikkan" : values.value.status == "processed" ? "Diproses" : values.value.status == "delay" ? "Ditunda" : values.value.status == "approved" ? "Disetujui" : values.value.status == "monitored" ? "Dipantau" : values.value.status == "discontinued" ? "Dihentikan" : values.value.status == "resolved" ? "Diselesaikan" : "",
|
|
21
|
+
size: "sm",
|
|
22
|
+
color: values.value.status == "prepared" ? "base" : values.value.status == "raised" ? "dark" : values.value.status == "processed" ? "warning" : values.value.status == "delay" ? "danger" : values.value.status == "approved" ? "success" : values.value.status == "monitored" ? "info" : values.value.status == "discontinued" ? "danger" : values.value.status == "resolved" ? "success" : "base",
|
|
23
|
+
isRounded: true,
|
|
24
|
+
isLoading: isLoading.value,
|
|
25
|
+
onClick: syncOne
|
|
26
|
+
})
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
33
|
+
name: "staff",
|
|
34
|
+
definition: "neu:personalia:submission",
|
|
35
|
+
title: "Pengajuan",
|
|
36
|
+
icon: "clipboard-list-check",
|
|
37
|
+
scope: "staff",
|
|
38
|
+
path: "/pengajuan/staff-submission",
|
|
39
|
+
single: {
|
|
40
|
+
view: "staff",
|
|
41
|
+
peeks: ["side"]
|
|
42
|
+
},
|
|
43
|
+
columns: [
|
|
44
|
+
"status",
|
|
45
|
+
"type",
|
|
46
|
+
"specifications",
|
|
47
|
+
"title",
|
|
48
|
+
"raisedAt",
|
|
49
|
+
"branches",
|
|
50
|
+
"submissionStaffs",
|
|
51
|
+
"raiseStaffs",
|
|
52
|
+
"decideStaffs",
|
|
53
|
+
"followUpStaffs",
|
|
54
|
+
"nominal"
|
|
55
|
+
],
|
|
56
|
+
filters: ["status", "type", "specifications", "branches"],
|
|
57
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"]
|
|
58
|
+
});
|
|
59
|
+
export const SubmissionSingleStaffView = ResourceUtil.createSingle({
|
|
60
|
+
name: "staff",
|
|
61
|
+
definition: "neu:personalia:submission",
|
|
62
|
+
title: "Pengajuan",
|
|
63
|
+
slots: {
|
|
64
|
+
default: "staff",
|
|
65
|
+
actions: {
|
|
66
|
+
setup() {
|
|
67
|
+
const { values, isLoading, syncOne } = useSingle();
|
|
68
|
+
return () => h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
69
|
+
h(NeonButton, {
|
|
70
|
+
iconLeft: values.value.status == "prepared" ? "pen-line" : values.value.status == "raised" ? "arrow-up-from-line" : values.value.status == "processed" ? "spinner" : values.value.status == "delay" ? "circle-stop" : values.value.status == "approved" ? "list-check" : values.value.status == "monitored" ? "binoculars" : values.value.status == "discontinued" ? "ban" : values.value.status == "resolved" ? "file-check" : "",
|
|
71
|
+
label: values.value.status == "prepared" ? "Disiapkan" : values.value.status == "raised" ? "Dinaikkan" : values.value.status == "processed" ? "Diproses" : values.value.status == "delay" ? "Ditunda" : values.value.status == "approved" ? "Disetujui" : values.value.status == "monitored" ? "Dipantau" : values.value.status == "discontinued" ? "Dihentikan" : values.value.status == "resolved" ? "Diselesaikan" : "",
|
|
72
|
+
size: "sm",
|
|
73
|
+
color: values.value.status == "prepared" ? "base" : values.value.status == "raised" ? "dark" : values.value.status == "processed" ? "warning" : values.value.status == "delay" ? "danger" : values.value.status == "approved" ? "success" : values.value.status == "monitored" ? "info" : values.value.status == "discontinued" ? "danger" : values.value.status == "resolved" ? "success" : "base",
|
|
74
|
+
isRounded: true,
|
|
75
|
+
isLoading: isLoading.value,
|
|
76
|
+
onClick: syncOne
|
|
77
|
+
})
|
|
78
|
+
]);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
84
|
+
name: "follow-up",
|
|
85
|
+
definition: "neu:personalia:submission",
|
|
86
|
+
title: "Pengajuan",
|
|
87
|
+
icon: "toolbox",
|
|
88
|
+
scope: "follow-up",
|
|
89
|
+
path: "/pengajuan/follow-up-submission",
|
|
90
|
+
single: {
|
|
91
|
+
view: "follow-up",
|
|
92
|
+
peeks: ["side"]
|
|
93
|
+
},
|
|
94
|
+
columns: [
|
|
95
|
+
"status",
|
|
96
|
+
"type",
|
|
97
|
+
"specifications",
|
|
98
|
+
"title",
|
|
99
|
+
"updatedAt",
|
|
100
|
+
"branches",
|
|
101
|
+
"submissionStaffs",
|
|
102
|
+
"raiseStaffs",
|
|
103
|
+
"decideStaffs",
|
|
104
|
+
"followUpStaffs",
|
|
105
|
+
"nominal"
|
|
106
|
+
],
|
|
107
|
+
filters: ["status", "type", "specifications", "branches"],
|
|
108
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
109
|
+
query: () => {
|
|
110
|
+
return Query.define({
|
|
111
|
+
filter: {
|
|
112
|
+
handle: "status",
|
|
113
|
+
operator: "in",
|
|
114
|
+
value: ["approved", "monitored", "discontinued", "resolved"]
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
excludes: ["create"]
|
|
119
|
+
});
|
|
120
|
+
export const SubmissionSingleFollowUpView = ResourceUtil.createSingle({
|
|
121
|
+
name: "follow-up",
|
|
122
|
+
definition: "neu:personalia:submission",
|
|
123
|
+
title: "Tindak Lanjut",
|
|
124
|
+
slots: {
|
|
125
|
+
default: "follow-up",
|
|
126
|
+
actions: {
|
|
127
|
+
setup() {
|
|
128
|
+
const { values, isLoading, syncOne } = useSingle();
|
|
129
|
+
return () => h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
130
|
+
h(NeonButton, {
|
|
131
|
+
iconLeft: values.value.status == "prepared" ? "pen-line" : values.value.status == "raised" ? "arrow-up-from-line" : values.value.status == "processed" ? "spinner" : values.value.status == "delay" ? "circle-stop" : values.value.status == "approved" ? "list-check" : values.value.status == "monitored" ? "binoculars" : values.value.status == "discontinued" ? "ban" : values.value.status == "resolved" ? "file-check" : "",
|
|
132
|
+
label: values.value.status == "prepared" ? "Disiapkan" : values.value.status == "raised" ? "Dinaikkan" : values.value.status == "processed" ? "Diproses" : values.value.status == "delay" ? "Ditunda" : values.value.status == "approved" ? "Disetujui" : values.value.status == "monitored" ? "Dipantau" : values.value.status == "discontinued" ? "Dihentikan" : values.value.status == "resolved" ? "Diselesaikan" : "",
|
|
133
|
+
size: "sm",
|
|
134
|
+
color: values.value.status == "prepared" ? "base" : values.value.status == "raised" ? "dark" : values.value.status == "processed" ? "warning" : values.value.status == "delay" ? "danger" : values.value.status == "approved" ? "success" : values.value.status == "monitored" ? "info" : values.value.status == "discontinued" ? "danger" : values.value.status == "resolved" ? "success" : "base",
|
|
135
|
+
isRounded: true,
|
|
136
|
+
isLoading: isLoading.value,
|
|
137
|
+
onClick: syncOne
|
|
138
|
+
})
|
|
139
|
+
]);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
145
|
+
name: "audit",
|
|
146
|
+
definition: "neu:personalia:submission",
|
|
147
|
+
title: "Pengajuan",
|
|
148
|
+
icon: "clipboard-list-check",
|
|
149
|
+
scope: "audit",
|
|
150
|
+
path: "/pengajuan/audit-submission",
|
|
151
|
+
single: {
|
|
152
|
+
view: "audit",
|
|
153
|
+
peeks: ["side"]
|
|
154
|
+
},
|
|
155
|
+
columns: [
|
|
156
|
+
"status",
|
|
157
|
+
"type",
|
|
158
|
+
"specifications",
|
|
159
|
+
"title",
|
|
160
|
+
"raisedAt",
|
|
161
|
+
"branches",
|
|
162
|
+
"submissionStaffs",
|
|
163
|
+
"raiseStaffs",
|
|
164
|
+
"decideStaffs",
|
|
165
|
+
"followUpStaffs",
|
|
166
|
+
"nominal"
|
|
167
|
+
],
|
|
168
|
+
filters: ["status", "type", "specifications", "branches"],
|
|
169
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"]
|
|
170
|
+
});
|
|
171
|
+
export const SubmissionSingleAuditView = ResourceUtil.createSingle({
|
|
172
|
+
name: "audit",
|
|
173
|
+
definition: "neu:personalia:submission",
|
|
174
|
+
title: "Pengajuan",
|
|
175
|
+
slots: {
|
|
176
|
+
default: "audit",
|
|
177
|
+
actions: {
|
|
178
|
+
setup() {
|
|
179
|
+
const { values, isLoading, syncOne } = useSingle();
|
|
180
|
+
return () => h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
181
|
+
h(NeonButton, {
|
|
182
|
+
iconLeft: values.value.status == "prepared" ? "pen-line" : values.value.status == "raised" ? "arrow-up-from-line" : values.value.status == "processed" ? "spinner" : values.value.status == "delay" ? "circle-stop" : values.value.status == "approved" ? "list-check" : values.value.status == "monitored" ? "binoculars" : values.value.status == "discontinued" ? "ban" : values.value.status == "resolved" ? "file-check" : "",
|
|
183
|
+
label: values.value.status == "prepared" ? "Disiapkan" : values.value.status == "raised" ? "Dinaikkan" : values.value.status == "processed" ? "Diproses" : values.value.status == "delay" ? "Ditunda" : values.value.status == "approved" ? "Disetujui" : values.value.status == "monitored" ? "Dipantau" : values.value.status == "discontinued" ? "Dihentikan" : values.value.status == "resolved" ? "Diselesaikan" : "",
|
|
184
|
+
size: "sm",
|
|
185
|
+
color: values.value.status == "prepared" ? "base" : values.value.status == "raised" ? "dark" : values.value.status == "processed" ? "warning" : values.value.status == "delay" ? "danger" : values.value.status == "approved" ? "success" : values.value.status == "monitored" ? "info" : values.value.status == "discontinued" ? "danger" : values.value.status == "resolved" ? "success" : "base",
|
|
186
|
+
isRounded: true,
|
|
187
|
+
isLoading: isLoading.value,
|
|
188
|
+
onClick: syncOne
|
|
189
|
+
})
|
|
190
|
+
]);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
196
|
+
name: "decision",
|
|
197
|
+
definition: "neu:personalia:submission",
|
|
198
|
+
title: "Pengajuan",
|
|
199
|
+
icon: "clipboard-list-check",
|
|
200
|
+
scope: "decision",
|
|
201
|
+
path: "/pengajuan/decision-submission",
|
|
202
|
+
single: {
|
|
203
|
+
view: "decision",
|
|
204
|
+
peeks: ["side"]
|
|
205
|
+
},
|
|
206
|
+
columns: [
|
|
207
|
+
"status",
|
|
208
|
+
"type",
|
|
209
|
+
"specifications",
|
|
210
|
+
"title",
|
|
211
|
+
"raisedAt",
|
|
212
|
+
"branches",
|
|
213
|
+
"submissionStaffs",
|
|
214
|
+
"raiseStaffs",
|
|
215
|
+
"decideStaffs",
|
|
216
|
+
"followUpStaffs",
|
|
217
|
+
"nominal"
|
|
218
|
+
],
|
|
219
|
+
filters: ["status", "type", "specifications", "branches"],
|
|
220
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"]
|
|
221
|
+
});
|
|
222
|
+
export const SubmissionSingleDecisionView = ResourceUtil.createSingle({
|
|
223
|
+
name: "decision",
|
|
224
|
+
definition: "neu:personalia:submission",
|
|
225
|
+
title: "Pengajuan",
|
|
226
|
+
slots: {
|
|
227
|
+
default: "decision",
|
|
228
|
+
actions: {
|
|
229
|
+
setup() {
|
|
230
|
+
const { values, isLoading, syncOne } = useSingle();
|
|
231
|
+
return () => h("div", { class: "px-1 pt-0.5 pb-1" }, [
|
|
232
|
+
h(NeonButton, {
|
|
233
|
+
iconLeft: values.value.status == "prepared" ? "pen-line" : values.value.status == "raised" ? "arrow-up-from-line" : values.value.status == "processed" ? "spinner" : values.value.status == "delay" ? "circle-stop" : values.value.status == "approved" ? "list-check" : values.value.status == "monitored" ? "binoculars" : values.value.status == "discontinued" ? "ban" : values.value.status == "resolved" ? "file-check" : "",
|
|
234
|
+
label: values.value.status == "prepared" ? "Disiapkan" : values.value.status == "raised" ? "Dinaikkan" : values.value.status == "processed" ? "Diproses" : values.value.status == "delay" ? "Ditunda" : values.value.status == "approved" ? "Disetujui" : values.value.status == "monitored" ? "Dipantau" : values.value.status == "discontinued" ? "Dihentikan" : values.value.status == "resolved" ? "Diselesaikan" : "",
|
|
235
|
+
size: "sm",
|
|
236
|
+
color: values.value.status == "prepared" ? "base" : values.value.status == "raised" ? "dark" : values.value.status == "processed" ? "warning" : values.value.status == "delay" ? "danger" : values.value.status == "approved" ? "success" : values.value.status == "monitored" ? "info" : values.value.status == "discontinued" ? "danger" : values.value.status == "resolved" ? "success" : "base",
|
|
237
|
+
isRounded: true,
|
|
238
|
+
isLoading: isLoading.value,
|
|
239
|
+
onClick: syncOne
|
|
240
|
+
})
|
|
241
|
+
]);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SubmissionTypeModel: import("@neon.id/model").Model<"neu:personalia:submissionType", "name" | "branches">;
|
|
2
|
+
export type TSubmissionTypeModel = typeof SubmissionTypeModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.SubmissionType;
|
|
5
|
+
detail: Schema.SubmissionType;
|
|
6
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const SubmissionTypeModel = models.SubmissionTypeModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
name: 1,
|
|
8
|
+
branches: {
|
|
9
|
+
id: 1,
|
|
10
|
+
display: 1,
|
|
11
|
+
name: 1
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const detail = {
|
|
15
|
+
...item,
|
|
16
|
+
branchIds: 1
|
|
17
|
+
};
|
|
18
|
+
export const fragments = {
|
|
19
|
+
item,
|
|
20
|
+
detail
|
|
21
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
SubmissionTypeCollectionView,
|
|
4
|
+
SubmissionTypeSingleView
|
|
5
|
+
} from "./submissionType.views.mjs";
|
|
6
|
+
import {
|
|
7
|
+
fragments,
|
|
8
|
+
SubmissionTypeModel
|
|
9
|
+
} from "./submissionType.model.mjs";
|
|
10
|
+
export const SubmissionTypeResource = Resource.define({
|
|
11
|
+
model: SubmissionTypeModel,
|
|
12
|
+
collection: {
|
|
13
|
+
title: "Tipe Pengajuan",
|
|
14
|
+
path: "submissionTypes",
|
|
15
|
+
component: SubmissionTypeCollectionView,
|
|
16
|
+
menu: true,
|
|
17
|
+
displays: ["table"]
|
|
18
|
+
},
|
|
19
|
+
single: {
|
|
20
|
+
path: "submissionTypes/:slug",
|
|
21
|
+
component: SubmissionTypeSingleView
|
|
22
|
+
},
|
|
23
|
+
views: {},
|
|
24
|
+
fragments,
|
|
25
|
+
renders: {}
|
|
26
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const SubmissionTypeCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
export declare const SubmissionTypeSingleView: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: null;
|
|
8
|
+
};
|
|
9
|
+
isNew: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: null;
|
|
12
|
+
};
|
|
13
|
+
isMain: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
id: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
isNew: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
isMain: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
id: string;
|
|
34
|
+
isNew: boolean;
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const SubmissionTypeCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:submissionType"
|
|
5
|
+
});
|
|
6
|
+
export const SubmissionTypeSingleView = ResourceUtil.createSingle({
|
|
7
|
+
name: "default",
|
|
8
|
+
definition: "neu:personalia:submissionType"
|
|
9
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "user" | "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">;
|
|
1
|
+
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "user" | "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "images">;
|
|
2
2
|
export type TTaskModel = typeof TaskModel;
|
|
3
3
|
export declare const fragments: {
|
|
4
4
|
item: Schema.Task;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
|
-
export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "user" | "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">>;
|
|
2
|
+
export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "user" | "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd" | "images">>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const TaskCollectionView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export declare const TaskSingleView: import("vue").DefineComponent<{
|
|
5
5
|
id: {
|
|
6
6
|
type: StringConstructor;
|
|
@@ -31,12 +31,12 @@ export declare const TaskSingleView: import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
}>>, {
|
|
33
33
|
id: string;
|
|
34
|
-
isMain: boolean;
|
|
35
34
|
isNew: boolean;
|
|
36
|
-
|
|
35
|
+
isMain: boolean;
|
|
36
|
+
}, {}>;
|
|
37
37
|
export declare const TaskCollectionPlanView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
38
|
[key: string]: any;
|
|
39
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
39
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
40
40
|
export declare const TaskSinglePlanView: import("vue").DefineComponent<{
|
|
41
41
|
id: {
|
|
42
42
|
type: StringConstructor;
|
|
@@ -67,12 +67,12 @@ export declare const TaskSinglePlanView: import("vue").DefineComponent<{
|
|
|
67
67
|
};
|
|
68
68
|
}>>, {
|
|
69
69
|
id: string;
|
|
70
|
-
isMain: boolean;
|
|
71
70
|
isNew: boolean;
|
|
72
|
-
|
|
71
|
+
isMain: boolean;
|
|
72
|
+
}, {}>;
|
|
73
73
|
export declare const TaskCollectionWorkView: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
74
74
|
[key: string]: any;
|
|
75
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
75
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
76
76
|
export declare const TaskSingleWorkView: import("vue").DefineComponent<{
|
|
77
77
|
id: {
|
|
78
78
|
type: StringConstructor;
|
|
@@ -103,6 +103,6 @@ export declare const TaskSingleWorkView: import("vue").DefineComponent<{
|
|
|
103
103
|
};
|
|
104
104
|
}>>, {
|
|
105
105
|
id: string;
|
|
106
|
-
isMain: boolean;
|
|
107
106
|
isNew: boolean;
|
|
108
|
-
|
|
107
|
+
isMain: boolean;
|
|
108
|
+
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ["CheckInCollectionExternalView","CheckInCollectionView","CheckInSingleExternalView","CheckInSingleView","StaffCollectionDefaultView","StaffCollectionOperasionalView","StaffSingleDefaultView","StaffSingleOperasionalView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView"]
|
|
1
|
+
export default ["CheckInCollectionExternalView","CheckInCollectionView","CheckInSingleExternalView","CheckInSingleView","StaffCollectionDefaultView","StaffCollectionOperasionalView","StaffSingleDefaultView","StaffSingleOperasionalView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView","SubmissionCollectionAuditView","SubmissionCollectionDecisionView","SubmissionCollectionFollowUpView","SubmissionCollectionStaffView","SubmissionCollectionView","SubmissionSingleAuditView","SubmissionSingleDecisionView","SubmissionSingleFollowUpView","SubmissionSingleStaffView","SubmissionSingleView","SubmissionTypeCollectionView","SubmissionTypeSingleView"]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Modules of Neutron.",
|
|
3
|
+
"version": "1.4.9-beta.1",
|
|
4
|
+
"description": "Modules of Neutron Operasional.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Bian Pratama <bian@prata.ma>"
|
|
@@ -40,36 +40,36 @@
|
|
|
40
40
|
"lint": "eslint src/ --ext .js,.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@neon.id/context": "0.
|
|
44
|
-
"@neon.id/office": "0.
|
|
43
|
+
"@neon.id/context": "0.48.0",
|
|
44
|
+
"@neon.id/office": "0.39.0",
|
|
45
45
|
"@neutron.co.id/operasional-interfaces": "1.4.6",
|
|
46
|
-
"@neutron.co.id/personalia-models": "1.4.
|
|
47
|
-
"@nuxt/kit": "3.
|
|
46
|
+
"@neutron.co.id/personalia-models": "1.4.5-beta.1",
|
|
47
|
+
"@nuxt/kit": "3.4.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@graphql-codegen/cli": "3.
|
|
51
|
-
"@graphql-codegen/client-preset": "
|
|
52
|
-
"@neon.id/types": "1.
|
|
53
|
-
"@types/eslint": "8.
|
|
54
|
-
"@types/node": "
|
|
50
|
+
"@graphql-codegen/cli": "3.3.1",
|
|
51
|
+
"@graphql-codegen/client-preset": "3.0.1",
|
|
52
|
+
"@neon.id/types": "1.44.0",
|
|
53
|
+
"@types/eslint": "8.37.0",
|
|
54
|
+
"@types/node": "20.1.3",
|
|
55
55
|
"@types/prettier": "2.7.2",
|
|
56
56
|
"@vortex.so/eslint-plugin": "0.7.0",
|
|
57
|
-
"eslint": "8.
|
|
58
|
-
"prettier": "2.8.
|
|
59
|
-
"typescript": "5.0.
|
|
60
|
-
"unbuild": "1.1
|
|
61
|
-
"vite": "4.
|
|
62
|
-
"vitest": "0.
|
|
57
|
+
"eslint": "8.40.0",
|
|
58
|
+
"prettier": "2.8.8",
|
|
59
|
+
"typescript": "5.0.4",
|
|
60
|
+
"unbuild": "1.2.1",
|
|
61
|
+
"vite": "4.3.5",
|
|
62
|
+
"vitest": "0.31.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@neon.id/context": "^0.
|
|
66
|
-
"@neon.id/office": "^0.
|
|
65
|
+
"@neon.id/context": "^0.48.0",
|
|
66
|
+
"@neon.id/office": "^0.39.0",
|
|
67
67
|
"@neutron.co.id/operasional-interfaces": "^1.4.6",
|
|
68
|
-
"@neutron.co.id/personalia-models": "^1.4.
|
|
69
|
-
"@nuxt/kit": "^3.
|
|
68
|
+
"@neutron.co.id/personalia-models": "^1.4.5-beta.1",
|
|
69
|
+
"@nuxt/kit": "^3.4.2"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"build":
|
|
74
|
+
"build": 46
|
|
75
75
|
}
|