@neutron.co.id/operasional-modules 1.1.1-beta.9 → 1.2.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 +12 -2
- package/build/personalia/resources/index.d.ts +1 -0
- package/build/personalia/resources/index.mjs +1 -0
- package/build/personalia/resources/situation/index.d.ts +2 -0
- package/build/personalia/resources/situation/index.mjs +2 -0
- package/build/personalia/resources/situation/situation.model.d.ts +6 -0
- package/build/personalia/resources/situation/situation.model.mjs +44 -0
- package/build/personalia/resources/situation/situation.resource.d.ts +2 -0
- package/build/personalia/resources/situation/situation.resource.mjs +47 -0
- package/build/personalia/resources/situation/situation.views.d.ts +108 -0
- package/build/personalia/resources/situation/situation.views.mjs +50 -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/views.mjs +1 -1
- package/package.json +6 -6
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { Module } from "@neon.id/context";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
StaffResource,
|
|
4
|
+
TaskResource,
|
|
5
|
+
SituationTypeResource,
|
|
6
|
+
SituationResource
|
|
7
|
+
} from "./resources/index.mjs";
|
|
3
8
|
export const PersonaliaModule = Module.define({
|
|
4
9
|
definition: "neu:operasional:personalia",
|
|
5
10
|
label: "Personalia",
|
|
6
11
|
path: "personalia",
|
|
7
12
|
icon: "solid:user",
|
|
8
|
-
resources: [
|
|
13
|
+
resources: [
|
|
14
|
+
StaffResource,
|
|
15
|
+
TaskResource,
|
|
16
|
+
SituationTypeResource,
|
|
17
|
+
SituationResource
|
|
18
|
+
]
|
|
9
19
|
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SituationModel: import("@neon.id/model").Model<"neu:personalia:situation", "branches" | "situationStatus" | "employeeNameTrimmed" | "situationType" | "situationReportedBy" | "situationResponse" | "situationRelatedBy" | "situationSupportedBy" | "urgentSituationDate" | "situationDescription" | "supportiveStatus">;
|
|
2
|
+
export type TSituationModel = typeof SituationModel;
|
|
3
|
+
export declare const fragments: {
|
|
4
|
+
item: Schema.Situation;
|
|
5
|
+
detail: Schema.Situation;
|
|
6
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { models } from "@neutron.co.id/personalia-models";
|
|
2
|
+
export const SituationModel = models.SituationModel;
|
|
3
|
+
const item = {
|
|
4
|
+
id: 1,
|
|
5
|
+
display: 1,
|
|
6
|
+
flag: 1,
|
|
7
|
+
situationStatus: 1,
|
|
8
|
+
branches: {
|
|
9
|
+
id: 1,
|
|
10
|
+
display: 1
|
|
11
|
+
},
|
|
12
|
+
situationType: {
|
|
13
|
+
id: 1,
|
|
14
|
+
display: 1
|
|
15
|
+
},
|
|
16
|
+
situationReportedBy: {
|
|
17
|
+
id: 1,
|
|
18
|
+
display: 1
|
|
19
|
+
},
|
|
20
|
+
situationDescription: 1,
|
|
21
|
+
urgentSituationDate: 1,
|
|
22
|
+
situationRelatedBy: {
|
|
23
|
+
id: 1,
|
|
24
|
+
display: 1
|
|
25
|
+
},
|
|
26
|
+
supportiveStatus: 1,
|
|
27
|
+
situationSupportedBy: {
|
|
28
|
+
id: 1,
|
|
29
|
+
display: 1
|
|
30
|
+
},
|
|
31
|
+
employeeNameTrimmed: 1
|
|
32
|
+
};
|
|
33
|
+
const detail = {
|
|
34
|
+
...item,
|
|
35
|
+
branchIds: 1,
|
|
36
|
+
situationTypeId: 1,
|
|
37
|
+
situationReportedByIds: 1,
|
|
38
|
+
situationRelatedByIds: 1,
|
|
39
|
+
situationSupportedByIds: 1
|
|
40
|
+
};
|
|
41
|
+
export const fragments = {
|
|
42
|
+
item,
|
|
43
|
+
detail
|
|
44
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Resource } from '@neon.id/context';
|
|
2
|
+
export declare const SituationResource: Resource<Schema.SituationType, import("@neon.id/model").Model<"neu:personalia:situation", "branches" | "situationStatus" | "employeeNameTrimmed" | "situationType" | "situationReportedBy" | "situationResponse" | "situationRelatedBy" | "situationSupportedBy" | "urgentSituationDate" | "situationDescription" | "supportiveStatus">>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Resource } from "@neon.id/context";
|
|
2
|
+
import {
|
|
3
|
+
SituationCollectionView,
|
|
4
|
+
SituationSingleView,
|
|
5
|
+
SituationSingleSupportiveView,
|
|
6
|
+
SituationCollectionSupportiveView,
|
|
7
|
+
SituationCollectionWorkView,
|
|
8
|
+
SituationSingleWorkView
|
|
9
|
+
} from "./situation.views.mjs";
|
|
10
|
+
import {
|
|
11
|
+
fragments,
|
|
12
|
+
SituationModel
|
|
13
|
+
} from "./situation.model.mjs";
|
|
14
|
+
export const SituationResource = Resource.define({
|
|
15
|
+
model: SituationModel,
|
|
16
|
+
collection: {
|
|
17
|
+
title: "Situasi",
|
|
18
|
+
path: "situations",
|
|
19
|
+
component: SituationCollectionView,
|
|
20
|
+
menu: true,
|
|
21
|
+
displays: ["table"]
|
|
22
|
+
},
|
|
23
|
+
single: {
|
|
24
|
+
path: "situations/:slug",
|
|
25
|
+
component: SituationSingleView
|
|
26
|
+
},
|
|
27
|
+
views: {
|
|
28
|
+
situationWork: {
|
|
29
|
+
path: "/pekerjaan/situations",
|
|
30
|
+
component: SituationCollectionWorkView
|
|
31
|
+
},
|
|
32
|
+
situationWorkSingle: {
|
|
33
|
+
path: "/pekerjaan/situations/:slug",
|
|
34
|
+
component: SituationSingleWorkView
|
|
35
|
+
},
|
|
36
|
+
situationSupportive: {
|
|
37
|
+
path: "/pekerjaan/supportives",
|
|
38
|
+
component: SituationCollectionSupportiveView
|
|
39
|
+
},
|
|
40
|
+
situationSupportiveSingle: {
|
|
41
|
+
path: "/pekerjaan/supportives/:slug",
|
|
42
|
+
component: SituationSingleSupportiveView
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
fragments,
|
|
46
|
+
renders: {}
|
|
47
|
+
});
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export declare const SituationCollectionView: 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 SituationSingleView: 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 SituationCollectionWorkView: 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 SituationSingleWorkView: 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 SituationCollectionSupportiveView: 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 SituationSingleSupportiveView: 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,50 @@
|
|
|
1
|
+
import { ResourceUtil } from "@neon.id/office";
|
|
2
|
+
export const SituationCollectionView = ResourceUtil.createCollection({
|
|
3
|
+
name: "default",
|
|
4
|
+
definition: "neu:personalia:situation"
|
|
5
|
+
});
|
|
6
|
+
export const SituationSingleView = ResourceUtil.createSingle({
|
|
7
|
+
name: "default",
|
|
8
|
+
definition: "neu:personalia:situation"
|
|
9
|
+
});
|
|
10
|
+
export const SituationCollectionWorkView = ResourceUtil.createCollection({
|
|
11
|
+
name: "work",
|
|
12
|
+
definition: "neu:personalia:situation",
|
|
13
|
+
title: "Situasi",
|
|
14
|
+
icon: "water",
|
|
15
|
+
scope: "work",
|
|
16
|
+
path: "/pekerjaan/situations",
|
|
17
|
+
single: {
|
|
18
|
+
view: "work",
|
|
19
|
+
peeks: ["side"]
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export const SituationSingleWorkView = ResourceUtil.createSingle({
|
|
23
|
+
name: "work",
|
|
24
|
+
title: "Situasi",
|
|
25
|
+
definition: "neu:personalia:situation",
|
|
26
|
+
slots: {
|
|
27
|
+
default: "work"
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export const SituationCollectionSupportiveView = ResourceUtil.createCollection({
|
|
31
|
+
name: "supportive",
|
|
32
|
+
definition: "neu:personalia:situation",
|
|
33
|
+
title: "Suportif",
|
|
34
|
+
icon: "water",
|
|
35
|
+
scope: "supportive",
|
|
36
|
+
path: "/pekerjaan/supportives",
|
|
37
|
+
single: {
|
|
38
|
+
view: "supportive",
|
|
39
|
+
peeks: ["side"]
|
|
40
|
+
},
|
|
41
|
+
excludes: ["create"]
|
|
42
|
+
});
|
|
43
|
+
export const SituationSingleSupportiveView = ResourceUtil.createSingle({
|
|
44
|
+
name: "supportive",
|
|
45
|
+
title: "Suportif",
|
|
46
|
+
definition: "neu:personalia:situation",
|
|
47
|
+
slots: {
|
|
48
|
+
default: "supportive"
|
|
49
|
+
}
|
|
50
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
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" | "
|
|
1
|
+
export declare const TaskModel: import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "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", "branches" | "status" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "
|
|
2
|
+
export declare const TaskResource: Resource<Schema.Task, import("@neon.id/model").Model<"neu:personalia:task", "branches" | "status" | "employeeNameTrimmed" | "giveAssignments" | "doingAssignments" | "supervisingAssignments" | "helpAssignments" | "priority" | "estimatedStartDate" | "estimatedEndDate" | "estimatedHourDoingAssignment" | "estimatedHourCommunicationAssignment" | "estimatedHourCognitiveAssignment" | "estimatedHourCreativeAssignment" | "taskName" | "estimatedHourByDay" | "internalServiceDescription" | "externalServiceDescription" | "resultAssignment" | "estimatedRealizedAssignmentStart" | "estimatedRealizedAssignmentEnd">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ["StaffCollectionView","StaffSingleView","SituationTypeCollectionView","SituationTypeSingleView","TaskCollectionPlanView","TaskCollectionView","TaskCollectionWorkView","TaskSinglePlanView","TaskSingleView","TaskSingleWorkView"]
|
|
1
|
+
export default ["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.2.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.
|
|
45
|
+
"@neutron.co.id/operasional-interfaces": "1.2.0-beta.1",
|
|
46
|
+
"@neutron.co.id/personalia-models": "1.3.0-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.
|
|
67
|
+
"@neutron.co.id/operasional-interfaces": "^1.2.0-beta.1",
|
|
68
|
+
"@neutron.co.id/personalia-models": "^1.3.0-beta.1",
|
|
69
69
|
"@nuxt/kit": "^3.2.3"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"build":
|
|
74
|
+
"build": 20
|
|
75
75
|
}
|