@neutron.co.id/operasional-modules 1.2.0-beta.1 → 1.3.0-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/module.mjs +4 -2
- package/build/personalia/resources/checkIn/checkIn.model.d.ts +6 -0
- package/build/personalia/resources/checkIn/checkIn.model.mjs +27 -0
- package/build/personalia/resources/checkIn/checkIn.resource.d.ts +2 -0
- package/build/personalia/resources/checkIn/checkIn.resource.mjs +32 -0
- package/build/personalia/resources/checkIn/checkIn.views.d.ts +36 -0
- package/build/personalia/resources/checkIn/checkIn.views.mjs +9 -0
- package/build/personalia/resources/checkIn/index.d.ts +2 -0
- package/build/personalia/resources/checkIn/index.mjs +2 -0
- package/build/personalia/resources/index.d.ts +1 -0
- package/build/personalia/resources/index.mjs +1 -0
- package/build/personalia/resources/staff/staff.model.d.ts +1 -1
- package/build/personalia/resources/staff/staff.resource.d.ts +1 -1
- 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.mjs +3 -2
- package/build/personalia/views.mjs +1 -1
- package/package.json +6 -6
|
@@ -3,7 +3,8 @@ import {
|
|
|
3
3
|
StaffResource,
|
|
4
4
|
TaskResource,
|
|
5
5
|
SituationTypeResource,
|
|
6
|
-
SituationResource
|
|
6
|
+
SituationResource,
|
|
7
|
+
CheckInResource
|
|
7
8
|
} from "./resources/index.mjs";
|
|
8
9
|
export const PersonaliaModule = Module.define({
|
|
9
10
|
definition: "neu:operasional:personalia",
|
|
@@ -14,6 +15,7 @@ export const PersonaliaModule = Module.define({
|
|
|
14
15
|
StaffResource,
|
|
15
16
|
TaskResource,
|
|
16
17
|
SituationTypeResource,
|
|
17
|
-
SituationResource
|
|
18
|
+
SituationResource,
|
|
19
|
+
CheckInResource
|
|
18
20
|
]
|
|
19
21
|
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const CheckInModel: import("@neon.id/model").Model<"neu:tempat:checkIn", "user" | "type" | "building" | "checkInAt" | "student" | "teacher" | "staff" | "informationCheckIn" | "note">;
|
|
2
|
+
export type TCheckInModel = typeof CheckInModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.CheckIn;
|
|
5
|
+
detail: Schema.CheckIn;
|
|
6
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/tempat-models";
|
|
2
|
+
export const CheckInModel = models.CheckInModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
building: {
|
|
8
|
+
id: 1,
|
|
9
|
+
display: 1
|
|
10
|
+
},
|
|
11
|
+
note: 1,
|
|
12
|
+
type: 1,
|
|
13
|
+
checkInAt: 1,
|
|
14
|
+
staff: {
|
|
15
|
+
id: 1,
|
|
16
|
+
display: 1
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const detail = {
|
|
20
|
+
...item,
|
|
21
|
+
buildingId: 1,
|
|
22
|
+
staffId: 1
|
|
23
|
+
};
|
|
24
|
+
export const fragments = {
|
|
25
|
+
item,
|
|
26
|
+
detail
|
|
27
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import { CheckInCollectionView, CheckInSingleView } from "./checkIn.views.mjs";
|
|
3
|
+
import { fragments, CheckInModel } from "./checkIn.model.mjs";
|
|
4
|
+
export const CheckInResource = Resource.define({
|
|
5
|
+
model: CheckInModel,
|
|
6
|
+
collection: {
|
|
7
|
+
title: "Presensi",
|
|
8
|
+
path: "checkIns",
|
|
9
|
+
component: CheckInCollectionView,
|
|
10
|
+
menu: true,
|
|
11
|
+
displays: ["table"]
|
|
12
|
+
},
|
|
13
|
+
single: {
|
|
14
|
+
path: "checkIns/:slug",
|
|
15
|
+
component: CheckInSingleView
|
|
16
|
+
},
|
|
17
|
+
views: {
|
|
18
|
+
// collection: {
|
|
19
|
+
// path: 'checkIns',
|
|
20
|
+
// label: 'CheckIns',
|
|
21
|
+
// icon: 'door-open',
|
|
22
|
+
// menu: true,
|
|
23
|
+
// component: CheckInCollectionView,
|
|
24
|
+
// },
|
|
25
|
+
// single: {
|
|
26
|
+
// path: 'checkIns/:slug',
|
|
27
|
+
// component: CheckInSingleView,
|
|
28
|
+
// },
|
|
29
|
+
},
|
|
30
|
+
fragments,
|
|
31
|
+
renders: {}
|
|
32
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const CheckInCollectionView: 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 CheckInSingleView: 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
|
+
isMain: boolean;
|
|
35
|
+
isNew: boolean;
|
|
36
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const CheckInCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:tempat:checkIn"
|
|
5
|
+
});
|
|
6
|
+
export const CheckInSingleView = ResourceUtil.createSingle({
|
|
7
|
+
name: "default",
|
|
8
|
+
definition: "neu:tempat:checkIn"
|
|
9
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "
|
|
1
|
+
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "user" | "note" | "image" | "name" | "branches" | "branch" | "nik" | "birthPlace" | "birthDate">;
|
|
2
2
|
export type TStaffModel = typeof StaffModel;
|
|
3
3
|
export declare const fragments: {
|
|
4
4
|
item: Schema.Staff;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
|
-
export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "
|
|
2
|
+
export declare const StaffResource: Resource<Schema.Staff, import("@neon.id/model").Model<"neu:personalia:staff", "user" | "note" | "image" | "name" | "branches" | "branch" | "nik" | "birthPlace" | "birthDate">>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "
|
|
1
|
+
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">;
|
|
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", "
|
|
2
|
+
export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "status" | "branches" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
-
import { h } from "vue";
|
|
3
2
|
import { TaskWorkButton } from "@neutron.co.id/operasional-interfaces";
|
|
3
|
+
import { h } from "vue";
|
|
4
4
|
export const TaskCollectionView = ResourceUtil.createCollection({
|
|
5
5
|
name: "default",
|
|
6
6
|
definition: "neu:personalia:task"
|
|
@@ -61,7 +61,8 @@ export const TaskCollectionWorkView = ResourceUtil.createCollection({
|
|
|
61
61
|
"doingAssignments",
|
|
62
62
|
"priority"
|
|
63
63
|
],
|
|
64
|
-
sorts: ["estimatedHourByDay"]
|
|
64
|
+
sorts: ["estimatedHourByDay"],
|
|
65
|
+
excludes: ["create"]
|
|
65
66
|
});
|
|
66
67
|
export const TaskSingleWorkView = ResourceUtil.createSingle({
|
|
67
68
|
name: "work",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ["StaffCollectionView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView"]
|
|
1
|
+
export default ["CheckInCollectionView","CheckInSingleView","StaffCollectionView","StaffSingleView","SituationCollectionSupportiveView","SituationCollectionView","SituationCollectionWorkView","SituationSingleSupportiveView","SituationSingleView","SituationSingleWorkView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-beta.1",
|
|
4
4
|
"description": "Modules of Neutron.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@neon.id/context": "0.38.0",
|
|
44
44
|
"@neon.id/office": "0.23.0",
|
|
45
|
-
"@neutron.co.id/operasional-interfaces": "1.
|
|
46
|
-
"@neutron.co.id/personalia-models": "1.3.
|
|
45
|
+
"@neutron.co.id/operasional-interfaces": "1.3.0-beta.1",
|
|
46
|
+
"@neutron.co.id/personalia-models": "1.3.1-beta.1",
|
|
47
47
|
"@nuxt/kit": "3.2.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@neon.id/context": "^0.38.0",
|
|
66
66
|
"@neon.id/office": "^0.23.0",
|
|
67
|
-
"@neutron.co.id/operasional-interfaces": "^1.
|
|
68
|
-
"@neutron.co.id/personalia-models": "^1.3.
|
|
67
|
+
"@neutron.co.id/operasional-interfaces": "^1.3.0-beta.1",
|
|
68
|
+
"@neutron.co.id/personalia-models": "^1.3.1-beta.1",
|
|
69
69
|
"@nuxt/kit": "^3.2.3"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"build":
|
|
74
|
+
"build": 21
|
|
75
75
|
}
|