@neutron.co.id/operasional-modules 1.1.1-beta.4 → 1.1.1-beta.7
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/index.cjs +2 -0
- package/build/index.d.ts +2 -0
- package/build/index.mjs +1 -0
- package/build/personalia/exports.d.ts +1 -0
- package/build/personalia/exports.mjs +1 -0
- package/build/personalia/index.d.ts +2 -0
- package/build/personalia/index.mjs +42 -0
- package/build/personalia/module.d.ts +2 -0
- package/build/personalia/module.mjs +9 -0
- package/build/personalia/plugin.d.ts +2 -0
- package/build/personalia/plugin.mjs +10 -0
- package/build/personalia/resources/index.d.ts +2 -0
- package/build/personalia/resources/index.mjs +2 -0
- package/build/personalia/resources/staff/index.d.ts +2 -0
- package/build/personalia/resources/staff/index.mjs +2 -0
- package/build/personalia/resources/staff/staff.model.d.ts +6 -0
- package/build/personalia/resources/staff/staff.model.mjs +36 -0
- package/build/personalia/resources/staff/staff.resource.d.ts +2 -0
- package/build/personalia/resources/staff/staff.resource.mjs +32 -0
- package/build/personalia/resources/staff/staff.views.d.ts +36 -0
- package/build/personalia/resources/staff/staff.views.mjs +9 -0
- package/build/personalia/resources/task/index.d.ts +2 -0
- package/build/personalia/resources/task/index.mjs +2 -0
- package/build/personalia/resources/task/task.model.d.ts +6 -0
- package/build/personalia/resources/task/task.model.mjs +55 -0
- package/build/personalia/resources/task/task.resource.d.ts +2 -0
- package/build/personalia/resources/task/task.resource.mjs +44 -0
- package/build/personalia/resources/task/task.views.d.ts +108 -0
- package/build/personalia/resources/task/task.views.mjs +74 -0
- package/build/personalia/views.mjs +1 -0
- package/package.json +6 -4
package/build/index.cjs
ADDED
package/build/index.d.ts
ADDED
package/build/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources/index.mjs";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addComponent,
|
|
3
|
+
addPlugin,
|
|
4
|
+
createResolver,
|
|
5
|
+
defineNuxtModule
|
|
6
|
+
} from "@nuxt/kit";
|
|
7
|
+
import views from "./views.mjs";
|
|
8
|
+
export default defineNuxtModule({
|
|
9
|
+
meta: {
|
|
10
|
+
/**
|
|
11
|
+
* Module identifier, will be used in Nuxt.
|
|
12
|
+
* @example '@neutron.co.id/plan-plan'
|
|
13
|
+
* @example '@neon.id/belajar-course'
|
|
14
|
+
* @example '@neutron.co.id/tempat-place'
|
|
15
|
+
*/
|
|
16
|
+
name: "@neutron.co.id/operasional-personalia",
|
|
17
|
+
/**
|
|
18
|
+
* Module config key,
|
|
19
|
+
* will be used to set options in nuxt.config.ts.
|
|
20
|
+
* @example 'neu:plan:plan'
|
|
21
|
+
* @example 'neo:belajar:course'
|
|
22
|
+
* @example 'neu:tempat;place'
|
|
23
|
+
*/
|
|
24
|
+
configKey: "neu:operasional:personalia",
|
|
25
|
+
compatibility: { nuxt: "^3.0.0" }
|
|
26
|
+
},
|
|
27
|
+
defaults: {},
|
|
28
|
+
setup() {
|
|
29
|
+
console.log("module:neu:operasional:personalia");
|
|
30
|
+
const { resolve } = createResolver(import.meta.url);
|
|
31
|
+
const plugin = resolve("./plugin");
|
|
32
|
+
addPlugin(plugin);
|
|
33
|
+
for (const view of views) {
|
|
34
|
+
addComponent({
|
|
35
|
+
name: view,
|
|
36
|
+
export: view,
|
|
37
|
+
filePath: resolve("./resources"),
|
|
38
|
+
global: true
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Module } from "@neon.id/context";
|
|
2
|
+
import { StaffResource, TaskResource } from "./resources/index.mjs";
|
|
3
|
+
export const PersonaliaModule = Module.define({
|
|
4
|
+
definition: "neu:operasional:personalia",
|
|
5
|
+
label: "Personalia",
|
|
6
|
+
path: "personalia",
|
|
7
|
+
icon: "solid:user",
|
|
8
|
+
resources: [StaffResource, TaskResource]
|
|
9
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useModuleStore } from "@neon.id/context";
|
|
2
|
+
import { PersonaliaModule } from "./module.mjs";
|
|
3
|
+
import { defineNuxtPlugin, useRouter } from "#imports";
|
|
4
|
+
import { OfficePage } from "#components";
|
|
5
|
+
export default defineNuxtPlugin(() => {
|
|
6
|
+
console.log("plugin:personalia");
|
|
7
|
+
const store = useModuleStore();
|
|
8
|
+
const router = useRouter();
|
|
9
|
+
PersonaliaModule.register(store, router, OfficePage);
|
|
10
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const StaffModel: import("@neon.id/model").Model<"neu:personalia:staff", "name" | "nik" | "branch" | "branches" | "user" | "image" | "birthPlace" | "birthDate" | "note">;
|
|
2
|
+
export type TStaffModel = typeof StaffModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.Staff;
|
|
5
|
+
detail: Schema.Staff;
|
|
6
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const StaffModel = models.StaffModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
name: 1,
|
|
8
|
+
nik: 1,
|
|
9
|
+
birthDate: 1,
|
|
10
|
+
birthPlace: 1,
|
|
11
|
+
image: 1,
|
|
12
|
+
branch: {
|
|
13
|
+
name: 1
|
|
14
|
+
},
|
|
15
|
+
branches: {
|
|
16
|
+
name: 1
|
|
17
|
+
},
|
|
18
|
+
note: 1,
|
|
19
|
+
user: {
|
|
20
|
+
id: 1,
|
|
21
|
+
username: 1,
|
|
22
|
+
email: 1,
|
|
23
|
+
phone: 1,
|
|
24
|
+
roleIds: 1
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const detail = {
|
|
28
|
+
...item,
|
|
29
|
+
branchId: 1,
|
|
30
|
+
branchIds: 1,
|
|
31
|
+
userId: 1
|
|
32
|
+
};
|
|
33
|
+
export const fragments = {
|
|
34
|
+
item,
|
|
35
|
+
detail
|
|
36
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import { StaffCollectionView, StaffSingleView } from "./staff.views.mjs";
|
|
3
|
+
import { fragments, StaffModel } from "./staff.model.mjs";
|
|
4
|
+
export const StaffResource = Resource.define({
|
|
5
|
+
model: StaffModel,
|
|
6
|
+
collection: {
|
|
7
|
+
title: "Karyawan",
|
|
8
|
+
path: "staffs",
|
|
9
|
+
component: StaffCollectionView,
|
|
10
|
+
menu: true,
|
|
11
|
+
displays: ["table"]
|
|
12
|
+
},
|
|
13
|
+
single: {
|
|
14
|
+
path: "staff/:slug",
|
|
15
|
+
component: StaffSingleView
|
|
16
|
+
},
|
|
17
|
+
views: {
|
|
18
|
+
// collection: {
|
|
19
|
+
// path: 'staffs',
|
|
20
|
+
// label: 'Staffs',
|
|
21
|
+
// icon: 'door-open',
|
|
22
|
+
// menu: true,
|
|
23
|
+
// component: StaffCollectionView,
|
|
24
|
+
// },
|
|
25
|
+
// single: {
|
|
26
|
+
// path: 'staffs/:slug',
|
|
27
|
+
// component: StaffSingleView,
|
|
28
|
+
// },
|
|
29
|
+
},
|
|
30
|
+
fragments,
|
|
31
|
+
renders: {}
|
|
32
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const StaffCollectionView: 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 StaffSingleView: 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 StaffCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:staff"
|
|
5
|
+
});
|
|
6
|
+
export const StaffSingleView = ResourceUtil.createSingle({
|
|
7
|
+
name: "default",
|
|
8
|
+
definition: "neu:personalia:staff"
|
|
9
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "employeeNameTrimmed" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">;
|
|
2
|
+
export type TTaskModel = typeof TaskModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.Task;
|
|
5
|
+
detail: Schema.Task;
|
|
6
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const TaskModel = models.TaskModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
taskName: 1,
|
|
8
|
+
internalServiceDescription: 1,
|
|
9
|
+
externalServiceDescription: 1,
|
|
10
|
+
branches: {
|
|
11
|
+
id: 1,
|
|
12
|
+
display: 1
|
|
13
|
+
},
|
|
14
|
+
giveAssignments: {
|
|
15
|
+
id: 1,
|
|
16
|
+
display: 1
|
|
17
|
+
},
|
|
18
|
+
doingAssignments: {
|
|
19
|
+
id: 1,
|
|
20
|
+
display: 1
|
|
21
|
+
},
|
|
22
|
+
supervisingAssignments: {
|
|
23
|
+
id: 1,
|
|
24
|
+
display: 1
|
|
25
|
+
},
|
|
26
|
+
helpAssignments: {
|
|
27
|
+
id: 1,
|
|
28
|
+
display: 1
|
|
29
|
+
},
|
|
30
|
+
employeeNameTrimmed: 1,
|
|
31
|
+
estimatedStartDate: 1,
|
|
32
|
+
estimatedEndDate: 1,
|
|
33
|
+
estimatedHourDoingAssignment: 1,
|
|
34
|
+
estimatedHourCommunicationAssignment: 1,
|
|
35
|
+
estimatedHourCognitiveAssignment: 1,
|
|
36
|
+
estimatedHourCreativeAssignment: 1,
|
|
37
|
+
estimatedHourByDay: 1,
|
|
38
|
+
priority: 1,
|
|
39
|
+
status: 1,
|
|
40
|
+
estimatedRealizedAssignmentStart: 1,
|
|
41
|
+
estimatedRealizedAssignmentEnd: 1,
|
|
42
|
+
resultAssignment: 1
|
|
43
|
+
};
|
|
44
|
+
const detail = {
|
|
45
|
+
...item,
|
|
46
|
+
branchIds: 1,
|
|
47
|
+
givingAssignmentIds: 1,
|
|
48
|
+
doingAssignmentIds: 1,
|
|
49
|
+
supervisingAssignmentIds: 1,
|
|
50
|
+
helpAssignmentIds: 1
|
|
51
|
+
};
|
|
52
|
+
export const fragments = {
|
|
53
|
+
item,
|
|
54
|
+
detail
|
|
55
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "employeeNameTrimmed" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
TaskCollectionPlanView,
|
|
4
|
+
TaskCollectionView,
|
|
5
|
+
TaskCollectionWorkView,
|
|
6
|
+
TaskSinglePlanView,
|
|
7
|
+
TaskSingleView,
|
|
8
|
+
TaskSingleWorkView
|
|
9
|
+
} from "./task.views.mjs";
|
|
10
|
+
import { fragments, TaskModel } from "./task.model.mjs";
|
|
11
|
+
export const TaskResource = Resource.define({
|
|
12
|
+
model: TaskModel,
|
|
13
|
+
collection: {
|
|
14
|
+
title: "Tugas",
|
|
15
|
+
path: "tasks",
|
|
16
|
+
component: TaskCollectionView,
|
|
17
|
+
menu: true,
|
|
18
|
+
displays: ["table"]
|
|
19
|
+
},
|
|
20
|
+
single: {
|
|
21
|
+
path: "tasks/:slug",
|
|
22
|
+
component: TaskSingleView
|
|
23
|
+
},
|
|
24
|
+
views: {
|
|
25
|
+
plan: {
|
|
26
|
+
path: "/perencanaan/tasks",
|
|
27
|
+
component: TaskCollectionPlanView
|
|
28
|
+
},
|
|
29
|
+
planSingle: {
|
|
30
|
+
path: "/perencanaan/tasks/:slug",
|
|
31
|
+
component: TaskSinglePlanView
|
|
32
|
+
},
|
|
33
|
+
work: {
|
|
34
|
+
path: "/pekerjaan/tasks",
|
|
35
|
+
component: TaskCollectionWorkView
|
|
36
|
+
},
|
|
37
|
+
workSingle: {
|
|
38
|
+
path: "/pekerjaan/tasks/:slug",
|
|
39
|
+
component: TaskSingleWorkView
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
fragments,
|
|
43
|
+
renders: {}
|
|
44
|
+
});
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const TaskCollectionView: 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 TaskSingleView: 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
|
+
}>;
|
|
37
|
+
export declare const TaskCollectionPlanView: 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 TaskSinglePlanView: 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
|
+
isMain: boolean;
|
|
71
|
+
isNew: boolean;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const TaskCollectionWorkView: 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 TaskSingleWorkView: 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
|
+
isMain: boolean;
|
|
107
|
+
isNew: boolean;
|
|
108
|
+
}>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
import { h } from "vue";
|
|
3
|
+
import TaskWorkButton from "@neutron.co.id/operasional-interfaces";
|
|
4
|
+
export const TaskCollectionView = ResourceUtil.createCollection({
|
|
5
|
+
name: "default",
|
|
6
|
+
definition: "neu:personalia:task"
|
|
7
|
+
});
|
|
8
|
+
export const TaskSingleView = ResourceUtil.createSingle({
|
|
9
|
+
name: "default",
|
|
10
|
+
definition: "neu:personalia:task"
|
|
11
|
+
});
|
|
12
|
+
export const TaskCollectionPlanView = ResourceUtil.createCollection({
|
|
13
|
+
name: "plan",
|
|
14
|
+
definition: "neu:personalia:task",
|
|
15
|
+
title: "Perencanaan Tugas",
|
|
16
|
+
icon: "ruler",
|
|
17
|
+
scope: "plan",
|
|
18
|
+
path: "/perencanaan/tasks",
|
|
19
|
+
single: {
|
|
20
|
+
peeks: ["side"]
|
|
21
|
+
},
|
|
22
|
+
filters: [
|
|
23
|
+
"status",
|
|
24
|
+
"branches",
|
|
25
|
+
"giveAssignments",
|
|
26
|
+
"doingAssignments",
|
|
27
|
+
"supervisingAssignments",
|
|
28
|
+
"helpAssignments",
|
|
29
|
+
"priority"
|
|
30
|
+
],
|
|
31
|
+
sorts: [
|
|
32
|
+
"estimatedStartDate",
|
|
33
|
+
"estimatedEndDate",
|
|
34
|
+
"estimatedHourDoingAssignment",
|
|
35
|
+
"estimatedHourCommunicationAssignment",
|
|
36
|
+
"estimatedHourCognitiveAssignment",
|
|
37
|
+
"estimatedHourCreativeAssignment"
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
export const TaskSinglePlanView = ResourceUtil.createSingle({
|
|
41
|
+
name: "plan",
|
|
42
|
+
title: "Perencanaan Tugas",
|
|
43
|
+
definition: "neu:personalia:task"
|
|
44
|
+
});
|
|
45
|
+
export const TaskCollectionWorkView = ResourceUtil.createCollection({
|
|
46
|
+
name: "work",
|
|
47
|
+
definition: "neu:personalia:task",
|
|
48
|
+
title: "Pekerjaan Tugas",
|
|
49
|
+
icon: "briefcase",
|
|
50
|
+
scope: "work",
|
|
51
|
+
path: "/pekerjaan/tasks",
|
|
52
|
+
single: {
|
|
53
|
+
view: "work",
|
|
54
|
+
peeks: ["side"]
|
|
55
|
+
},
|
|
56
|
+
filters: [
|
|
57
|
+
"status",
|
|
58
|
+
"taskName",
|
|
59
|
+
"branches",
|
|
60
|
+
"giveAssignments",
|
|
61
|
+
"doingAssignments",
|
|
62
|
+
"priority"
|
|
63
|
+
],
|
|
64
|
+
sorts: ["estimatedHourByDay"]
|
|
65
|
+
});
|
|
66
|
+
export const TaskSingleWorkView = ResourceUtil.createSingle({
|
|
67
|
+
name: "work",
|
|
68
|
+
title: "Pekerjaan Tugas",
|
|
69
|
+
definition: "neu:personalia:task",
|
|
70
|
+
slots: {
|
|
71
|
+
default: "work",
|
|
72
|
+
actions: () => h(TaskWorkButton)
|
|
73
|
+
}
|
|
74
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default ["StaffCollectionView","StaffSingleView","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.1.1-beta.
|
|
3
|
+
"version": "1.1.1-beta.7",
|
|
4
4
|
"description": "Modules of Neutron.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -42,7 +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/
|
|
45
|
+
"@neutron.co.id/operasional-interfaces": "1.1.1-beta.4",
|
|
46
|
+
"@neutron.co.id/personalia-models": "1.2.1-beta.4",
|
|
46
47
|
"@nuxt/kit": "3.2.3"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
@@ -63,11 +64,12 @@
|
|
|
63
64
|
"peerDependencies": {
|
|
64
65
|
"@neon.id/context": "^0.38.0",
|
|
65
66
|
"@neon.id/office": "^0.23.0",
|
|
66
|
-
"@neutron.co.id/
|
|
67
|
+
"@neutron.co.id/operasional-interfaces": "^1.1.1-beta.4",
|
|
68
|
+
"@neutron.co.id/personalia-models": "^1.2.1-beta.4",
|
|
67
69
|
"@nuxt/kit": "^3.2.3"
|
|
68
70
|
},
|
|
69
71
|
"publishConfig": {
|
|
70
72
|
"access": "public"
|
|
71
73
|
},
|
|
72
|
-
"build":
|
|
74
|
+
"build": 17
|
|
73
75
|
}
|