@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
-
import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
2
|
+
import { useOperasional, useOperasionalStore } from "@neutron.co.id/operasional-interfaces/office";
|
|
3
3
|
import { Query } from "@neon.id/query";
|
|
4
4
|
export const CheckInCollectionView = ResourceUtil.createCollection({
|
|
5
5
|
name: "default",
|
|
@@ -18,7 +18,7 @@ export const CheckInCollectionExternalView = ResourceUtil.createCollection({
|
|
|
18
18
|
path: "/operasional/checkIns",
|
|
19
19
|
single: {
|
|
20
20
|
view: "external",
|
|
21
|
-
peeks: ["
|
|
21
|
+
peeks: ["page"]
|
|
22
22
|
},
|
|
23
23
|
columns: ["statusGPS", "display", "type", "checkInAt", "staff", "building"],
|
|
24
24
|
filters: ["type", "building"],
|
|
@@ -41,8 +41,8 @@ export const CheckInCollectionSupervisorView = ResourceUtil.createCollection({
|
|
|
41
41
|
scope: "supervisor",
|
|
42
42
|
path: "/pengawas/checkIns",
|
|
43
43
|
single: {
|
|
44
|
-
view: "supervisor"
|
|
45
|
-
peeks: [
|
|
44
|
+
view: "supervisor"
|
|
45
|
+
// peeks: ['modal'],
|
|
46
46
|
},
|
|
47
47
|
columns: ["statusGPS", "display", "type", "checkInAt", "staff", "building"],
|
|
48
48
|
sorts: ["checkInAt"],
|
|
@@ -75,8 +75,8 @@ export const CheckInCollectionStaffView = ResourceUtil.createCollection({
|
|
|
75
75
|
scope: "staff",
|
|
76
76
|
path: "/staff/checkIns",
|
|
77
77
|
single: {
|
|
78
|
-
view: "external"
|
|
79
|
-
peeks: [
|
|
78
|
+
view: "external"
|
|
79
|
+
// peeks: ['modal'],
|
|
80
80
|
},
|
|
81
81
|
columns: [
|
|
82
82
|
"statusGPS",
|
|
@@ -91,11 +91,12 @@ export const CheckInCollectionStaffView = ResourceUtil.createCollection({
|
|
|
91
91
|
sorts: ["checkInAt"],
|
|
92
92
|
excludes: ["create", "delete", "duplicate", "click", "destroy"],
|
|
93
93
|
query: () => {
|
|
94
|
-
const
|
|
94
|
+
const state = useOperasionalStore();
|
|
95
|
+
const { staff } = state.getAllStoreValue();
|
|
95
96
|
return Query.define({
|
|
96
97
|
filter: {
|
|
97
98
|
staffId: {
|
|
98
|
-
$eq: staff
|
|
99
|
+
$eq: staff?.id
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
102
|
sort: {
|
|
@@ -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 PlanResource: Resource<Schema.Plan, import("@neon.id/model").Model<"neu:personalia:plan", "endedAt" | "startedAt" | "name" | "branches" | "staffs" | "detail" | "domain" | "planTypes" | "stages" | "target", Schema.Plan>>;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { Resource } from "@neon.id/context";
|
|
2
|
-
import {
|
|
3
|
-
PlanCollectionView,
|
|
4
|
-
PlanSingleView,
|
|
5
|
-
PlanCollectionStaffView,
|
|
6
|
-
PlanSingleStaffView
|
|
7
|
-
} from "./plan.views.mjs";
|
|
8
2
|
import {
|
|
9
3
|
PlanModel
|
|
10
4
|
} from "@neutron.co.id/personalia-models";
|
|
@@ -13,22 +7,22 @@ export const PlanResource = Resource.define({
|
|
|
13
7
|
collection: {
|
|
14
8
|
title: "Rencana",
|
|
15
9
|
path: "plans",
|
|
16
|
-
component: PlanCollectionView,
|
|
10
|
+
component: "PlanCollectionView",
|
|
17
11
|
menu: true,
|
|
18
12
|
displays: ["table"]
|
|
19
13
|
},
|
|
20
14
|
single: {
|
|
21
15
|
path: "plans/:slug",
|
|
22
|
-
component: PlanSingleView
|
|
16
|
+
component: "PlanSingleView"
|
|
23
17
|
},
|
|
24
18
|
views: {
|
|
25
19
|
planStaff: {
|
|
26
20
|
path: "/penugasan/staff-plans",
|
|
27
|
-
component: PlanCollectionStaffView
|
|
21
|
+
component: "PlanCollectionStaffView"
|
|
28
22
|
},
|
|
29
23
|
planStaffSingle: {
|
|
30
24
|
path: "/penugasan/staff-plans/:slug",
|
|
31
|
-
component: PlanSingleStaffView
|
|
25
|
+
component: "PlanSingleStaffView"
|
|
32
26
|
}
|
|
33
27
|
},
|
|
34
28
|
fragments: PlanModel.fragments,
|
|
@@ -5,7 +5,7 @@ export declare const PlanCollectionView: 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 PlanCollectionView: import("vue").DefineComponent<{
|
|
|
14
14
|
overrides: Record<string, any>;
|
|
15
15
|
}, {}>;
|
|
16
16
|
export declare const PlanSingleView: 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 PlanSingleView: 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 PlanSingleView: 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 PlanCollectionStaffView: import("vue").DefineComponent<{
|
|
@@ -62,7 +71,7 @@ export declare const PlanCollectionStaffView: import("vue").DefineComponent<{
|
|
|
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 PlanCollectionStaffView: import("vue").DefineComponent<{
|
|
|
71
80
|
overrides: Record<string, any>;
|
|
72
81
|
}, {}>;
|
|
73
82
|
export declare const PlanSingleStaffView: 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 PlanSingleStaffView: 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,8 +124,9 @@ export declare const PlanSingleStaffView: 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
|
}, {}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ResourceUtil } from "@neon.id/office";
|
|
2
2
|
import { Query } from "@neon.id/query";
|
|
3
|
-
import {
|
|
3
|
+
import { useOperasionalStore } from "@neutron.co.id/operasional-interfaces/office";
|
|
4
4
|
export const PlanCollectionView = ResourceUtil.createCollection({
|
|
5
5
|
name: "default",
|
|
6
6
|
definition: "neu:personalia:plan",
|
|
7
7
|
single: {
|
|
8
|
-
peeks: [
|
|
8
|
+
// peeks: ['modal'],
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
export const PlanSingleView = ResourceUtil.createSingle({
|
|
@@ -20,8 +20,8 @@ export const PlanCollectionStaffView = ResourceUtil.createCollection({
|
|
|
20
20
|
scope: "staff",
|
|
21
21
|
path: "/penugasan/staff-plans",
|
|
22
22
|
single: {
|
|
23
|
-
view: "staff"
|
|
24
|
-
peeks: [
|
|
23
|
+
view: "staff"
|
|
24
|
+
// peeks: ['modal'],
|
|
25
25
|
},
|
|
26
26
|
filters: ["branches", "domain", "planTypes", "stages", "target"],
|
|
27
27
|
sorts: ["startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
@@ -36,12 +36,13 @@ export const PlanCollectionStaffView = ResourceUtil.createCollection({
|
|
|
36
36
|
"target"
|
|
37
37
|
],
|
|
38
38
|
query: () => {
|
|
39
|
-
const
|
|
39
|
+
const state = useOperasionalStore();
|
|
40
|
+
const { staff } = state.getAllStoreValue();
|
|
40
41
|
return Query.define({
|
|
41
42
|
filter: {
|
|
42
43
|
handle: "branchIds",
|
|
43
44
|
operator: "in",
|
|
44
|
-
value: staff
|
|
45
|
+
value: staff?.branchIds
|
|
45
46
|
},
|
|
46
47
|
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
47
48
|
});
|
|
@@ -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 PlanTypeResource: Resource<Schema.PlanType, import("@neon.id/model").Model<"neu:personalia:planType", "nameStaff" | "name" | "branches" | "staffs" | "domain", Schema.PlanType>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Resource } from "@neon.id/context";
|
|
2
|
-
import { PlanTypeCollectionView, PlanTypeSingleView } from "./planType.views.mjs";
|
|
3
2
|
import {
|
|
4
3
|
PlanTypeModel
|
|
5
4
|
} from "@neutron.co.id/personalia-models";
|
|
@@ -8,13 +7,13 @@ export const PlanTypeResource = Resource.define({
|
|
|
8
7
|
collection: {
|
|
9
8
|
title: "Tipe Rencana",
|
|
10
9
|
path: "plan-types",
|
|
11
|
-
component: PlanTypeCollectionView,
|
|
10
|
+
component: "PlanTypeCollectionView",
|
|
12
11
|
menu: true,
|
|
13
12
|
displays: ["table"]
|
|
14
13
|
},
|
|
15
14
|
single: {
|
|
16
15
|
path: "plan-types/:slug",
|
|
17
|
-
component: PlanTypeSingleView
|
|
16
|
+
component: "PlanTypeSingleView"
|
|
18
17
|
},
|
|
19
18
|
views: {},
|
|
20
19
|
fragments: PlanTypeModel.fragments,
|
|
@@ -5,7 +5,7 @@ export declare const PlanTypeCollectionView: 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 PlanTypeCollectionView: import("vue").DefineComponent<{
|
|
|
14
14
|
overrides: Record<string, any>;
|
|
15
15
|
}, {}>;
|
|
16
16
|
export declare const PlanTypeSingleView: 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 PlanTypeSingleView: 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,8 +58,9 @@ export declare const PlanTypeSingleView: 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
|
}, {}>;
|
|
@@ -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 ProgressResource: Resource<Schema.Progress, import("@neon.id/model").Model<"neu:personalia:progress", "nameStaff" | "endedAt" | "startedAt" | "branches" | "staffs" | "detail" | "plans" | "priority" | "submissions" | "tasks" | "accessStaffs" | "isNotes" | "reports" | "responsibilities" | "virtualIsNotes" | "virtualStaffs", Schema.Progress>>;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { Resource } from "@neon.id/context";
|
|
2
|
-
import {
|
|
3
|
-
ProgressCollectionView,
|
|
4
|
-
ProgressSingleView,
|
|
5
|
-
ProgressSingleTomorrowView,
|
|
6
|
-
ProgressSingleYesterdayView,
|
|
7
|
-
ProgressCollectionNoteView,
|
|
8
|
-
ProgressSingleNoteView,
|
|
9
|
-
ProgressCollectionSupervisorView
|
|
10
|
-
} from "./progress.views.mjs";
|
|
11
2
|
import {
|
|
12
3
|
ProgressModel
|
|
13
4
|
} from "@neutron.co.id/personalia-models";
|
|
@@ -16,34 +7,34 @@ export const ProgressResource = Resource.define({
|
|
|
16
7
|
collection: {
|
|
17
8
|
title: "Progress",
|
|
18
9
|
path: "progresses",
|
|
19
|
-
component: ProgressCollectionView,
|
|
10
|
+
component: "ProgressCollectionView",
|
|
20
11
|
menu: true,
|
|
21
12
|
displays: ["table", "calendar"]
|
|
22
13
|
},
|
|
23
14
|
single: {
|
|
24
15
|
path: "progresses/:slug",
|
|
25
|
-
component: ProgressSingleView
|
|
16
|
+
component: "ProgressSingleView"
|
|
26
17
|
},
|
|
27
18
|
views: {
|
|
28
19
|
progressNote: {
|
|
29
20
|
path: "/penugasan/notes",
|
|
30
|
-
component: ProgressCollectionNoteView
|
|
21
|
+
component: "ProgressCollectionNoteView"
|
|
31
22
|
},
|
|
32
23
|
progressSupervisor: {
|
|
33
24
|
path: "/pengawas/progresses",
|
|
34
|
-
component: ProgressCollectionSupervisorView
|
|
25
|
+
component: "ProgressCollectionSupervisorView"
|
|
35
26
|
},
|
|
36
27
|
progressNoteSingle: {
|
|
37
28
|
path: "/penugasan/notes/:slug",
|
|
38
|
-
component: ProgressSingleNoteView
|
|
29
|
+
component: "ProgressSingleNoteView"
|
|
39
30
|
},
|
|
40
31
|
progressTomorrowSingle: {
|
|
41
32
|
path: "/penugasan/tomorrow-progresses/:slug",
|
|
42
|
-
component: ProgressSingleTomorrowView
|
|
33
|
+
component: "ProgressSingleTomorrowView"
|
|
43
34
|
},
|
|
44
35
|
progressYesterdaySingle: {
|
|
45
36
|
path: "/penugasan/yesterday-progresses/:slug",
|
|
46
|
-
component: ProgressSingleYesterdayView
|
|
37
|
+
component: "ProgressSingleYesterdayView"
|
|
47
38
|
}
|
|
48
39
|
},
|
|
49
40
|
fragments: ProgressModel.fragments,
|
|
@@ -5,7 +5,7 @@ export declare const ProgressCollectionView: 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: () => {};
|
|
@@ -20,7 +20,7 @@ export declare const ProgressCollectionNoteView: import("vue").DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
22
|
[key: string]: any;
|
|
23
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
23
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
24
|
overrides: {
|
|
25
25
|
type: ObjectConstructor;
|
|
26
26
|
default: () => {};
|
|
@@ -29,6 +29,10 @@ export declare const ProgressCollectionNoteView: import("vue").DefineComponent<{
|
|
|
29
29
|
overrides: Record<string, any>;
|
|
30
30
|
}, {}>;
|
|
31
31
|
export declare const ProgressSingleNoteView: import("vue").DefineComponent<{
|
|
32
|
+
state: {
|
|
33
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
32
36
|
id: {
|
|
33
37
|
type: StringConstructor;
|
|
34
38
|
default: undefined;
|
|
@@ -47,7 +51,11 @@ export declare const ProgressSingleNoteView: import("vue").DefineComponent<{
|
|
|
47
51
|
};
|
|
48
52
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
53
|
[key: string]: any;
|
|
50
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
54
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
state: {
|
|
56
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
51
59
|
id: {
|
|
52
60
|
type: StringConstructor;
|
|
53
61
|
default: undefined;
|
|
@@ -65,12 +73,17 @@ export declare const ProgressSingleNoteView: import("vue").DefineComponent<{
|
|
|
65
73
|
default: () => {};
|
|
66
74
|
};
|
|
67
75
|
}>>, {
|
|
76
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
68
77
|
id: string;
|
|
69
|
-
isMain: boolean;
|
|
70
78
|
isNew: boolean;
|
|
79
|
+
isMain: boolean;
|
|
71
80
|
overrides: Record<string, any>;
|
|
72
81
|
}, {}>;
|
|
73
82
|
export declare const ProgressSingleView: 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 ProgressSingleView: 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,12 +124,17 @@ export declare const ProgressSingleView: 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 ProgressSingleYesterdayView: import("vue").DefineComponent<{
|
|
134
|
+
state: {
|
|
135
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
136
|
+
default: undefined;
|
|
137
|
+
};
|
|
116
138
|
id: {
|
|
117
139
|
type: StringConstructor;
|
|
118
140
|
default: undefined;
|
|
@@ -131,7 +153,11 @@ export declare const ProgressSingleYesterdayView: import("vue").DefineComponent<
|
|
|
131
153
|
};
|
|
132
154
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
133
155
|
[key: string]: any;
|
|
134
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
156
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
157
|
+
state: {
|
|
158
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
159
|
+
default: undefined;
|
|
160
|
+
};
|
|
135
161
|
id: {
|
|
136
162
|
type: StringConstructor;
|
|
137
163
|
default: undefined;
|
|
@@ -149,12 +175,17 @@ export declare const ProgressSingleYesterdayView: import("vue").DefineComponent<
|
|
|
149
175
|
default: () => {};
|
|
150
176
|
};
|
|
151
177
|
}>>, {
|
|
178
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
152
179
|
id: string;
|
|
153
|
-
isMain: boolean;
|
|
154
180
|
isNew: boolean;
|
|
181
|
+
isMain: boolean;
|
|
155
182
|
overrides: Record<string, any>;
|
|
156
183
|
}, {}>;
|
|
157
184
|
export declare const ProgressSingleTomorrowView: import("vue").DefineComponent<{
|
|
185
|
+
state: {
|
|
186
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
187
|
+
default: undefined;
|
|
188
|
+
};
|
|
158
189
|
id: {
|
|
159
190
|
type: StringConstructor;
|
|
160
191
|
default: undefined;
|
|
@@ -173,7 +204,11 @@ export declare const ProgressSingleTomorrowView: import("vue").DefineComponent<{
|
|
|
173
204
|
};
|
|
174
205
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
175
206
|
[key: string]: any;
|
|
176
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
207
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
208
|
+
state: {
|
|
209
|
+
type: import("vue").PropType<import("@neon.id/context").TSingleStateOrFn>;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
177
212
|
id: {
|
|
178
213
|
type: StringConstructor;
|
|
179
214
|
default: undefined;
|
|
@@ -191,9 +226,10 @@ export declare const ProgressSingleTomorrowView: import("vue").DefineComponent<{
|
|
|
191
226
|
default: () => {};
|
|
192
227
|
};
|
|
193
228
|
}>>, {
|
|
229
|
+
state: import("@neon.id/context").TSingleStateOrFn;
|
|
194
230
|
id: string;
|
|
195
|
-
isMain: boolean;
|
|
196
231
|
isNew: boolean;
|
|
232
|
+
isMain: boolean;
|
|
197
233
|
overrides: Record<string, any>;
|
|
198
234
|
}, {}>;
|
|
199
235
|
export declare const ProgressCollectionSupervisorView: import("vue").DefineComponent<{
|
|
@@ -203,7 +239,7 @@ export declare const ProgressCollectionSupervisorView: import("vue").DefineCompo
|
|
|
203
239
|
};
|
|
204
240
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
205
241
|
[key: string]: any;
|
|
206
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
242
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
207
243
|
overrides: {
|
|
208
244
|
type: ObjectConstructor;
|
|
209
245
|
default: () => {};
|
|
@@ -1,42 +1,30 @@
|
|
|
1
1
|
import { ResourceUtil } from "@neon.id/office";
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import {
|
|
4
|
+
ProgressNoteButton,
|
|
4
5
|
useOperasional,
|
|
5
|
-
|
|
6
|
-
} from "@neutron.co.id/operasional-interfaces";
|
|
6
|
+
useOperasionalStore
|
|
7
|
+
} from "@neutron.co.id/operasional-interfaces/office";
|
|
7
8
|
import { Query } from "@neon.id/query";
|
|
8
9
|
export const ProgressCollectionView = ResourceUtil.createCollection({
|
|
9
10
|
name: "default",
|
|
10
11
|
definition: "neu:personalia:progress",
|
|
11
12
|
single: {
|
|
12
|
-
peeks: [
|
|
13
|
+
// peeks: ['modal'],
|
|
13
14
|
},
|
|
14
|
-
// slots: {
|
|
15
|
-
// actions: () => h(ProgressButton),
|
|
16
|
-
// },
|
|
17
|
-
// excludes: ['create'],
|
|
18
15
|
query: () => {
|
|
19
|
-
const
|
|
16
|
+
const state = useOperasionalStore();
|
|
17
|
+
const { staff } = state.getAllStoreValue();
|
|
20
18
|
return Query.define({
|
|
21
19
|
filter: [
|
|
22
20
|
{
|
|
23
21
|
handle: "staffIds",
|
|
24
22
|
operator: "in",
|
|
25
|
-
value: staff
|
|
23
|
+
value: staff?.id
|
|
26
24
|
},
|
|
27
25
|
{
|
|
28
26
|
startedAt: { $ne: null }
|
|
29
27
|
}
|
|
30
|
-
// {
|
|
31
|
-
// startedAt: {
|
|
32
|
-
// $gte: today,
|
|
33
|
-
// },
|
|
34
|
-
// },
|
|
35
|
-
// {
|
|
36
|
-
// startedAt: {
|
|
37
|
-
// $lt: yesterday,
|
|
38
|
-
// },
|
|
39
|
-
// },
|
|
40
28
|
],
|
|
41
29
|
sort: [{ handle: "startedAt", direction: "ascending" }]
|
|
42
30
|
});
|
|
@@ -50,8 +38,8 @@ export const ProgressCollectionNoteView = ResourceUtil.createCollection({
|
|
|
50
38
|
scope: "note",
|
|
51
39
|
path: "/penugasan/notes",
|
|
52
40
|
single: {
|
|
53
|
-
view: "note"
|
|
54
|
-
peeks: [
|
|
41
|
+
view: "note"
|
|
42
|
+
// peeks: ['modal'],
|
|
55
43
|
},
|
|
56
44
|
filters: [
|
|
57
45
|
"startedAt",
|
|
@@ -68,7 +56,8 @@ export const ProgressCollectionNoteView = ResourceUtil.createCollection({
|
|
|
68
56
|
sorts: ["priority", "startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
69
57
|
columns: ["detail", "staffs", "accessStaffs", "priority"],
|
|
70
58
|
query: () => {
|
|
71
|
-
const
|
|
59
|
+
const state = useOperasionalStore();
|
|
60
|
+
const { staff } = state.getAllStoreValue();
|
|
72
61
|
return Query.define({
|
|
73
62
|
filter: [
|
|
74
63
|
{
|
|
@@ -81,12 +70,12 @@ export const ProgressCollectionNoteView = ResourceUtil.createCollection({
|
|
|
81
70
|
{
|
|
82
71
|
handle: "accessStaffIds",
|
|
83
72
|
operator: "in",
|
|
84
|
-
value: staff
|
|
73
|
+
value: staff?.id
|
|
85
74
|
},
|
|
86
75
|
{
|
|
87
76
|
handle: "staffIds",
|
|
88
77
|
operator: "in",
|
|
89
|
-
value: staff
|
|
78
|
+
value: staff?.id
|
|
90
79
|
}
|
|
91
80
|
]
|
|
92
81
|
}
|
|
@@ -129,7 +118,7 @@ export const ProgressCollectionSupervisorView = ResourceUtil.createCollection({
|
|
|
129
118
|
scope: "supervisor",
|
|
130
119
|
path: "/pengawas/progresses",
|
|
131
120
|
single: {
|
|
132
|
-
peeks: [
|
|
121
|
+
// peeks: ['modal'],
|
|
133
122
|
},
|
|
134
123
|
filters: ["startedAt", "endedAt", "virtualIsNotes", "staffs", "accessStaffs"],
|
|
135
124
|
sorts: ["startedAt", "endedAt", "createdAt", "updatedAt"],
|
|
@@ -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 ProgressAccessResource: Resource<Schema.ProgressAccess, import("@neon.id/model").Model<"neu:personalia:progressAccess", "nameStaff" | "superviseStaff" | "supervisedStaffs", Schema.ProgressAccess>>;
|